Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-27-2005, 09:55 AM
|
#1
|
Member
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285
Rep:
|
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
|
|
|
02-27-2005, 10:25 AM
|
#2
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
You need to set them as RW in fstab. For fat32 partitions (windows) you could add "umask=000" to the third column in fstab.
|
|
|
02-27-2005, 10:36 AM
|
#3
|
Member
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285
Original Poster
Rep:
|
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
|
|
|
02-27-2005, 10:52 AM
|
#4
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
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.
|
|
|
02-27-2005, 10:59 AM
|
#5
|
Member
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285
Original Poster
Rep:
|
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?
|
|
|
02-27-2005, 11:32 AM
|
#6
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
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
|
|
|
02-27-2005, 11:54 AM
|
#7
|
Member
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285
Original Poster
Rep:
|
Thanks. I'll post back if there is a problem but it looks simple enough.
Regards
Hong
|
|
|
02-27-2005, 12:32 PM
|
#8
|
Member
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123
Rep:
|
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 09:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|