LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-29-2010, 04:19 AM   #1
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Rep: Reputation: 10
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'?

Thanks !
 
Old 06-29-2010, 05:18 AM   #2
linus.newbert
LQ Newbie
 
Registered: Jun 2010
Posts: 12

Rep: Reputation: 0
1. Identify the underlining device associated to your windows disk/partition.
2. Edit /etc/fstab by adding an entry for your windows disk/partition.

That should be it. If in need for further clarification try:
https://help.ubuntu.com/community/Mo...dowsPartitions
http://opensuse.swerdna.org/susentfs.html#permanent

Hope it does the trick for you.
 
Old 06-29-2010, 05:38 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
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.
 
Old 06-29-2010, 05:39 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Code:
sudo mkdir /windows
then:
Code:
sudo mount /dev/sda? /windows
Something like that, then edit your /etc/fstab. I'm not sure how that should be done in Ubuntu.

****! Beaten by a faster typer again!

Last edited by brianL; 06-29-2010 at 05:40 AM.
 
Old 06-29-2010, 07:34 AM   #5
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Original Poster
Rep: Reputation: 10
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
 
Old 06-29-2010, 08:11 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
That's not a complete UUID.

To see the mapping of UUIDs to device nodes, do this:

Code:
ls -l /dev/disk/by-uuid
 
Old 06-29-2010, 08:30 AM   #7
SleepyWolf
LQ Newbie
 
Registered: Nov 2008
Location: Sofia
Posts: 27

Original Poster
Rep: Reputation: 10
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wine installed a program onto my windows partition, Windows BSOD on boot. DJGCrusader Linux - Enterprise 9 08-14-2009 08:25 AM
installing RedHat on Windows Vista without destroying the Windows partition mpoplawski Linux - Newbie 6 07-10-2009 06:25 AM
chmod/chown does not work on windows partition - cannot open files in windows anix Linux - Newbie 1 10-01-2008 01:40 PM
LXer: Life after Windows, 3 1/2 months: Deleted the Windows partition LXer Syndicated Linux News 0 06-28-2008 09:41 AM
are there any tools for scaning windows partition with windows virus... hkl8324 Linux - Newbie 1 08-04-2004 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration