Need to unmount hard drive

modem7
Posts: 215
Joined: Tue Mar 20, 2012 6:00 pm

Need to unmount hard drive

Postby modem7 » Wed Feb 05, 2014 7:00 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Need to unmount hard drive

Postby bigfoot65 » Wed Feb 05, 2014 10:26 am

Looks about right to me.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 15 guests