Page 1 of 1

Need to unmount hard drive

Posted: Wed Feb 05, 2014 7:00 am
by modem7
Hey guys,

I just want to check with you all before I go ahead and royally cock something up.

Basically one of my hard drives seems to have some bad sectors at the end of the disk, and I wanted to make them inaccessible and hidden so that I can monitor to see if the count increases (and also to make sure that greyhole doesn't write onto those bad blocks).

So, I'm following this guide: http://linuxpoison.blogspot.co.uk/2008/ ... s-and.html

My HDD is /dev/sdb, and I'm at the point where I need to unmount the HDD to pass the file to the fsck command to record these bad blocks.

Unfortunately, I can't remember how to safely unmount the hard drive before I start this command, and I didn't want to risk anything further.


My plan was to run the following to unmount:
init 1
umount /dev/sdb1
run the fsck as in the link above
mount /dev/sdb1

Would that be correct?

Thanks

Re: Need to unmount hard drive

Posted: Wed Feb 05, 2014 10:26 am
by bigfoot65
Looks about right to me.