View previous topic :: View next topic |
Author |
Message |
codectified n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2005 Posts: 24
|
Posted: Wed May 25, 2005 7:32 am Post subject: can someone please explain this.... i am baffled |
|
|
can someone tell me how the following series of commands makes any sense:
Code: |
root@tux mnt # ls -al
total 28
drwxrwxrwx 7 root root 4096 May 24 20:10 .
drwxr-xr-x 20 root root 4096 May 23 22:24 ..
-rw-r--r-- 1 root root 0 May 23 02:14 .keep
drwxrwxrwx 13 root root 4096 May 23 22:53 HDB
drwxrwxrwx 20 root root 4096 May 23 23:04 HDD
drwx------ 2 omes users 4096 Mar 10 12:51 cdrom
drwx------ 2 root root 4096 May 23 02:14 floppy
drwxrwxrwx 2 root root 4096 May 24 20:10 ipod <<< here /mnt/ipod is 777
root@tux mnt # mount /dev/sda2 /mnt/ipod <<< now i mount my ipod
root@tux mnt # ls -al
total 28
drwxrwxrwx 7 root root 4096 May 24 20:10 .
drwxr-xr-x 20 root root 4096 May 23 22:24 ..
-rw-r--r-- 1 root root 0 May 23 02:14 .keep
drwxrwxrwx 13 root root 4096 May 23 22:53 HDB
drwxrwxrwx 20 root root 4096 May 23 23:04 HDD
drwx------ 2 omes users 4096 Mar 10 12:51 cdrom
drwx------ 2 root root 4096 May 23 02:14 floppy
drwxr--r-- 6 root root 4096 Dec 31 1969 ipod <<< now its not 777 any more... so i try and change
root@tux mnt # chmod -v 777 /mnt/ipod
mode of `/mnt/ipod' changed to 0777 (rwxrwxrwx) <<< yay its 777 now.... or is it?
root@tux mnt # ls -al
total 28
drwxrwxrwx 7 root root 4096 May 24 20:10 .
drwxr-xr-x 20 root root 4096 May 23 22:24 ..
-rw-r--r-- 1 root root 0 May 23 02:14 .keep
drwxrwxrwx 13 root root 4096 May 23 22:53 HDB
drwxrwxrwx 20 root root 4096 May 23 23:04 HDD
drwx------ 2 omes users 4096 Mar 10 12:51 cdrom
drwx------ 2 root root 4096 May 23 02:14 floppy
drwxr--r-- 6 root root 4096 Dec 31 1969 ipod <<<<< HOW?
|
also... incase you were wondering....
Code: |
root@tux mnt # grep ipod /etc/fstab
/dev/sda2 /mnt/ipod vfat exec,user,noauto,umask=000,users 0 0
|
can someone please explain this? -_- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maxima Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Oct 2004 Posts: 150
|
Posted: Wed May 25, 2005 7:46 am Post subject: |
|
|
directory permission is overidden by mount
try playing with umask, dmask in fstab |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
codectified n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2005 Posts: 24
|
Posted: Wed May 25, 2005 7:59 am Post subject: |
|
|
i set umask=000 in fstab for the device... doesnt do anything... and i know directory permission is overridden by mount... that doesnt answer the question as to why AFTER its mounted and AFTER i manually change the permssions.... it says it goes through... but it really doesnt..
mode of `/mnt/ipod' changed to 0777 (rwxrwxrwx)
then after ls
drwxr--r-- 6 root root 4096 Dec 31 1969 ipod |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maxima Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Oct 2004 Posts: 150
|
Posted: Wed May 25, 2005 8:13 am Post subject: |
|
|
chmod won't do anything on mounted directory
try this to mount your ipod
rather than
Code: | mount /dev/sda1 /mnt/ipod |
so it reads the options from /etc/fstab
Cheers |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zxiiro Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/1371930266447450aed54e5.jpg)
Joined: 27 Apr 2004 Posts: 98 Location: Ottawa
|
Posted: Wed May 25, 2005 5:52 pm Post subject: |
|
|
yeah mount won't read fstab if you specify source and destination. what i usually do is just
i think you can do one or the other though just not both. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|