LinHES Forums
http://forum.linhes.org/

Sweet Jebus! Where did my drive go!?
http://forum.linhes.org/viewtopic.php?f=5&t=17403
Page 1 of 1

Author:  Gibble [ Tue Dec 11, 2007 9:08 pm ]
Post subject:  Sweet Jebus! Where did my drive go!?

Ok, so I go to watch a recording...and, recording not found, for everything before Saturday...I'm freaked out.

So I look on the filesystem and my tv directory is almost empty, just recordings since Saturday ... this is NOT good.

So, I quickly check free space with 'df' ... wtf? I'm missing my 750gb sata drive that was mounted to /myth/tv

So, fortunately, without the drive, the machine failed gracefully and just created a new tv directory and kept on going happily, but my boot drive isn't very big, only 160gb I think.

So, my 2 part question.
1. How do I get my sda(or b?) drive back online.
2. How do I merge my two tv directories?

Please help. There's lots of shows I haven't watched yet?!?

Thanks :)
-C

Author:  jmckeown2 [ Wed Dec 12, 2007 5:26 am ]
Post subject: 

Without knowing what the exact partition device is or what the problem is, here's my general outline to get back. I'll assume your myth partition is /dev/sdb1

First I would prefer to do all this in single user mode; at the boot prompt type "single" you'll boot to a non-graphics prompt. others will rightly point out that you can do all this from a normal boot if you stop the proper processes. backend, frontend, etc...

make a new empty directory anywhere in the root file system, the actual root directory works well.
# mkdir /wtf

mount the old TV volume
# mount -t <type> /dev/sdb1 /wtf
For <type> you'll need to know what to use, i.e. xfs, ext3, jfs, etc. you should be able to find this in your /etc/fstab file. if you need to guess, and guess wrong, you'll get a less-than-helpful "wrong fstype message" but you won't hurt it.

when you run that mount command, you should get an error message that may give a hint about why it didn't mount in the proper location. This needs to be resolved before moving on...

If you can resolve the problem and mount the drive, then copy the files from /myth/tv to the old partition:
# cd /myth/tv
# tar -cvf - * | (cd /wtf; tar -xf - )
You could use a simple "cp" or "mv" but the above command will preserve ownership and permissions.

***Once everything is copied AND VERIFIED***, empty out /myth/tv
# cd /myth/tv
# rm *

move your tv partition back to its proper location.
# umount /wtf
# mount -t <type> /dev/sdb1 /myth/tv

reboot and you're back.

Author:  mad_paddler [ Wed Dec 12, 2007 6:00 am ]
Post subject: 

If you run:
Code:
sfdisk -l
it will list all the partitions on all the drives. That should help you sort out whether its sda or sdb etc. If the drive isn't listed then you most likely have a hardware problem :S

Author:  Gibble [ Wed Dec 12, 2007 11:30 am ]
Post subject: 

mad_paddler,
It's sda1.Thank god it's not a hardware problem, that drive is only a few months old!

jmckeown2,
I'll give that a try shortly, thanks for the instructions! :)

Thanks,
-c

Author:  Gibble [ Wed Dec 12, 2007 1:35 pm ]
Post subject: 

Success it would appear, just rebooting now, but everything looks good.

Thanks!!!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/