LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Auto mounting drives with write access at startup (https://www.linuxquestions.org/questions/linux-newbie-8/auto-mounting-drives-with-write-access-at-startup-295458/)

hongman 02-27-2005 08:55 AM

Auto mounting drives with write access at startup
 
Hello

I have just found out that although I can read all partitons, I can only write to the system part. Tried as root.

How can I tell it to mount all drives/parts with full read/write access on startup?

Thanks

Hong

linmix 02-27-2005 09:25 AM

You need to set them as RW in fstab. For fat32 partitions (windows) you could add "umask=000" to the third column in fstab.

hongman 02-27-2005 09:36 AM

Here is my fstab file:

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hdb2 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hdc1 /mnt/hdc1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hdd5 /mnt/hdd5 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hdb1 none swap defaults 0 0
# Added by KNOPPIX
/dev/hdb3 /mnt/hdb3 ext3 noauto,users,exec 0 0

I'm guessing I change it to:

# Added by KNOPPIX
/dev/hdc1 /mnt/hdc1 ntfs noauto,users,exec,rw,umask=000 0 0
# Added by KNOPPIX
/dev/hdd5 /mnt/hdd5 ntfs noauto,users,exec,rw,umask=000 0 0

Is that right? Also, what about the other 2 below it? I want everything writabel. How would I change those?

Thanks a lot

Hong

linmix 02-27-2005 09:52 AM

Haven't tried in KNoppix, but this is my fstab entry for a windows partition:

/dev/hda1 /mnt/windows/c vfat defaults,umask=000 0 0

You don't want to write to swap, that's a 'memory' partition for the system.

hongman 02-27-2005 09:59 AM

well hdc1 is my (ntfs) data partition, and so hdd5. hdb3 is (ext3) empty, but will store data.

hdb1 is my swap it seems.

so, is what i posted correct? out of curiousity, whats the syntax/switches for this?

linmix 02-27-2005 10:32 AM

Looks OK.
I think you could substitute 'noauto,users,exec,rw' fro 'defaults'

As for the meaning of it all, the first column describes the 'real' location of a device according to the system, the second where it will be mounted. The third, the file system, the fourth mount option. The last has, if I remember correctly, something to do with integrity checks.

For more info on the mount options: man mount

hongman 02-27-2005 10:54 AM

Thanks. I'll post back if there is a problem but it looks simple enough.

Regards

Hong

Gkarfield 02-27-2005 11:32 AM

hm,

can u write on an NTFS drive?

its safe? I don't know. just look for that.

u can add an option in 'mount'
uid=<username>
so that user owns that mount.


bye


All times are GMT -5. The time now is 02:08 AM.