LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-30-2008, 04:25 PM   #1
ahmed gamal
Member
 
Registered: Aug 2005
Location: Egypt
Distribution: slackware + XP
Posts: 591

Rep: Reputation: 30
user can't reach mounted drives


hi
i was working on slack as a user
i was going to burn an image on my ntfs drivers so i mounted them
but i found that i can't reach them with K3b browser
any suggestion?
 
Old 01-30-2008, 04:29 PM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
Copy them over via a terminal, then burn them.

David
 
Old 01-30-2008, 04:31 PM   #3
ahmed gamal
Member
 
Registered: Aug 2005
Location: Egypt
Distribution: slackware + XP
Posts: 591

Original Poster
Rep: Reputation: 30
i know this solution
but what if i haven't enough space on Linux
but isn't there any other solutions like make a user deal with files like root?

Last edited by ahmed gamal; 01-30-2008 at 04:41 PM.
 
Old 01-30-2008, 05:04 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
It's possible. Try

mount -o umask=0 /dev/sda2 /mnt/hd

(replace sda2 with your Windows partition name)
 
Old 01-30-2008, 06:03 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Thumbs up

Or if you plan on doing this often why not add an entry to your /etc/fstab ?

My relevant fstab line looks like this:

Code:
/dev/sda3     /mnt/VISTA      ntfs   ro,umask=0       1   0
This mounts my Vista partition "user readable" . Substitute your Windows partition for /dev/sda3.

Last edited by bgeddy; 01-30-2008 at 06:08 PM.
 
Old 01-30-2008, 10:01 PM   #6
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
If you have multiple users on your system or care about permissions in general it would be better to set a gid on you mount point and set umask so that only the owner and group can access the drive.

Here is an example fstab entry
Code:
/dev/hda1       /mnt/Windows            ntfs-3g         defaults,noauto,gid=102,umask=007       0       0
This example is using the ntfs-3g driver for full rw to a ntfs partition. Take away the noauto if you want the partition mounted at bootup.

The umask=007 will give rwx perms to only owner and group. No perms are given to others.

The gid sets the group to the group with id 102. To use this create a group (use groupadd) for sharing this drive- say crossover.

Now simply set the gid to what id corresponds to the group crossover. Check /etc/group if you forgot.
Don't forget to add your user to the group. The easiest way to do this is to simply add your user name to the crossover entry in /etc/group. Log out of your X session and log back in. Now run groups to check that you are in the crossover group.

After the partition is mounted you should be able to use it will full perms as your user. Do a ls -l on your mount point to verify this.
 
Old 02-01-2008, 05:34 AM   #7
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
How about mount -o ro,uid=1000...

There's not much reason not to just go ahead and effectively chown the files in the NT filesystem to your user account.

There's lots of reasons not to effectively make the whole bloody thing world-readable.
 
  


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
Why can't I set user read access for mounted ntfs drives? sureshot324 Linux - Software 6 01-08-2006 10:42 PM
making mounted drives accessible to user pablowablo Linux - Newbie 7 07-27-2004 04:42 PM
cant access mounted drives when logged in as a user Shantesh Linux - General 1 12-25-2003 08:07 PM
fat mounted drives not accessable as user Cubix Slackware 1 07-11-2003 07:55 PM
User priv's on mounted hard drives harperonline Linux - Networking 3 03-11-2003 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:21 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