Do I have to re-mount a windows NTFS partition every time I boot up?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Do I have to re-mount a windows NTFS partition every time I boot up?
I just loaded Ubuntu 8.1 as a dual-boot system with XP. To get access to my windows files from Linux I mounted a windows NTFS file partition, which worked exactly as described. However, when I restart the computer the directory is there, with a padlock icon next to it, but it is empty. Do I need to re-mount this partition every time I start my computer?
It sounds like you need to add your Windows partition to your /etc/fstab file, and then it will be automatically mounted on start up. How about doing:
Code:
gksudo gedit /etc/fstab
And then add the following lines:
Code:
# Mounting Windows partition:
/dev/sda1 /media/Windows ntfs defaults,uid=0,gid=46,auto,rw,nouser,umask=007 0 0
So change sda1 to your Windows partition, and also make sure whichever directory you want to mount it to exists. In other words, in the above example the /media/Windows directory needs to exist so you can mount to it. You can create a directory with:
Thanks for the advice. I tried using the code you suggested but the partition would not load on startup. The code I used to mount the partition, on directory "/media/windows" is:
This code works fine but I have to re-enter it each time I boot up. Are there some variations in the code you suggested that would work like the line above?
Thanks again for your help. So far I much prefer Linux to Windows, and I was hoping to use this partition access to limit the amount of time I would need to boot into XP. It won't be the end of the world if I can't get this to work, but it would be nice if I could.
Thanks, alan ri. I tried the code you suggested and it worked beautifully.
Just to be clear, I had previously edited my /etc/fstab to add the exact code that CJS recommended, both with and without the new userid and groupid suggested by jschiwal. I don't know what all of the parameters are for in his code but the windows partition was not showing up. I provided the code I had used for the temporary partition mounting only because it worked and there are similar parameters. I'm new to Linux and trying to learn as quickly as I can, but sometimes the code is difficult to follow.
In any event, thanks again for the code you provided. I'm finding the Linux community is much more knowledgeable and helpful than I expected.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.