Re: Debian Setup Accessing NTFS

From: OSU (osufs2004_at_mailite.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 01:45:50 -0500

Lionel Hanners wrote:

> mkdir /mnt/hdb1
> mount /dev/hdb1 /mnt/hdb1

You've created a new directory in root (outside your /home tree).
As root (you just did su, right?) you mounted a partition (ie raw disk,
dangerous stuff).

Naturally mount gives /mnt/hdb1 some seriously tough permissions. Do
ls -l in /mnt if you don't believe me, or ls -ld /mnt/hdb1
man ls to find out what -d does.

So, either chmod -R 777 /mnt/hdb1 (VERY BAD IDEA)..

or read the mount manpage to figure out how to give all users permissions
to a partition when you mount it.

or add the partition to your fstab, with the following caveats..

do not just copy the other lines. copy, and then modify. use noauto for your
hdb1 line. set the username and the permissions.

www.gentoo.org/doc/en/handbook/handbook-x86.xml

Click on section 8, 14th link down on the page.
The top of it will help you.

> so it mounts then i go into it in the shell window and it works..then i
> go back to natulis (SP?) and i try to navigate to the folder and it says
> i dont have permission to the folder...what am i doing wrong??? please
> help me.

Read ESR's essay on how to ask questions the smart way.. avoid rude answers
on this ng.

cheers,
Nandan



Relevant Pages

  • Re: R/W access of a vfat partition by any user ?
    ... FAT32 partition will be writable by any user instead of just root. ... users Allow every user to mount and unmount the file system. ... The 'umask=022' makes all files and directories have rwxr-xr-x permissions. ... If you want different perms and you don't speak binary, ...
    (alt.os.linux.suse)
  • Re: writeprotection of unmounted mountpoints automaitcally - possible??
    ... >>options should change the permissions. ... Changing the mount point options does not affect the mount ... root can still write to the raw device, ... will be usable by the regular user, but the directory will not be ...
    (Fedora)
  • Re: Write access to a VFAT partition
    ... Only root has write access. ... > VFAT partition when it is mounted under Linux. ... Changing the permissions of the mount point won't help. ...
    (comp.os.linux.misc)
  • Re: Mounting a partition without root permissions
    ... > option to the device I would like to mount without root access. ... the user option is /etc/fstab. ... > with full permissions on the device. ...
    (comp.os.linux.misc)
  • Re: writeprotection of unmounted mountpoints automaitcally - possible??
    ... but change the permissions didn't help. ... >Changing the mount point options does not affect the mount ... root can still write to the raw device, ... >will be usable by the regular user, but the directory will not be ...
    (Fedora)