Gentoo Archives: gentoo-user

From: "Holger Wünsche" <diegoldeneenteml@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ext4 root-partition mounted read-only as "type none"
Date: Wed, 14 Sep 2016 20:32:09
Message-Id: A9757CD4-8975-4C91-B86B-2CCF8EB4B850@gmail.com
In Reply to: Re: [gentoo-user] ext4 root-partition mounted read-only as "type none" by "J. Roeleveld"
1 >Sorry, might be /proc/mounts.
2
3 # cat /proc/mounts
4 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
5 udev /dev devtmpfs rw,nosuid,nodev,noexec,relatime 0 0
6 devpts /dev/pts devpts rw,nosuid,relatime,gid=5,mode=620 0 0
7 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
8 /dev/sda3 / ext4 ro,relatime,data=ordered 0 0
9 selinuxfs /sys/fs/ selinux selinuxfs rw,relatime 0 0
10 tmpfs /run tmpfs rw,nodev,relatime,size=3277012k,mode=755 0 0
11 # mount -t ext4 -o remount,rw /dev/sda3
12 # cat /proc/mounts
13 […]
14 /dev/sda3 / ext4 rw,relatime,data=ordered 0 0
15 […]
16
17 So /proc/mounts is the file giving the correct information. As we can see /dev, /proc, /sys, /run are existing and mounted as planned (but maybe not fully populated?). But we can also see no other partitions are mounted. Strange is the output of mount ans lsblk both before and after remounting of /dev/sda3:
18 # mount
19 /dev/sdc1 on /home type ext4 (rw)
20 /dev/sdc2 on /var type ext4 (rw)
21 /dev/sda3 on / type none (rw)
22 /dev/sda2 on /boot type vfat (rw)
23 # lsblk (shortened)
24 sda2 /boot
25 sda3 /
26 sdc1 /home
27 sdc2 /var
28
29 Clearly this is not the case, since all directories exist without beeing mounted.Therefore some (important files are missing).
30
31
32
33 >Am typing this on my phone, so can't double check.
34
35 You got the right file :)
36
37
38
39 >What does your /etc/fstab look like?
40
41 condensed output of
42 # cat /etc/fstab
43 /dev/sda2 /boot vfat defaults,ro 1 2
44 /dev/sda3 / ext4 defaults 0 1
45 /dev/sdb2 none swap sw 0 0
46 /dev/sdc1 /home ext4 defaults 0 0
47 /dev/sdc2 /var ext4 defaults 0 0
48
49 /etc/fstab isn't beautiful, because I have done some trial and error here (not the best idea I know).
50
51
52
53 >Silly question, but just to be sure.
54 >You have followed the handbook from A to Z and haven't skipped
55 >anything?
56
57 To be honest: I did not read everything this time, because I installed a somewhat working version yesterday. That time I read it all, but I copied to much from an older install (since this is a reinstall after a software upgrade), so the previous attempt did not work to well (quite some permission problems and some other small copy&paste errors). So this time O did it all again without copy&paste. The result is I skipped formating, because I just wiped the partitions from the live-cd. But I do not think I forgot something (*but* it could have happened).
58
59
60
61 P.S.: I think I will learn a lot here, but if it takes too much of your time or you don't have an idea, it would not be the a huge problem for me to make yet an other install and hope it will work.
62
63
64
65
66 Holger Wünsche

Replies