LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-04-2004, 07:09 AM   #1
Waldhorn34
LQ Newbie
 
Registered: Oct 2004
Location: Florida, U.S.A.
Posts: 5

Rep: Reputation: 0
Unlocking Windows partition


Hello. I'm a newbie so please forgive me if I don't know all the terminology or use simple explanations.


I installed slackware linux, and almost everything is working fine, except that linux has locked my windows partition. I cannot acces it or any of the files on it, and the root folder has it listed as locked. My Secondary FAT32 physical drive is also locked, but that one is empty. I tried loading kate using konsole to modify it from there, but konsole says kate has crashed, and refuses to start any editor programs under root.

How can I unlock my physical FAT32 drive and my windows partition on this drive without going through konsole?
 
Old 10-04-2004, 07:34 AM   #2
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
you do need to open a konsole

then su into root, and try umount'ing the fat32's and remounting them with 'mount -ouid=MyUserName -ogid=users -t vfat /dev/hdXX /mnt/XXXX'

if that works then edit your /etc/fstab so you have a line saying
'/dev/hdXX /mnt/XXXX vfat uid=MyUserName,gid=users,defaults 0 0'
 
Old 10-04-2004, 07:46 AM   #3
Waldhorn34
LQ Newbie
 
Registered: Oct 2004
Location: Florida, U.S.A.
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, How can I unmount it?
 
Old 10-04-2004, 07:49 AM   #4
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
umount /dev/hdXX
 
Old 10-04-2004, 08:05 AM   #5
Waldhorn34
LQ Newbie
 
Registered: Oct 2004
Location: Florida, U.S.A.
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, I've unmounted and tried what you suggested, but it's not working it gives me this message:

root@Pedro's:/home/pedro# mount -ouid=pedro -ogid=users -t vfat /dev/hdb1/fatguy
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
root@Pedro's:/home/pedro#
 
Old 10-04-2004, 09:33 AM   #6
Waldhorn34
LQ Newbie
 
Registered: Oct 2004
Location: Florida, U.S.A.
Posts: 5

Original Poster
Rep: Reputation: 0
root@Pedro's:/home/pedro# mount
/dev/hda2 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/hda6 on /usr type ext3 (rw)
/dev/hda7 on /var type ext3 (rw)
/dev/hda8 on /tmp type ext3 (rw)
/dev/hda9 on /home type ext3 (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /windows type ntfs (ro)
/dev/hdb1 on /fatguy type vfat (rw)
root@Pedro's:/home/pedro#
 
Old 10-05-2004, 12:17 PM   #7
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
You're not passing the mount command correctly. You're trying to combine the device you're mounting with the folder to mount it when passing the command, the two must be separate.

To do it, assuming you have already created a folder called /mnt/fatguy (which appears to be where you are trying to mount your drive to, or just replace any reference to '/mnt/fatguy' with whatever you are mounting to) you need to pass this command as root:

mount -ouid=pedro -ogid=users -t vfat /dev/hdb1 /mnt/fatguy

(The /mnt/fatguy, or wherever you want to mount the device to, must have a space between the device you are trying to mount and the location to mount it to. In your original command you were trying to pass /dev/hdb1/fatguy in one)

Then, edit your /etc/fstab file as db391 suggested. For this partition, the line to add to it would be:

/dev/hda1 /mnt/fatguy vfat uid=Pedro,gid=users,defaults 0 0
 
Old 10-05-2004, 01:41 PM   #8
Waldhorn34
LQ Newbie
 
Registered: Oct 2004
Location: Florida, U.S.A.
Posts: 5

Original Poster
Rep: Reputation: 0
No, it's not working... it just gives me the mount help file.

I've copied it exactly as you wrote it...

the drives and files are mounted, they're just locked.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem unlocking screensaver acb67 Linux - General 6 01-31-2012 05:44 AM
6800nu unlocking? Jason711 Linux - Hardware 0 04-18-2005 02:51 AM
unlocking a directory chemdawg Linux - Newbie 4 01-26-2005 05:06 PM
Unlocking /root file Carpinus Linux - Newbie 4 01-16-2005 04:12 AM
trouble unlocking a windows directory j-la Linux - Newbie 7 01-08-2004 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:38 AM.

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