PDA

View Full Version : Writing data to a block


jorj
05-02-2007, 12:14 AM
I got an error, due to a faulty removeable hard-drive socket, when booting. Now I'm faced with replacing the data in block 7715948 with the data
5670 69551 0x0 SD
I have tried using fsck, but that has not worked. Does anyone know how to do this? I am really stuck as the only folders left in /home/jorj are the hidden ones.
I am using the reiser file system.


Thank you jorj

Leon
05-02-2007, 09:57 AM
Did you use /sbin/fsck.reiserfs ? You may have /sbin/reiserfsck instead or in addition on your particular distro.

http://www.die.net/doc/linux/man/man8/reiserfsck.8.html

jorj
05-02-2007, 04:26 PM
Thank you Leon. I was looking for something in the reverse order in the maner of fsck.et3 et al. I do have reiserfsck and I checked two partitions with it. But naturally I can't check the partition with the error as it is mounted and running.

Any suggesstions as to how I check the the / partition. I was thinking of trying Knoppix (sp?).

It is unbelievable the amount of "harm" done by that one wrong word.

Thanks again jorj

Leon
05-02-2007, 06:35 PM
Check info reiserfsck; you can run reiserfsck on a partition mounted read only. Boot into your distro in single user mode, get into a terminal, unmount the partition, then remount it read only : mount -r /dev/hdX

I suppose you could run reiserfsck from Knoppix, but make sure it has the same Reiser FS version as your damaged partition.

fos
05-02-2007, 07:59 PM
GRML a livecd version for administrators has just about every tool know to linux available.

Check it out at: http://grml.org (http://grml.org/)

jorj
05-02-2007, 09:24 PM
I managed to change /dev/hda1 to r only in /etc/fstab. Then when I ran reiserfsck, --check , I got the message that I should run "rebuild-tree",also said to run check_and_free_buffer_mem ,but I can find no reference to that in the man for reiserfsck.
O well,something to google for.

Thanks for the help jorj