Is there way Windows partition to be as '/windows' ?
UbuntuThis forum is for the discussion of Ubuntu 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.
Is there way Windows partition to be as '/windows' ?
Hi!
On my laptop I use ubuntu over a year and there was no problem to put Windows partition in '/windows' directory in '/' (if cannot be understand - the windows folders like "windows", "Documents and settings" are when I go in '/windows'). It's now 10.4 and it is still in that way. But now, in Desktop Ubuntu 10.4 on other computer, I came across some difficulties of doing that. Windows partition is presented as mounted in '/media'.
So can I do it like the laptop - not as removable disk, but as a part of the whole system and the ntfs format disk be presented as '/windows'?
You can have a partition mounted wherever you like and called what you like.
First you need to make an empty directory with the name you want in the place you want.
sudo mkdir /windows
You might also need to change the protection settings of that empty directory (I'm unsure of some details).
Then umount the partition if it was mounted elsewhere.
Then edit /etc/fstab to change where the partition will be mounted.
Then mount the partition.
The Ubuntu installer saw a pre existing Windows partition and set up the empty directory and the line in /etc/fstab to mount that partition in some place that version of the installer thought convenient. But you don't need to keep its choice.
Thanks a lot!
It works, but maybe, I am not doing something right in /etc/fstab, because eache time I reboot, it unmounts again. Here's what's written there: # /windows was on /dev/sda1 during installation
UUID=25313A1926FCA7C0 /windows ntfs defaults,uid=1000,gid=1000,umask=0022 0 0
Thanks a lot everyone for the help !
It wouldn't work, because UUID has nothing in common with the listed one with the command of pixellany.
Now it's working right !
Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.