Click to See Complete Forum and Search --> : Permission denied for /etc/fstab
mighty_tracer
06-06-2003, 06:51 PM
Hey, bros.
After mounting my Windows I try to make them mount every boot, so I type /etc/fstab. The bash tells me "/etc/fstab/ permission denied".
What permission, and how do I fix it? I'm tired of mounting my hd every time.
Nuada Storm
06-06-2003, 06:57 PM
fstab is simply a configuration file that belongs to root. It is not something you can execute. You need to load it in your favorite editor as root and edit it to hold the information to mount your windows partition.
the format of the /etc/fstab file is:
/dev/<hard_disk_&_partition> /mount/point <filesystem> <options> <dump> <pass>
so for example if your windows partition is on the first hard drive on the second partition and the filesystem is fat32 and you want to mountit at /mnt/windows then:
/dev/hda2 /mnt/windows vfat defaults 0 0
if you require more information, try "man fstab" for the compelte documentation.
dysharmonic
06-08-2003, 08:45 AM
As root:
# pico /etc/fstab
Make the necessary changes.
Ctrl + X to save and exit.
If you dont have pico, use vi (a bit tricky).
mchangun
06-08-2003, 09:26 AM
To log in as root, type su, then enter. Then enter the password of your root account. (thought this just mite be useful)