LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-03-2005, 05:36 PM   #1
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Rep: Reputation: 30
Locked VFAT Drive, can't Unlock


For some reason, when I tried # chmod 777 "/mnt/win_c2", it locked the drive. I can't figure out how to unlock it, either. Initially, I was trying to make it so I could access the folder as a normal user, but it went horribly wrong.
 
Old 01-03-2005, 05:39 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
chmod does not work on a mounted vfat partition.

Add the option umask=000 to the fstab entry for read / write access by all users.
 
Old 01-03-2005, 06:48 PM   #3
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Okay, that unlocked it, but I still can't write to it as a normal user.
 
Old 01-03-2005, 07:54 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
maybe remounting partition or
try umounting the partition
chmod 777 /mnt/win_c2
remount partition.
 
Old 01-03-2005, 11:19 PM   #5
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by michaelk
maybe remounting partition or
try umounting the partition
chmod 777 /mnt/win_c2
remount partition.
That didn't work. It just reset the permissions when remounting.
 
Old 01-04-2005, 06:56 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Post the fstab entry for this partition.
 
Old 01-04-2005, 06:48 PM   #7
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by michaelk
Post the fstab entry for this partition.
Code:
/dev/hdb2               /mnt/win_c2             vfat    defaults,       0 0 umask=000
 
Old 01-04-2005, 06:54 PM   #8
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
I think the umask=000 bit should be in the options section, like this:
Code:
/dev/hdb2               /mnt/win_c2             vfat    defaults,umask=000       0 0
 
Old 01-04-2005, 08:50 PM   #9
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by JunctaJuvant
I think the umask=000 bit should be in the options section, like this:
Code:
/dev/hdb2               /mnt/win_c2             vfat    defaults,umask=000       0 0
I tried that before, and it said that the line was invalid when I rebooted.
 
Old 01-04-2005, 09:28 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Can you post the exact error?
Is this the last line in the file? If so make sure there is an end of line character. Move the cursor to the end of the line and press the enter key.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can "root" unlock a locked screen in Gnome? AZ_Rider Linux - Newbie 5 11-30-2011 01:28 AM
Locked Files - How To Unlock Them bas12547 Linux - Software 9 01-26-2011 04:11 PM
DISCUSSION: unlock rpmdatabase when: RPM DATABASE LOCKED bglnelissen LinuxAnswers Discussion 5 03-01-2008 06:46 AM
unlock a locked folder in Suse 10.0 dcg757s Linux - Newbie 6 11-11-2005 04:54 PM
CDROM is "locked", can't unlock it thezerosystem Linux - Newbie 6 04-19-2002 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration