Jump to content

Unformatted disk after stopping reiserfsck :(


Recommended Posts

Okay, so this was definitely not my day.  Not only did I make one bone-headed move, I made at least two.

 

I accidentally deleted data off of my server and was angry at myself, so I wanted to see if there was any way that I could recover undeleted data.  Researching that topic brought me to THIS post, in which I decided to give it a go.

 

I went through all the steps and did the "reiserfsck --rebuild-tree -S /dev/md1" step last, which started up fine and it began to scan the drive.  However, knowing that I could get this data from a friend and that this would likely take a long time and put my server out of commission for a while, I decided to stop the command by pressing Ctrl+Z (During Pass #0).  It stopped the command and I rebooted the server, without stupidly trying to re-mount the drive.

 

As the server rebooted, I went into the UnRAID web GUI and noticed that the disk was listed as "Unformatted" and I immediately started thinking "Oh Crap!".  I then went back to the post and tried to remount the disk using the "mount /dev/md1 /mnt/disk1" code in that thread, but it tells me that "mount: mount point /mnt/disk1 does not exist".  So I found THIS post.  I tried running the "reiserfsck /dev/md1" command, which seemed like it was going to work, but then it spit up this error...

 

###########
reiserfsck --check started at Fri Dec 17 21:57:30 2010
###########
Replaying journal: Done.
Reiserfs journal '/dev/md1' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..

Bad root block 0. (--rebuild-tree did not complete)

Aborted

 

So now I'm at a point where I'm not sure what to do next, and unfortunately I was stupid enough to not capture the log before rebooting the server.  Now my log is not as comprehensive as it was while I was working on it and messed everything up, but I've included what i was able to get from creating a log file as of now.  I can't believe I did something so dumb, but it's been a tough week and lots of things going on have made me stressed and not think clearly.  I would appreciate any help or suggestions I can get.

 

FYI, if I run the "reiserfsck --rebuild-tree -S /dev/md1" command again, it starts to scan the drive like it initially did, so I'm wondering if I should do that and let it go till it finishes and see if it lets me re-mount the drive.

 

Thanks to everyone in advance for the help, and I sure hope that I haven't royally screwed up too badly  :(

syslog-2010-12-17.txt

Link to comment

 

FYI, if I run the "reiserfsck --rebuild-tree -S /dev/md1" command again, it starts to scan the drive like it initially did, so I'm wondering if I should do that and let it go till it finishes and see if it lets me re-mount the drive.

That is your only solution right now.  It will take 8 or 10 hours AT LEAST for a large drive. Do not interrupt it.

 

Also, to stop a program, you would use "Control-C"  control-Z is an entirely different signal to the program.  In effect, it suspends the program, and waits for you to re-start it.  Does not matter now, since you rebooted the server and if it was suspended, its long gone now.

 

Good luck in getting your data back that you deleted.

 

Joe L.

Link to comment

Also, to stop a program, you would use "Control-C"   control-Z is an entirely different signal to the program.  In effect, it suspends the program, and waits for you to re-start it.  Does not matter now, since you rebooted the server and if it was suspended, its long gone now.

 

That is good to know because I am kind of a novice when it comes to Linux.  That's what I get for doing stuff without actually knowing what I'm doing.

 

I'm running the "reiserfsck --rebuild-tree -S /dev/md1" command again right now and we will see if this fixes the problem.  I really hope so!  Thanks for your help and I'll keep you updated on my situation as I find out more.

Link to comment

Okay so it just finished running and a bunch of things appeared on screen.  It told me that there are a few files that are linked to the /lost+found directory so I'm guessing it was able to find some stuff.  But right now I'm having a bigger problem then that.

 

Everytime I try and re-mount the drive, it keeps telling me the following

 

root@Tower:~# mount /dev/md1 /mnt/disk1
mount: mount point /mnt/disk1 does not exist

 

So right now I'm unable to mount the drive and get it to show up.  When I restarted the samba sharing so I could get into the UnRAID web GUI, it still shows up as unformatted, and I'm assuming that is why.  I would try stopping and restarting the array, but I'm very wary now to do much of anything without any sort of help.  Is there anything that anybody can think of to try?  I know that the disk I'm trying to remount is disk1, and I don't understand why it keeps saying this.

 

I have included a capture of my latest syslog in case it is of any help.  Thanks again and I appreciate any help I can get! :)

 

Edit: I know this probably seems really obvious, but when I browsed into the /mnt folder through Midnight Commander, I noticed that "disk1" is not there, while "disk2" and "disk3" are as they are recognized by UnRAID.  I want to think that it's just as easy as making a directory called "disk1" inside the /mnt folder and trying to remount md1 to disk1, but I am done experimenting because with my luck it would just screw something up, haha.

syslog-2010-12-18.txt

Link to comment

It will be easier to simply "Stop" the array and re-start it.  It will re-create the directories.

 

Yes, you can type:

mkdir /mnt/disk1

to create the mount point (an empty directory) but you'll still need to type the correct mount command and it is not as simple as you typed.

It is more like this:

mount -o noatime,nodiratime -t reiserfs /dev/md1 /mnt/disk1

 

Even that will not re-start samba, so you'll then need to to type:

/root/samba start

 

to get it to start up and present the shares once more on the LAN

Link to comment

Well I just stopped and restarted the array as you suggested and it worked like a charm! :)  It has the "lost+found" directory as a samba share however, but I'm assuming once I move all the recovered files from that folder and delete it, it will no longer show up.

 

I'm so happy right now, I've been literally freaking out this entire weekend and now I can finally enjoy a movie!  It unfortunately was unable to recover all the files that I deleted, but luckily it was just one TV series, and I can get the files from a friend as I shared those files with him in the past.  I don't know if there is a way to recover those files otherwise through the parity drive, but I don't think that's how it's supposed to work (for just recovery of specific files).  You can let me know if I'm wrong about that, but with how easy it is for me to get those files back from my friend, it's almost not worth messing around with anymore.

 

Thanks again Joe L. for all your help! I talked up this issue with that same friend I referenced before, and he said "go post in the forums immediately with your log, they'll figure it out".  He was right about that :)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...