uk.comp.os.linux
[Top] [All Lists]

Re: Mounting and writing to second hard drive...

Subject: Re: Mounting and writing to second hard drive...
From: Will Kemp <will@xxxxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2008 08:45:14 +0100
Newsgroups: uk.comp.os.linux


Unruh wrote:
zed <zed@xxxxxxxxxx> writes:

My apologies for the delay in replying - life got in the way of my
interests.

Ian Rawlings <news06@xxxxxxxxxxxxx> wrote:

On 2008-07-26, zed <zed@xxxxxxxxxx> wrote:

I can mount (2) by going in to Computer and clicking on Mount but I
cannot write to the drive.
What user are you trying to write to the drive as?  Chances are the
drive's directory will be mounted as root, so if you are not trying to log
in as root then you won't be able to write to it.  to fix this, run a
terminal and cd to the drive's directory, then use "sudo chown <your user>
." and you should be able to write to it.  I don't know ubuntu though and
know it has some limits about root access, so running the command as root
might be slightly different but you get the idea.

There is only one user - zed.

The drive owner was /root as you suggested.  So I logged in as /root and
then created three directories: Backups, Music, Pictures, as it is my
intention as <zed> to use this drive to do Backups and keep my Music and
Pictures on it.

I then looked at Chown in the book "A Practical Guide to Linux - Commands,
Editors, and Shell Programming" - most of which is beyond me :-( and typed
the following into a terminal:

I am afraid you did not look very carefully. The syntax of chown is
chown username[.groupname] file1 [file2 ...]
where [..] indicates optional material and username is the login name of
the user you want to own the files.(zed in your case I believe)
YOu never told chown what username you wnated to change the files to.

Note that if the partition is a FAT partition, it knowns nothing about
usernames, and you cannot chown anything.

You *can* change the ownership of the directory it's mounted on though.



--
http://SnapAndScribble.com

<Prev in Thread] Current Thread [Next in Thread>