You are not logged in.
In order to do a reiserfsck, I need to remount the partitions to be checked read-only... But I seem to be unable to do this. I can remount the /home partition just fine, but remounting the root partition doesn't work so well - in order to do so, I must unmount /proc, and attempting to do so gets me the message that /proc cannot be unmounted because it is busy. So, how do I get /proc properly unmounted so that I can remount my root partition?
Offline
Hm, remounting it writable works with
mount -n -o remount,rw blabla blabla
Try
mount -n -o remount,ro blabla blabla
(Just a suggestion )
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
The easiest way would be to take advantage of magic sysrq. Mere alt+sysrq+u key combination (preceded by alt+sysrq+s to sync the data to disk) would remount all mounted filesystems read-only. Magic sysrq seems to be enabled in stock arch's kernel, however it is disabled in default /etc/sysctl.conf.
Don't know how easily achievable is it with mere mount commands.
Offline
FUBAR: tried that, didn't work - the filesystem was busy... that's why I figured I had to do some other monkeying around.
Lucke: thanks, I'll try that...
Offline
have you considered using Knoppix live-CD
then you can explicitly mount read only, all partitions. similar syntax to Fubars post. mount -o ro ../../../dev/hdXY /mnt/hdXY
where X is your drive and Y your partition number.
Offline
I have Damn Small Linux, but it doesn't come with reiserfsck. There is a way to get reiserfsck on it, but since DSL doesn't use UnionFS (and couldn't because I don't have a CD burner) I have to install reiserfsprogs every time I boot into DSL for a reiserfsck.
At any rate, I'd prefer to keep reboots to a minimum...
Edit: thanks for the instructions, Lucke, but that doesn't do a danged thing on my system... :?
Offline
Bah, it ought to work. Remember to enable it, if it's disabled in sysctl.conf (sysctl -w kernel.sysrq=1). Problem is bigger if you don't have it enabled in the kernel ;-) (grep -i sysrq /boot/your_kconfig). Anyway, to confirm that it works log to any console on vc 1-6 and execute any of the key combinations (sysrq key is also known as print screen). You should get some message printed on the screen.
Offline
I have Damn Small Linux, but it doesn't come with reiserfsck
i believe knoppix does.
Offline
Gullible Jones, have you considered editing your /etc/fstab so your partitions are fsck'ed at boot time? See this thread.
The Knoppix CD has fsck for "every" FS, btw.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
Just interested, why do you need to do reiserfsck? I have used a reiserfs since about 2001 and unlike ext3, have never had the need. I even used to demo how good it was by unplugging the HD in my old Toshiba.
--(*(cs25x--));
Offline
I've used both Archie and the RIP repair-cd for moving, resizing and checking partitions. The RIP cd contains a recent kernel and even works for reiser4.
Offline