[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Query about hard drive partitions maintenance



On Tue, 27 Mar 2012 15:27:55 +0200, Arnt Karlsen wrote:

> On Mon, 26 Mar 2012 15:15:02 +0000 (UTC), Camaleón wrote in message
> <[🔎] jkq15m$4vf$6@dough.gmane.org>:
> 
>> On Mon, 26 Mar 2012 17:24:00 +0300, Andrei POPESCU wrote:

(...)

>> > As you can see, the permissions of the mount point have no influence
>> > on the permissions of the files on the partition. This is true for
>> > about any filesystem that is more or less native to Linux (ext*, xfs,
>> > etc.).
>> 
>> I'm not sure about your point here.
>> 
>> What I wanted to say is that in order to make a mount point which is
>> defined in "/etc/fstab" being writeable by your users the mount point
>> has to have the proper permissions if not, depending on the path it is
>> located (e.g., my backup disk is mounted under "/data/backup" to avoid
>> loops when running the tar routine to make a copy of my "/home"
>> directory), it will be owned by "root" which is not usually what the
>> user wants.
> 
> 
> ..a wee exercise: Stuff an usb "key" into an usb hole, "dmesg &&df -h"
> to see what happened.  Next, "umount -v $(that-usb-device) &&mkdir \ -vp
> /tmp/mountpoint/$(that-usb-device) &&mount -v $(that-usb-device)\
>  /tmp/mountpoint/$(that-usb-device) &&df -h \
>>>/tmp/mountpoint/$(that-usb-device)/df-h ", then verify with
> "cat /tmp/mountpoint/$(that-usb-device)/* ", once you're happy with
> that, try "umount -v $(that-usb-device) &&df -h \
>>>/tmp/mountpoint/$(that-usb-device)/df-h and try diff your 2
> "cat /tmp/mountpoint/$(that-usb-device)/* "'s. ;o)

And all that gibberish for what, exactly? I mean, beyond having a 
terrible headache :-)

Greetings,

-- 
Camaleón


Reply to: