View previous topic :: View next topic |
Author |
Message |
Jmaxxz Apprentice
Joined: 16 Sep 2006 Posts: 166
|
Posted: Thu Oct 09, 2008 3:15 pm Post subject: Fixing reiserfs partition on remote machine |
|
|
I have old box that I use for a file server, I do not have have anything hooked up to it besides power and a network connection so I use ssh for all my admin work on the server. Recently it experienced some unexpected crashes (some due to power outages) I was wondering if there would be a way for me to run reiserfsck on the root partition without having to break out the live cd, keyboard, and monitor. I tried but the drive corruption remains.
Any suggestions? Or do I just have to bit the bullet and go get a monitor and keyboard. _________________ SCH-U520 reverse engineering at http://jmaxxz.com/index.php?option=com_content&view=article&id=50:samsung-sch-u520-bitpim&catid=18:tech&Itemid=35
visit me at www.jmaxxz.com |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Oct 09, 2008 4:57 pm Post subject: |
|
|
Can you post the /etc/fstab of the remote box? |
|
Back to top |
|
|
Jmaxxz Apprentice
Joined: 16 Sep 2006 Posts: 166
|
Posted: Sat Oct 11, 2008 6:35 am Post subject: |
|
|
here it is:
Code: |
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 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,noexec 0 0
solbox john #
|
_________________ SCH-U520 reverse engineering at http://jmaxxz.com/index.php?option=com_content&view=article&id=50:samsung-sch-u520-bitpim&catid=18:tech&Itemid=35
visit me at www.jmaxxz.com |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Sat Oct 11, 2008 5:06 pm Post subject: |
|
|
Your fstab has the fsck switch on which is ok, but you probably need to run fsck with the force option to run it on a partition that is marked clean. But to fsck with force, the partition must be unmounted, but you can't ssh into it if / is unmounted right?
And I think that the installation CD doesn't include reiserfsck - not sure.
Try running init 1 ( as root ). Once in single user mode, you should be able to remount the filesystem as read only, fsck it, then reboot.
Last edited by notHerbert on Sat Oct 11, 2008 5:11 pm; edited 1 time in total |
|
Back to top |
|
|
Jmaxxz Apprentice
Joined: 16 Sep 2006 Posts: 166
|
|
Back to top |
|
|
|