Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda4
UUID=7dbdaa36-0707-4871-98b2-69cfb4400a9c / ext3 nouser,relatime,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
# /dev/sda1
UUID=8be2778b-9c81-4844-bdf2-cc669273db94 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,utf8,atime,noauto,rw,dev,exec,suid 0 0
/dev/sda3 /storage vfat defaults,umask=000,uid=1000,gid=100,auto,rw,user 0 2
this a copy, for your perusal, of my fstab file. (k)ubuntu works with drive id's (UUID=7dbdaa36-0707-4871-98b2-69cfb4400a9c for example) which i find a little hard to interpret, but it works just as easy with '/dev/sdxy' (where x represents which physical drive and y represents the partition number).
the windows drive that I want to access in linux is called /dev/sda3
I created a folder in the root partition in a terminal with the following command: sudo mkdir /storage
the line in fstab that mounts this drive during boot with full access is:
Code:
/dev/sda3 /storage vfat defaults,umask=000,uid=1000,gid=100,auto,rw,user 0 2
this may be a security issue for some with regards to the fact that any user on the system can access and modify files on this system, but in most cases this it is what many of us home users want.
the syntax of fstab is not too hard to understand but i am no expert in this:
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
where: 'filesystem' is the physical location of the drive
'mount point' is the folder you assign in which you can see the contents of this drive (you may use the already existing /mnt folder if you like)
'type' is the filesysystem type, in my case vfat (fat32) (never tried this with ntfs, though)
'options' is probably the most important one with regards to accessibility and i just copy that whole bit (defaults,umask=000,uid=1000,gid=100,auto,rw,user) over whatever ubuntu places there to make it work for me (like i said i am no expert may someone else can fill you in on this a bit better)
'dump' i have no idea
'pass' if set to 0 then the filesystem will never be checked for errors (if i am not mistaking), the next option is 1 but that may only be used for the root partition, and the last option is 2 and that should be assigned to the rest of the drives in the system that are mounted through fstab so they get periodically checked (every 30 mounts or so)
hope you can be creative with this and make yourself a nice fstab file