LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to run fsck and get an error message, hard drive is write protected. (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-run-fsck-and-get-an-error-message-hard-drive-is-write-protected-632226/)

RMHusers 04-01-2008 12:26 PM

Trying to run fsck and get an error message, hard drive is write protected.
 
What commands can I use to unwrite protect my hard drive.

jailbait 04-01-2008 12:29 PM

umount the drive. If the drive cannot be umounted then boot a live CD and run fsck from the live CD.

-----------------
Steve Stites

RMHusers 04-01-2008 12:47 PM

I am very much a newbie. How do I unmount the drive? Will this corrupt or remove my progamming?

jailbait 04-01-2008 01:32 PM

Quote:

Originally Posted by RMHusers (Post 3107385)
I am very much a newbie. How do I unmount the drive? Will this corrupt or remove my progamming?


Actually the umount command works against partitions, not the entire drive. You can find out wht partitions are mounted with the mount command:

mount

Then issue the umount command against the partition you want to umount. Fro example if you want to umount /dev/sda1 then:

umount /dev/sda1

You can get more information about the umount command by using the man pages:

man umount

---------------------
Steve Stites


All times are GMT -5. The time now is 02:21 AM.