Hi Ralph & John

Sorry for the slow response but been very busy trying to sort out a mix-up with DVLA and my driving licence photo. It turned out they gave me a wrong instruction so I'm now awaiting a new licence before going on the continent id 8 days time!!

Result of the 2 instruction asked for are below:-

$ ls -lR /media/CAW1

/media/CAW1:

total 2512

-rw-rw-r-- 1 clive clive 2555103 Feb 23 14:33 IMG_0924_v2.JP2

drwx------ 2 root root 16384 Mar 6 13:42 lost+found


/media/CAW1/lost+found:

total 0


 ls -l /media/CAW1



total 2512

-rw-rw-r-- 1 clive clive 2555103 Feb 23 14:33 IMG_0924_v2.JP2

drwx------ 2 root root 16384 Mar 6 13:42 lost+found



Have managed to put a test file onto the external disk but can't remember how, tried several things and got it by luck. Not sure if the problem is fixed but will try the code:-

 sudo chown $USER:$USER /media/CAW1
    chmod u=rwx,go=rx /media/CAW1

when on holiday.

Will report back while away as will not have time to concentrate on it before then.

*C A Wills*

/Powered by Linux & Open Source Software/


On 07/03/13 18:24, Ralph Corderoy wrote:
Hi Clive,

John's pointed out the underlying cause.

John Palmer wrote:
johnp@zeno:~$ ls -l /media
total 4
drwxr-xr-x 4 root root 4096 2013-01-13 22:23 disc0.ext3
There are two things going on here.

/dev/sdb1 /media/CAW1 ext4
     rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
A block device, /dev/sdb1, can be mounted on a `mount-point', an
existing directory.  The existing directory becomes hidden during the
mount.  It contents still exist but attempts to traverse into it jump
across to the root directory on the mounted filesystem instead.  On
unmounting, the contents re-appear.

Also hidden are the attributes of the mount-point, e.g. user and group.
Instead, those of the / directory in the mounted filesystem are seen.

To create something in a directory is to modify it;  it can be thought
of as a list of (filename, inode-number) pairs.  So trying to copy
something into /media/CAW1 means /media/CAW1 must give you write
permission.  But /media/CAW1 is really / in the mounted filesystem, so
it comes down what did that live distro from which you formatted the
filesystem set /'s attributes to?

Have /media/CAW1 mounted and do

     ls -l /media/CAW1

or for a more long-winded view of its status,

     stat /media/CAW1

The user, group, and permissions will show who can modify the contents
of its root directory.  They might be root:root and only writable by
owner.  You can either change them,

     sudo chown $USER:$USER /media/CAW1
     chmod u=rwx,go=rx /media/CAW1

or leave them alone and create a sub-directory that's yours,

     sudo mkdir /media/CAW1/clive
     sudo chown $USER:$USER /media/CAW1/clive

Cheers, Ralph.



--
Next meeting:  Bournemouth, Tuesday, 2013-04-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:dorset@mailman.lug.org.uk
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to