PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 08:13:53 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Hiding partitions in Linux  (Read 615 times)
TheGhost
Sr. Member
****
Offline Offline

Posts: 397


Boo!


« on: July 17, 2010, 02:56:21 PM »

I just installed for a friend a dual boot system with Win XP and PCLOS.
The computer originally had Vista, so I reformatted and installed XP and PCLOS. However, I did leave in place the recovery partition (system is an XP Pavillion Slimline). This in case it might be needed eventually.

I used partition magic to hide the partition, and it works in Windows - the partition is not visible in Explorer.
However, it doesn't work with Linux - the partition "recovery" is clearly visible in Dolphin, and it can be mounted and written to. This is what I'm trying to prevent; that they might accidentally damage the recovery.

Is there a way to hide the partition from Dolphin and Konqueror?

I tried using Gparted to hide it, but it made no difference.

Any ideas?
Logged

I was once a sinner, but I have seen the light. Linux saved me!
uncleV
Guest
« Reply #1 on: July 17, 2010, 03:07:43 PM »

Quote
This is what I'm trying to prevent; that they might accidentally damage the recovery.
What about limiting the permissions in PCLOS?
Logged
TheGhost
Sr. Member
****
Offline Offline

Posts: 397


Boo!


« Reply #2 on: July 17, 2010, 03:33:10 PM »

Quote
This is what I'm trying to prevent; that they might accidentally damage the recovery.
What about limiting the permissions in PCLOS?

Unfortunately, the partition is NTFS, so I can't just use permissions.

However, you just gave me an idea: I'll try to limit the access in fstab (use the "read only" option). I'll try right now.

EDIT: That did work in some way. Using the "noauto" and "ro (read only)" options in fstab causes the partition to be locked: only root can mount it, and even when mounted it's read only.

This would do at the moment. However, if there was a way to actually hide a partition from Linux, that could be useful under certain applications. I'll leave this issue open for the moment.
Logged

I was once a sinner, but I have seen the light. Linux saved me!
uncleV
Guest
« Reply #3 on: July 17, 2010, 04:04:20 PM »

Don't know about hiding. Smiley

But I think if you go to /mnt/ (or where ever you mounted your NTFS partition) you'll see a file with its name, e.g. "recovery_partition". This file is directing to the partition and you can change its permissions the way they will not be able to even read it. So they will only see there's some partition.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM