Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to remove my windows and recovery partition from under the devices so that no one accidentally edits them. I'm using ubuntu 11.10.

share|improve this question
1  
what do you mean by from under the devices? –  sum2000 Dec 19 '11 at 8:59

2 Answers 2

I am thinking by devices you mean under /dev like /dev/sdaX ,/dev/sdaY and so on. That I am afraid is not possible. You could follow bkzland's instructions and stop your those two NTFS drives (Windows partition & Recovery Partition) from auto-mounting on startup, if they do.

Another viable option using the fstab file is to limit the permissions of who can access/edit the two partitions. You could take a look at the Ubuntu Community Documentation on fstab to achieve any of these solutions.

Just to prevent other users from touching those partitions from the Nautilus side-bar, you could follow the instructions on this page and also this thread at UbuntuForums.org to do that. I haven't tested either of them myself personally, but just saying that you could. But even then, your drives will show up in command-line tools like fdisk, blkid and such and also on disk-utility programs like Gparted partition editor and such.

share|improve this answer

You probably want to edit your /etc/fstab file and exclude the automatically configured NTFS devices for your windows partitions. Just take a look in there and comment out the lines referencing any NTFS or windows partition. You will need to be root to edit this file using sudo su -. These settings will take effect after a reboot, you can also unmount them manually with umount and skip the reboot.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.