LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-02-2006, 03:40 PM   #1
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 166

Rep: Reputation: 30
Mount Windows Partitions


I am using Debian Sarge and altered fstab to mount my Windows partitions:
Code:
/dev/hda5	/mnt/win_e	vfat	rw,users	0	0
/dev/hda1	/mnt/win_c	ntfs	rw,users	0	0
This works and are mounted at boot. The problem I am having is that they are owned by root. I cannot view the NTFS partition, whereas I can view the FAT. When I try to view the NTFS partition , I get an error saying that I do not have the correct permission to view it. The permissions are set for the owner to view and exectue only, nothing for group and others.
I have tried to chmod win_e like:
Code:
chmod 777 win_e
I do this in /mnt but the permissions do not change.
What I would like to do is have these mounted on boot and view the NTFS partition and be able to write to the FAT partition. Any ideas? As it is now, I have to be root to view NTFS and to write to the FAT.
 
Old 05-02-2006, 03:50 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
Try:
Code:
/dev/hda5	/mnt/win_e	vfat	rw,users,umask=0000	0	0
/dev/hda1	/mnt/win_c	ntfs	ro,users,umask=0222	0	0
 
Old 05-02-2006, 04:01 PM   #3
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-13.1
Posts: 1,010

Rep: Reputation: 45
/dev/hda1 /mnt/win_c ntfs rw,users,umask=022 0 0
 
Old 05-02-2006, 04:03 PM   #4
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 166

Original Poster
Rep: Reputation: 30
Thank you, that worked. I did try to find this info at other places, do you know of a source that describes the mount options, especially that umask=xxx? I have no idea what the different numbers mean.
 
Old 05-02-2006, 04:13 PM   #5
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
umask is basically taking the permissions you want (from linux) and subtracting them from 777. So if you want for example rwxrw-rw- (744) you would have umask=022.

I typically use the four digit umask and probably shouldn't since I don't know what the first column permissions are for... I should probably just use 222 for read only and 000 for rwx all.
 
Old 05-02-2006, 08:28 PM   #6
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 166

Original Poster
Rep: Reputation: 30
That makes sense. Thank you very much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount Windows partitions in FC4 madhu84 Fedora 2 03-22-2006 02:28 PM
I'm not able to mount windows partitions as rw akudewan Ubuntu 2 05-21-2005 02:11 AM
mount windows xp partitions in ubuntu newbieSC Linux - Newbie 8 04-20-2005 09:47 PM
Unable to mount Windows partitions ! shankariyer Red Hat 8 12-22-2003 07:02 AM
Mount Windows Partitions? RedHatMN Linux - Newbie 9 12-15-2001 11:49 AM


All times are GMT -5. The time now is 04:59 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration