Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fixing reiserfs partition on remote machine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Jmaxxz
Apprentice
Apprentice


Joined: 16 Sep 2006
Posts: 166

PostPosted: Thu Oct 09, 2008 3:15 pm    Post subject: Fixing reiserfs partition on remote machine Reply with quote

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
Code:
shutdown -r -F
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
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Oct 09, 2008 4:57 pm    Post subject: Reply with quote

Can you post the /etc/fstab of the remote box?
Back to top
View user's profile Send private message
Jmaxxz
Apprentice
Apprentice


Joined: 16 Sep 2006
Posts: 166

PostPosted: Sat Oct 11, 2008 6:35 am    Post subject: Reply with quote

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
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Sat Oct 11, 2008 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jmaxxz
Apprentice
Apprentice


Joined: 16 Sep 2006
Posts: 166

PostPosted: Sat Oct 11, 2008 5:10 pm    Post subject: Reply with quote

I know knoppix includes it. But I guess your response answers my question, I have to go dig up 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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