Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can someone please explain this.... i am baffled
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
codectified
n00b
n00b


Joined: 23 May 2005
Posts: 24

PostPosted: Wed May 25, 2005 7:32 am    Post subject: can someone please explain this.... i am baffled Reply with quote

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
View user's profile Send private message
maxima
Apprentice
Apprentice


Joined: 01 Oct 2004
Posts: 150

PostPosted: Wed May 25, 2005 7:46 am    Post subject: Reply with quote

directory permission is overidden by mount
try playing with umask, dmask in fstab
Back to top
View user's profile Send private message
codectified
n00b
n00b


Joined: 23 May 2005
Posts: 24

PostPosted: Wed May 25, 2005 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
maxima
Apprentice
Apprentice


Joined: 01 Oct 2004
Posts: 150

PostPosted: Wed May 25, 2005 8:13 am    Post subject: Reply with quote

chmod won't do anything on mounted directory
try this to mount your ipod
Code:
mount /dev/sda1

rather than
Code:
mount /dev/sda1 /mnt/ipod

so it reads the options from /etc/fstab

Cheers
Back to top
View user's profile Send private message
zxiiro
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2004
Posts: 98
Location: Ottawa

PostPosted: Wed May 25, 2005 5:52 pm    Post subject: Reply with quote

yeah mount won't read fstab if you specify source and destination. what i usually do is just
Code:
mount /mnt/ipod

i think you can do one or the other though just not both.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum