DebianThis forum is for the discussion of Debian Linux.
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.
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.
I've recently installed debian Sarge. I also have Win installed in my computer (sorry, I'm doing things step by step...). I want to use a FAT32 disk that I have in my computer. Its name is hda5, so as root I tried
mount /dev/hda5 hda5, and debian says that it can't find the folder, so I created a folder hda5 in mnt. After that I could mount it.
Ok, but I want to be able to mount it using my usuall user, I tried it but it was imposible to mount without using root, and if I mount it with root, then it is impossible to open the 'folder' with the user.
In order to fix this problem, you need to log in as root and add this filesystem to your table of filesystems - located in "/etc/fstab". Here you can tell it who can mount/unmount it, and various options for accessing it (including who can read/write to it). I have a couple of fat32 drives in my system too - here's an example of what your line might look like :
/dev/hda5 /mnt/awesomedrive auto defaults,users,rw,umask=000,auto 0 0
the first part is the device, "/dev/hda5" - the 2nd is where it mounts to. The name can be totally unrelated to the device name, just so long as it's a folder, and it already exists prior to mounting. The next is the filesystem type - "auto" means it will autodetect, and it should discover it's FAT32.
The next line are all the options for this filesystem:
1st we get all the defaults, then override various settings in the defaults :
"users" allows users to mount/umount it
"rw" mounts the drive for read AND write access
"umask=000" allows everyone to read or write to it (777 would deny everyone everything I believe - each digit is sort of the reverse of chmod)
"auto" means it will be mounted at boot-time
The two 0's at the end aren't too important, just leave them as zeros. Check out "man mount" and "man fstab" if you want more information.
X Windows User.... What were your exact steps to try and edit your fstab?
If you're logged in as the root user, you should be able to use vi and edit it.
#vi /etc/fstab
Make sure you're familiar with vi's usage before editing the fstab file. It can be painful if you screw up that file. So practice on some test file:
In the Window browser go
Edit
Prefrences
check Show hidden and backup files
and then i was able to edit it with a text editor and save it.
Now everything works great a liitle bit of time and hunting around the net and
i was able to come up with the answer myself thanks for trying to help tho.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.