View previous topic :: View next topic |
Author |
Message |
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Thu Jan 08, 2009 2:08 pm Post subject: fstab not mounting partitions |
|
|
I've got a new install of x86_64 and for some reason, the file systems listed in /etc/fstab aren't mounting and / is being mounted as read-only even though the following seems to say it's rw (if I 'touch /test' I get a :Read-only file system msg).
Code: |
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / jfs ro 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec 0 0
|
I had to run 'jfs_tune -l /dev/sdaN', then 'fsck.jfs /dev/sdaN' to be able to mount the partitions manually after it booted.
Here's the contents of my /etc/fstab.
Code: |
/dev/sda1 /boot ext3 noauto,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / jfs defaults 0 0
/dev/sda5 /home jfs defaults 0 0
/dev/sda6 /usr jfs defaults 0 0
/dev/sda7 /var jfs defaults 0 0
/dev/sda8 /opt jfs defaults 0 0
/dev/sda9 /diskless jfs defaults 0 0
/dev/sda10 /tmp jfs defaults 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec0 0
|
I see no errors in 'dmesg' other than an annoying 'sr' needs updating msg ...
Code: |
Driver 'sd' needs updating - please use bus_type methods
sd 0:2:0:0: [sda] 1171783680 512-byte hardware sectors (599953 MB)
sd 0:2:0:0: [sda] Write Protect is off
sd 0:2:0:0: [sda] Mode Sense: 00 00 00 00
sd 0:2:0:0: [sda] Asking for cache data failed
sd 0:2:0:0: [sda] Assuming drive cache: write through
sd 0:2:0:0: [sda] 1171783680 512-byte hardware sectors (599953 MB)
sd 0:2:0:0: [sda] Write Protect is off
sd 0:2:0:0: [sda] Mode Sense: 00 00 00 00
sd 0:2:0:0: [sda] Asking for cache data failed
sd 0:2:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 sda9 sda10 >
sd 0:2:0:0: [sda] Attached SCSI disk
Driver 'sr' needs updating - please use bus_type methods
scsi 0:0:6:0: Attached scsi generic sg0 type 3
sd 0:2:0:0: Attached scsi generic sg1 type 0
|
Here's something that might be of help also in 'dmesg'.
Code: |
VFS: Mounted root (jfs filesystem) readonly.
Freeing unused kernel memory: 432k freed
Adding 506036k swap on /dev/sda2. Priority:-1 extents:1 across:506036k
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
|
And here's my grub.conf w/ 'ro' as stated by chapt. 10 "using grub" section of the manual.
Code: |
default 0
timeout 30
fallback 1
title Gentoo Linux 2.6.26-r4
root (hd0,0)
kernel (hd0,0)/kernel-2.6.26-gentoo-r4 ro root=/dev/sda3
|
Can anyone help out with what is going on here? |
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1477 Location: /uk/sheffield
|
Posted: Thu Jan 08, 2009 2:28 pm Post subject: |
|
|
Just add the 'auto' option to the options for each partition in your /etc/fstab file that you want automounted on booting. _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
honp Guru
Joined: 25 Sep 2006 Posts: 355 Location: Good old Prague, Czech rep.
|
Posted: Thu Jan 08, 2009 2:36 pm Post subject: |
|
|
and what does it do when you try remount rw?
mount -t jfs /dev/sda3 / -o remount,rw |
|
Back to top |
|
|
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Thu Jan 08, 2009 2:47 pm Post subject: |
|
|
Well, something I just did was run jfs_tune, fsck.jfs, mount them, then reboot, and it seems to have mounted normally. I think this is just the way JFS works when it doesn't shut down cleaning from what I'm understanding. |
|
Back to top |
|
|
honp Guru
Joined: 25 Sep 2006 Posts: 355 Location: Good old Prague, Czech rep.
|
Posted: Thu Jan 08, 2009 2:54 pm Post subject: |
|
|
So write to /etc/fstab instead of
Code: | /dev/sda3 / jfs defaults 0 0 |
Code: | /dev/sda3 / jfs defaults 0 1 |
the 1 is something about checking fs, i cannot remember corectly (try to find it in man and write it here:) ) |
|
Back to top |
|
|
zyko l33t
Joined: 01 Jun 2008 Posts: 620 Location: Munich, Germany
|
Posted: Thu Jan 08, 2009 10:38 pm Post subject: |
|
|
The pass number in /etc/fstab is an indicator whether the fsck initscript shall check it (1) and if necessary run fsck, or alternatively not do anything at all (0). You can use pass numbers higher than 1 to influence the order of fscking during bootup. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|