LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-01-2007, 08:59 PM   #1
chenrazee
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Rep: Reputation: 0
Smile Trying to hide Ubuntu and Vista from each other.


In Windows Vista, I can hide the Ubuntu Linux partition by doing the following:

Start -> Run -> diskmgmt.msc
Select the partition (ie: D: drive)
Right-click it
Select Change Drive Letter and Paths...
Click Remove

Drive D: becomes invisible to Windows Explorer from then on in, and remains persistent after rebooting.

I'm trying to achieve the same thing in Ubuntu 7.04, by hiding the Windows Vista partition from Ubuntu.

I've managed to hide the /media/disk folder, but in Places -> Computer the 77.8 GB volume housing the Windows files is still visible. If double-clicked, (and after entering my password,) the files become browsable. (I'm presuming this procedure re-mounts the volume?)

Does the Ubuntu equivalent of Windows Explorer also show unmounted partitions?

There's no sign of the partition in the /etc/fstab file.
____________________________________________________________________________________________________

fstab looks like this:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda3
UUID=d8da376b-2de4-4077-acc3-8ffeb520110c / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=37e280c9-44fb-4983-840b-31cec4256df5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
____________________________________________________________________________________________________

sudo fdisk -l :

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 19457 156283904 6 FAT16
/dev/sda2 * 19457 29616 81605469 7 HPFS/NTFS
/dev/sda3 29617 38536 71649900 83 Linux
/dev/sda4 38537 38913 3028252+ 5 Extended
/dev/sda5 38537 38913 3028221 82 Linux swap / Solaris

____________________________________________________________________________________________________

It's that /dev/sda2 partition that I'm trying to hide from Ubuntu.

Is there a way to make that 77.8 GB volume disappear?

I'm pretty much a complete newbie when it comes to Linux, (I only managed to dual-boot Ubuntu and Vista for the first time the other day, after several frustrated attempts.

Any help you might be able to offer would be very much appreciated. Cheers!
 
Old 07-01-2007, 09:15 PM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
you could change it so the folder it mounts to is hidden by putting a . in front of it
 
Old 07-01-2007, 11:09 PM   #3
chenrazee
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by AceofSpades19
you could change it so the folder it mounts to is hidden by putting a . in front of it
Thanks for the reply. The folder itself seems hidden at the moment, it's the actual partition I'd like to hide from the Places -> Computer directory viewer. That drive seems to appear even when the /media/disk folder (where the Windows files are) is hidden.

I'm wondering if Places -> Computer is more like a partitioning program than a directory browser, such as Windows Explorer. See, in Vista, the Ubuntu partition can't even be seen. (Which is what I want.)

I'm trying to set the system up so that the only place Ubuntu and Vista can see each other is in the GRUB boot loader and it's associated files. (And of course in the various Partition Managers, which is unavoidable.)

In other words, I'd like to set it up so that when I boot into Ubuntu, Vista and it's partitions/folders/files appear not to exist. And when I boot into Vista, then Ubuntu and it's partition/folders/files appear not to exist.

Cheers!
 
Old 07-01-2007, 11:12 PM   #4
chenrazee
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Wink

Quote:
Originally Posted by AceofSpades19
you could change it so the folder it mounts to is hidden by putting a . in front of it
Wait! Are you saying that putting a . in front of the /disk folder (ie: renaming it .disk) will prevent Ubuntu from seeing the /dev/sda2 partition *at all*?

That'd be cool. Will try it as soon as I get home. Thanks again!
 
Old 07-01-2007, 11:43 PM   #5
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by chenrazee
Wait! Are you saying that putting a . in front of the /disk folder (ie: renaming it .disk) will prevent Ubuntu from seeing the /dev/sda2 partition *at all*?

That'd be cool. Will try it as soon as I get home. Thanks again!
it won't see it unless you type ls- a at the command line or enable view hidden files in Nautilus. Places > Computer just opens Nautilus in /, I think so no its not a paritioning tool
 
Old 07-02-2007, 12:16 AM   #6
chenrazee
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Brilliant! That sounds like exactly what I want. Thank you!
 
  


Reply

Tags
fstab, hide, partition, ubuntu, vista



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
Vista doesn't boot after ubuntu install JMC8501 Linux - General 9 06-14-2009 02:23 PM
Vista and Ubuntu dual boot glore2002 Linux - Software 13 05-08-2007 09:02 AM
Ubuntu With Vista Gryphonsword Ubuntu 2 02-23-2007 09:48 AM
how to dual boot vista and ubuntu? bojox Linux - Newbie 2 01-28-2007 01:10 AM
Dual-Boot: Ubuntu now, Vista Later? leiavoia Ubuntu 1 08-27-2006 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:32 AM.

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