16
5
This is a strange problem. I have the following partition table
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 5737 45978624 7 HPFS/NTFS
/dev/sda3 5738 10600 39062047+ 83 Linux
/dev/sda4 10601 19457 71143852+ 5 Extended
/dev/sda5 10601 11208 4883728+ 82 Linux swap / Solaris
/dev/sda6 11209 15033 30720000 b W95 FAT32
/dev/sda7 15033 19457 35537920 7 HPFS/NTFS
I dual boot Win7 (sda2) and Ubuntu (sda3) and wanted to use the FAT32 partition to share files across two OS's.
I followed some online tutorial and have done these:
sudo mkdir /media/FAT32
sudo chmod 777 /media/FAT32
sudo mount /dev/sda6/ /media/FAT32
after I mounted the file, I can only read but not be able to write to it.
I checked the file permission, it becomes:
drwxr-xr-x
but after I unmounted the it then becomes
drwxrwxrwx
and I can read and write to it.
I don't know where I've down wrong.
2
sudo mount -t vfat /dev/sda6 /media/FAT32 -o rw,uid=$(id -u),gid=$(id -g)
– chefarov – 2017-12-18T08:57:53.193The umask has effect when creating new files. – geek – 2009-12-07T17:05:28.190
user
andauto
are options for thefstab
entry; they aren't very useful on the commandline. – quack quixote – 2009-12-07T19:03:45.017yeah i just translated one of my fstab entries to a command line. Left in some bits that aren't useful but they aren't exactly harmful either. – John T – 2009-12-08T00:02:42.450