Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reiserfs and bad blocks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rommelin
n00b
n00b


Joined: 03 Sep 2002
Posts: 62
Location: Spain

PostPosted: Mon Sep 15, 2003 5:16 pm    Post subject: Reiserfs and bad blocks Reply with quote

Hi

Today, when a was running my Gentoo, during a compilation, suddenly everything began to go wrong. And when i power off the pc i wasn't able to reboot again.
It seems there are bad blocks in my resierfs partition.

I tried to fix it with Knoppix (a live-cd) and reiserfsck but it says the partition has bad blocks and warn me to buy a new hd.

The thing is that i have a lot of information in that partition, not to talk about my sweet Gentoo.

I would like to know is there would be a possibility to access the partition and recover the information.
If i have to reinstall evrything, it doesn't matter, but i would like to recover all the documents, programs and more thing i had in that partition.

Thanks
rommel
Back to top
View user's profile Send private message
rommelin
n00b
n00b


Joined: 03 Sep 2002
Posts: 62
Location: Spain

PostPosted: Mon Sep 15, 2003 11:12 pm    Post subject: Reply with quote

Any solutions?
I still haven't found anything to solve it.
:(
Back to top
View user's profile Send private message
siti
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2003
Posts: 118
Location: Canterbury, New Zealand

PostPosted: Tue Sep 16, 2003 4:54 am    Post subject: Reply with quote

What I done when I found a disk had bad sectors/blocks is back up everything.
Code:

cd /
tar cfz backup.tar.gz bin  boot  dev  etc  home  lib  mnt  opt  root  sbin  tmp  usr  var


Now ship this to another computer I used SSH.
(include anything else that is on the root parition) BTW if you have parts mounted abnomrally such as home and you are not going to fix that parition then exclude it from the backup.tar.gz commmand.)

Reboot into knoppix or gentoo-live-cd then:
Code:

fsck.reiserfs -S  --rebuild-tree


This for me anyway wrecked half my data (slight exageration;) so what you want to do is extract the tar ball


Code:

tar xvfz backup.tar.gz
Back to top
View user's profile Send private message
rommelin
n00b
n00b


Joined: 03 Sep 2002
Posts: 62
Location: Spain

PostPosted: Tue Sep 16, 2003 8:42 am    Post subject: Reply with quote

Thanks for answering

The problem is that i can't even mount the partition. I can't access to it.

Code:
reiserfsck /dev/hde2

###########
reiserfsck --check started at Tue Sep 16 10:28:12 2003
###########
Replaying journal..
0 transactions replayed

The problem has occurred looks like a hardware problem.
If you have bad blocks, we advise you to get a new hard
drive, because once you get one bad block that the disk
drive internals cannot hide from your sight, the chances
of getting more are generally said to become much higher
(precise statistics are unknown to us), and this disk drive
is probably not expensive enough for you to risk your time
and data on it. If you don't want to follow that advice,
then if you have just a few bad blocks, try writing to the
bad blocks and see if the drive remaps the bad blocks (that
means it takes a block it has in reserve and allocates it
for use for requests of that block number).  If it cannot
remap the block, this could be quite bad, as it may mean
that so many blocks have gone bad that none remain in
reserve to allocate.

bread: Cannot read the block (3211264): (Input/output error).

Abortado


Code:

 :arrow: mount /dev/hde2
mount: wrong fs type, bad option, bad superblock on /dev/hde2,
       or too many mounted file systems

I only want to access the files and backup them. Don't bother if i have to reinstall Gentoo.
I have a lot of information which is important for me.
:(
Back to top
View user's profile Send private message
bonsaikitten
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 213
Location: Shanghai, China

PostPosted: Tue Sep 16, 2003 7:46 pm    Post subject: Reply with quote

That sounds bad ... but remember the old rule (and call me cynical): If it's not backuped it doesn't exist ...

Try not to use the harddisk. If possible, copying the whole disk with dd onto a new disk and then restoring the fs on the new disk would be about the safest way of doing it.

Reiserfs is quite sensitive to errors, so don't count on restoring 100% of your data. I hope your loss stays within reasonable bounds.
Back to top
View user's profile Send private message
rommelin
n00b
n00b


Joined: 03 Sep 2002
Posts: 62
Location: Spain

PostPosted: Tue Sep 16, 2003 9:56 pm    Post subject: Reply with quote

Thanks

I'll try to do that on the weekend, when i have time.
I'm only using the other partitions of the harddisk because i have to make space for the image, but i'm not using the bad partition.
I hope this doesn't ruin the recovery.

Regards
rommelin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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