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

Re: Can't read Win95 (vfat) partitions



<Wow.. Thanks for the follow up!
<But.. Still no luck. 
<Here's what I did tonight:
<
<	umount /Win95		(make sure it's not mounted)
<	chmod 777 /Win95	(may as well be sure!)
<	chown root.users /Win95
<
<So an ls of it looks like this (at this point):
<
<	drwxrwxrwx   2 root     users        1024 Nov 23 02:45 /Win95
<
<	Looks good so far, So now I go for the mount:
<
<mount -t vfat /dev/hda1 /Win95 -o user,rw
<
<	Now an ls of it looks like this:
<
<	drwxr-xr-x  20 root     root        16384 Dec 31  1969 Win95
<
<Notice the change in permissions, and ownership. It does that every
<time. Now with it mounted, I can't do a chmod, or a chown on it. I can
<read from it, and execute from it, but that's it!

Oh oh, you are forgetting a simple Unix principle.  The /Win95 for an
unmounted drive is equal to the directory on your root filesysstem.  So
you are setting the permissions, etc. on the LOCAL directory.  When you
mount another drive's partition onto /Win95, you now are looking at
the permissions of the NEWLY mounted partition, hence the change.

MB
-- 
System Administrator - Finnigan FT/MS - Madison WI. URL:http://www.ftms.com/
e-mail: brown ftms com
phone: (608) 273-8262 ext: 612  fax: (608) 273-8719
Visit - URL:http://www.vidiot.com/  (Your link to Star Trek and UPN)



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