Root filesystem mounting as Read-Only
Hi,
Hope someone can help me out here! I have a computer running FC4, last night I put a second hard drive in it and installed debian on that hard drive. So I have: Code:
Disk 0: Fedora Code:
mkdir /data Anyone any ideas? Paddy |
If you mount hda3 when running in Debian, it is not going to affect how Fedora runs---unless you changed some Fedora configuration files (on purpose or otherwise...;) )
In Fedora, what does cat /etc/fstab say? |
Yeah that's what I though as well, here is my fedora fstab. I'm logged onto debian at the moment so fedora root filesystem is on /dev/hdb3:
Code:
debian:~# cat /data/etc/fstab Paddy |
I dont get it---there's no hdb in here---and how would Fedora be getting switched from hda to hdb?
How are you dual-booting? I'm not smart enough about fstab to interpret "LABEL" and "defaults" Somebody smarter please feel free to grab the reins here.....;) |
Sorry I should have explained, I didn't actually dual boot I just swapped the drives around! I'm not sure about the LABEL thing either ha ha!
Paddy |
PS:
Mine is similar---look also at /etc/mtab With similar fstab entries, my "/" gets mounted rw (read-write) From my fstab: LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 LABEL=SWAP-sda3 swap swap defaults 0 0 From my mtab: /dev/sda2 / ext3 rw 0 0 /dev/sda1 /boot ext3 rw 0 0 (swap doesn't get mounted--its just there) (sda because it's a scsi drive....) There is obviously something else that tells the system how to mount at startup.... |
My mtab looks like that as well:
Code:
debian:~# cat /data/etc/mtab Paddy |
When a filesystem isn't umounted cleanly it's marked that way. Have a quick check as root.
If it is then drop to runlevel 1, remount the partition read-only and use fsck: Code:
fdisk -l | grep Linux$|awk '{print $1}'|while read p; do tune2fs \ |
Thanks for the code, they are all marked as clean. I'm not physically at my machine at the moment so I will have to post some actual error messages later. Most of them go along the lines of:
Code:
Can't remove file /tmp/.lock.... (Read only file system) Paddy |
Quote:
|
Can't remove file /tmp/.lock.... (Read only file system)
OK. Boot into runlevel 1, mount partition read-write, run fsck on it and reboot properly. On reboot all should be well. |
Quote:
Seems like I have found the problem, I booted up in runlevel 1, when I tried to remount the root partition, Code:
mount -n -o remount,rw / Code:
Mount Failed: /dev/hda3 (ext3) and /dev/hdb3 (ext3) both have label / Paddy |
All times are GMT -5. The time now is 04:32 AM. |