Jump to content
xisto Community
Baniboy

Partition Mount Point Problem In Linux (Ubuntu)

Recommended Posts

I wasn't entirely sure where to put this but I stuck it in here for now. Anyway I have a small problem with a FAT32 partition on my drive.I use this 100 GB partition on one of my HDDs to share it between WinBlows and Linux. I put my project files, photos, backups etc in it. When I was installing Ubuntu 10.04, it automatically set the drive mount point as "/windows". Now, whenever I started up my computer and logged in to Linux, it would automatically mount my FAT32 partition for me, and it would be available at "/windows/", which was very convenient for me, since I didn't have to manually mount it every time I wanted to do something with it.Now, when I installed the crappy OS they call Ubuntu 10.10 (and yes, it's crappy...), I assumed it would automatically set the mount point of my partition to "/windows" (I don't know if there even is an option to do that anymore, btw). But it didn't. Now I have to manually mount the fatty partition every time I log in, which is frustrating. I then tried to solve the problem by using GParted to set the mount point (as I remembered that it had the functions to do so), but I found out I can't.So I'm asking for help from the many Linux-people (I guess that's the correct expression :D ), if there are any left in this dead place. I would like to know if there is a way to set the mount point as /windows and have the computer mount it automatically again, or if there is a way to have it mounted on startup automatically.

Share this post


Link to post
Share on other sites

Mount points are stored in /etc/fstab. If you are not fond of editing it manually, there are a few fstab front-ends you can install. I use the program "mountmanager" for editing the fstab file and changing mount points./etc/mtab is a file that keeps track of the currently mounted devices. You'll see devices added or removed from here when using the commands mount or umount, and when third-party programs temporarily mount devices for you.BTW, the next time you install Ubuntu you may want to try out the alternative CD. I find it easier to install Ubuntu and specify mount points with the alternative CD.

Share this post


Link to post
Share on other sites

I installed Mountmanager as you suggested and I modified the mount points. I set the partition I wanted to be mounted in "/windows" and applied the new settings. What has happened now is that it's now owned by root. The whole partition. I can't modify and/or delete things unless I launch software with the sudo command. I tried to set that anyone can use the partition in Mountmanager but it didn't work. Also tried to change the owner through folder options using sudo nautilus but it couldn't change the user or user group. Any help in that?I think I'm going to reinstall Ubuntu if I can't find a solution and set the mount point in the installer since there is a lot of bugs in here anyways, maybe I'll downgrade to 10.04.

Share this post


Link to post
Share on other sites

I installed Mountmanager as you suggested and I modified the mount points. I set the partition I wanted to be mounted in "/windows" and applied the new settings. What has happened now is that it's now owned by root. The whole partition. I can't modify and/or delete things unless I launch software with the sudo command. I tried to set that anyone can use the partition in Mountmanager but it didn't work. Also tried to change the owner through folder options using sudo nautilus but it couldn't change the user or user group. Any help in that?

 

I think I'm going to reinstall Ubuntu if I can't find a solution and set the mount point in the installer since there is a lot of bugs in here anyways, maybe I'll downgrade to 10.04.

 


Hello,

 

I hope you did not had to reinstall your system, but in case you did not the open up a terminal ( I know, I'm sorry you have to do this, please don't compare it to the clicketiclick way of windows...) and do:

 

gksudo gedit /etc/fstab

and in there add at the end

 

 

/dev/sdaX(where X is your partition number like sda3 or sda5)      /windows    vfat    defaults,dmask=007,fmask=117,uid=user,gid=user     0    0
and then do:

 

gksudo mount -a
or restart your computer.

 

I'm sorry you had to use a terminal, I know there is a way to do it with nautilus or the partition manager but I don't have a fat partition that is not an external drive that I hotplug and I usually do most of everything with the terminal because for me personally is faster since I type very fast...

 

Hope this helps you.

 

Ciao

q9c9p

Share this post


Link to post
Share on other sites

I installed Mountmanager as you suggested and I modified the mount points. I set the partition I wanted to be mounted in "/windows" and applied the new settings. What has happened now is that it's now owned by root. The whole partition. I can't modify and/or delete things unless I launch software with the sudo command. I tried to set that anyone can use the partition in Mountmanager but it didn't work. Also tried to change the owner through folder options using sudo nautilus but it couldn't change the user or user group. Any help in that?

 

Sorry for the late reply, but you can change ownership using the chown command.

 

CONSOLE
sudo chown user:group /path/of/partition

Replace "user" with your username and "group" with the primary group your username is placed under (this is normally the same as your username). I had to do this too, but it has been a long time since i had to do this, and have just now remembered.

Share this post


Link to post
Share on other sites

Thanks for the suggestions provided, but neither worked. Truefusion, using your command it returns that I'm not allowed to do it. With q9c9p's stuff, it just doesn't work.

Share this post


Link to post
Share on other sites

Thanks for the suggestions provided, but neither worked. Truefusion, using your command it returns that I'm not allowed to do it. With q9c9p's stuff, it just doesn't work.


Hello Baniboy,

excuse me if I ask, what does not work? could you explain more in detail?

Did you manage to edit the fstab file? Do sudo mount -a return some output? If yes, could you paste it here in the forum?

Thanks a lot and I hope I can still help you.

Ciao

q9c9p

Share this post


Link to post
Share on other sites

Hello Baniboy,
excuse me if I ask, what does not work? could you explain more in detail?

Did you manage to edit the fstab file? Do sudo mount -a return some output? If yes, could you paste it here in the forum?

Thanks a lot and I hope I can still help you.

Ciao

q9c9p


/dev/sdb3 on / type ext4 (rw,commit=0)none on /proc type proc (rw,noexec,nosuid,nodev)none on /sys type sysfs (rw,noexec,nosuid,nodev)fusectl on /sys/fs/fuse/connections type fusectl (rw)none on /sys/kernel/debug type debugfs (rw)none on /sys/kernel/security type securityfs (rw)none on /dev type devtmpfs (rw,mode=0755)none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)none on /dev/shm type tmpfs (rw,nosuid,nodev)none on /var/run type tmpfs (rw,nosuid,mode=0755)none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)/dev/sdb1 on /windows type vfat (rw,noexec,nosuid,nodev)/dev/sdb4 on /home type ext4 (rw,commit=0)binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)gvfs-fuse-daemon on /home/bani/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bani)

And sdb1 is the one I'm trying to change.
By not working I mean I still don't get read-write access to the partition.

Share this post


Link to post
Share on other sites

Okay, so i managed to place myself in your position in more ways than one, and i've managed to get things working the way i intended. The key was setting umask to 0 (zero).

In your case, simply replacing the line that mounts your FAT32 partition in /etc/fstab with this should do the trick:

/dev/sdb1 /windows vfat rw,umask=0 0 0
Note, you may have to remount the partition for changes to take affect. (Restarting the computer will have the same effect.)

Share this post


Link to post
Share on other sites

Okay, so i managed to place myself in your position in more ways than one, and i've managed to get things working the way i intended. The key was setting umask to 0 (zero).
In your case, simply replacing the line that mounts your FAT32 partition in /etc/fstab with this should do the trick:

/dev/sdb1 /windows vfat rw,umask=0 0 0
Note, you may have to remount the partition for changes to take affect. (Restarting the computer will have the same effect.)

I hope this worked out for you,

just in case use also the other tip from truefusion ( using chown -R youruser:yourgroup /windows )

Ciao,

q9c9p

Share this post


Link to post
Share on other sites

Nope! Still not working :) But at least if someone searches similar problems on google they'll find a bunch of solutions here. :D Maybe I have screwed things up big time now since this is acting so strangely that even root can't change anything.

Share this post


Link to post
Share on other sites

Nope! Still not working :) But at least if someone searches similar problems on google they'll find a bunch of solutions here. :D Maybe I have screwed things up big time now since this is acting so strangely that even root can't change anything.

 


Hey,

 

don't despare, the umask=0 is what makes your root account freak out.

 

try this last:

 

tipe id youruser in a terminal; on mine it tells uid=1000(q9c9p) gid=1000(q9c9p) ( plus more stuff ),

then in the fstab type:

 

/dev/sdb1 /windows vfat defaults,rw,uid=1000,gid=1000,umask=000  0  0

then do again mount -a or restart the computer and do a chown -R youruser.yourgroup /windows as root.

 

Also check out this link https://help.ubuntu.com/community/MountingWindowsPartitions

 

Hope this time it works out, and by the way I'm hanging out in the chat of ks if you want immediate help.

 

Ciao,

q9c9p

Share this post


Link to post
Share on other sites

Well, the code you posted didn't work, but instead, the code in your link helped me a bit. I used this in the fstab and now it's working now (I confirmed it by restarting)

/dev/sdb1 /windows vfat defaults,user,exec,uid=1000,gid=100,umask=000
It might be the "user" ( I didn't change it, I forgot. But hey, it's working!) or maybe "exec" that made the difference or something completely else, I don't know.

Thanks for being so patient and helping to you both! :) I don't think it'll take a long time until you have to help me with another screw-up of mine, so don't think it's all over yet. :lol:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.