Skip to contentSkip to conversation

Read only rootfs after reiserfsck

DISCUSSION Paolo Azzaroli 4 participants 5 messages Nov 8, 2003 – Nov 13, 2003 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Dear Sir,
My Linux box has a distro SuSE 8.1, and its HD has
1 swap partition, 3 reiserfs partitions, apart from a NTFS partition(where resides Win2K).
Some days ago the Linux box filesystem had triubles, maybe because of not correct shutdown.
After then I repaired the fs (reiserfsck --check etc . . . ); the check operation reported successfull.
But when booting the Linux box, the linux root partitions is "read-only"; the contents of /etc/mtab and /proc/mounts
are different. I can mount the root partition (mount -n -o remount,rw /dev/hda3), but
attempt to mount/umount other partitions are frustated by messages as "already mounted or busy"/ "not mounted".

Something is wrong with reiserfsck ?
After reiserfsck should I perform some other actions for repairing the fs and leave it "read-write" ?
Or there is some trouble with the mount command?

Best Regards

Paolo Azzaroli

#1 lore raw
Quoted 6 lines · Paolo Azzaroli

Dear Sir,
My Linux box has a distro SuSE 8.1, and its HD has
1 swap partition, 3 reiserfs partitions, apart from a NTFS partition(where resides Win2K).
Some days ago the Linux box filesystem had triubles, maybe because of not correct shutdown.

Quoted 8 lines

After then I repaired the fs (reiserfsck --check etc . . . ); the check operation reported successfull.
But when booting the Linux box, the linux root partitions is "read-only"; the contents of /etc/mtab and /proc/mounts
are different. I can mount the root partition (mount -n -o remount,rw /dev/hda3), but
attempt to mount/umount other partitions are frustated by messages as "already mounted or busy"/ "not mounted".

Delete all lines in /etc/mtab which reference filesystems other than your root partition. That should fix it.

HTH,
Carl-Daniel

#3 lore raw
In reply to a message not in the archive

Can anyone else shed some light on the issue?

Thanks,
Carl-Daniel

Quoted 31 lines · Paolo Azzaroli

Dear Sir:, I apreciated Your suggestion, I tried it, but it doesn't fix my problem.
Anyway, many thank for your kindly attention
Paolo Azzaroli

----- Original Message -----
From: "Carl-Daniel Hailfinger" <[email protected]>
To: "Paolo Azzaroli" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, November 09, 2003 9:47 PM
Subject: Re: Read only rootfs after reiserfsck

Quoted 17 lines
Quoted 4 lines · Paolo Azzaroli

Dear Sir, My Linux box has a distro SuSE 8.1, and its HD has 1 swap partition, 3 reiserfs partitions, apart from a NTFS partition (where resides Win2K).
Some days ago the Linux box filesystem had triubles, maybe because

Quoted 8 lines

of not correct shutdown.
After then I repaired the fs (reiserfsck --check etc . . . ); the check operation reported successfull.
But when booting the Linux box, the linux root partitions is "read-only"; the contents of /etc/mtab and /proc/mounts are different. I can mount the root partition (mount -n -o remount,rw /dev/hda3), but attempt to mount/umount other partitions are frustated by messages as "already mounted or busy"/ "not mounted".

Delete all lines in /etc/mtab which reference filesystems other than your root partition. That should fix it.

#4 lore raw

Carl-Daniel Hailfinger wrote (ao):

Quoted 1 line

Can anyone else shed some light on the issue?

What is in /etc/fstab, and what does 'fdisk -l /dev/hda' say?

Quoted 32 lines
Quoted 31 lines · Paolo Azzaroli

Dear Sir:, I apreciated Your suggestion, I tried it, but it doesn't fix my problem.
Anyway, many thank for your kindly attention
Paolo Azzaroli

----- Original Message -----
From: "Carl-Daniel Hailfinger" <[email protected]>
To: "Paolo Azzaroli" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, November 09, 2003 9:47 PM
Subject: Re: Read only rootfs after reiserfsck

Quoted 17 lines
Quoted 4 lines · Paolo Azzaroli

Dear Sir, My Linux box has a distro SuSE 8.1, and its HD has 1 swap partition, 3 reiserfs partitions, apart from a NTFS partition (where resides Win2K).
Some days ago the Linux box filesystem had triubles, maybe because

Quoted 8 lines

of not correct shutdown.
After then I repaired the fs (reiserfsck --check etc . . . ); the check operation reported successfull.
But when booting the Linux box, the linux root partitions is "read-only"; the contents of /etc/mtab and /proc/mounts are different. I can mount the root partition (mount -n -o remount,rw /dev/hda3), but attempt to mount/umount other partitions are frustated by messages as "already mounted or busy"/ "not mounted".

Delete all lines in /etc/mtab which reference filesystems other than your root partition. That should fix it.

#5 lore raw
In reply to Carl-Daniel Hailfinger
Quoted 7 lines
Quoted 5 lines · Paolo Azzaroli
Quoted 2 lines

Delete all lines in /etc/mtab which reference filesystems other than your root partition. That should fix it.

Dear Sir:, I apreciated Your suggestion, I tried it, but it doesn't fix my problem.

please try to post your issued commands here, say

$ mount /proc
$ rm /etc/mtab
$ cat /proc/mounts
$ $MOUNT-COMMANDS....

...and error messages, partition tables.

Christian.

Signature · 3 lines
BOFH excuse #185:

system consumed all the paper for paging