On Sat, 28 Mar 2009 02:10:07 +0530
Divick Kishore <divick.kish...@gmail.com> wrote:

...

> > > > > Hi,
> > > > >     I have an external hard disk connected through usb, which though
> > I am
> > > > > able to mount, but I am unable to access the drive without superuser
> > > > > privileges. Running mount command shows the following:
> > > > >
> > > > > /dev/sda1 on /mnt/maxtor type ntfs
> > (rw,noexec,nosuid,nodev,user=divkis01)
> > > > >
> > > > > But when I try to access I see the following:
> > > > >
> > > > > $: ls /mnt/maxtor/
> > > > > ls: cannot open directory /mnt/maxtor/: Permission denied
> > > >
> > > > What does 'ls -l /mnt/maxtor' show?
> > >
> > >
> > > It also shows:
> > >
> > > ls: cannot open directory /mnt/maxtor/: Permission denied
> >
> > 'sudo ls -l /mnt/maxtor' ?
> >
> 
> with sudo permissions ofcourse I can access the list of directories i.e. it
> does show the directories in there.
> 
> 
> 
> >
> >
> > > > > I tried changing the owner but I see the following:
> > > > >
> > > > > $:sudo chown divkis01 /mnt/maxtor/
> > > > > chown: changing ownership of `/mnt/maxtor/': Read-only file system
> > > >
> > > > Well, it's apparently mounted read-only.  What does 'mount | grep
> > > > maxtor' show?  What is the exact command you're using to mount the
> > disk?
> > >
> > >
> > > $: mount | grep maxtor
> > > /dev/sda1 on /mnt/maxtor type ntfs (rw,noexec,nosuid,nodev,user=divkis01)
> >
> > Ah, so it's NTFS.  I'm not quite sure of the current state of linux NTFS
> > support, but according to this page, kernel support is RO, and you need
> > a separate utility for writing:
> >
> > http://www.linux-ntfs.org/doku.php
> >
> > > I had posted that earlier as well. MY fstab looks something like this:
> > >
> > > /dev/sda1    /mnt/maxtor     ntfs    rw,user,noauto  0       0
> > >
> > > and then I just do mount /mnt/maxtor
> >
> 
> But I don´t want to write to that disk, only read. I tried changing the
> entry in my fstab to ´ro´ but it is of no use. I still see the same
> permission issue. Not sure why is this happening.

Well, you can't be surprised that you can't chown, since the filesystem
is RO, and if the permissions are wrong, than you won't be able to
access it without sudo, which you say works fine.  So what's left that
you don't understand?

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to