LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-02-2012, 10:21 AM   #1
noman.fayez
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Rep: Reputation: Disabled
How to Disable access to rest of the drive/partition and second HDD


I have two HDD 2TB and 200GB.

while installing Ubuntu 11.10 I remove 2TB from my PC and install Ubuntu in 200 GB HDD (root partition in "/dev/sdb2" and swap at /dev/sdb8).

Now I want the following:

find the screen shot. My second (2TB) HDD has lot of encrypted drives.
these are not in the computer (my computer home) list, so they are not mounted as well. but rest of the drives are in visible and right click mount/unmount list. I want to stop Ubuntu accessing all these drives not even mount/unmount list and not again visible after restart (like Ubuntu failed to read my encrypted drives... It should also failed to read-write all my NTFS or ext3 drives).
It (Ubuntu) should only get the access to File system Drive (which is the " / " of it).

Please help me by details command.. I am a new in linux
Attached Thumbnails
Click image for larger version

Name:	Screenshot at 2012-03-02 21:28:46.jpg
Views:	22
Size:	90.3 KB
ID:	9172   Click image for larger version

Name:	Screenshot at 2012-03-02 21:57:38.png
Views:	15
Size:	186.9 KB
ID:	9174   Click image for larger version

Name:	Screenshot at 2012-03-02 21:57:30.png
Views:	13
Size:	195.8 KB
ID:	9175  
 
Old 03-02-2012, 11:13 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
System settings -> Hardware -> Removable Devices (in Kubuntu)
 
Old 03-02-2012, 12:41 PM   #3
noman.fayez
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
no way

Quote:
Originally Posted by amani View Post
System settings -> Hardware -> Removable Devices (in Kubuntu)
It is not Kubuntu .... I said that Ubuntu 11.10
 
Old 03-02-2012, 01:30 PM   #4
noman.fayez
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
please look: screen shot taken by win7

Quote:
Originally Posted by noman.fayez View Post
I have two HDD 2TB and 200GB.

while installing Ubuntu 11.10 I remove 2TB from my PC and install Ubuntu in 200 GB HDD (root partition in "/dev/sdb2" and swap at /dev/sdb8).

Now I want the following:

find the screen shot. My second (2TB) HDD has lot of encrypted drives.
these are not in the computer (my computer home) list, so they are not mounted as well. but rest of the drives are in visible and right click mount/unmount list. I want to stop Ubuntu accessing all these drives not even mount/unmount list and not again visible after restart (like Ubuntu failed to read my encrypted drives... It should also failed to read-write all my NTFS or ext3 drives).
It (Ubuntu) should only get the access to File system Drive (which is the " / " of it).

Please help me by details command.. I am a new in linux
Here is the two new pics
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	16
Size:	192.3 KB
ID:	9176   Click image for larger version

Name:	Untitled1.jpg
Views:	14
Size:	129.7 KB
ID:	9177  
 
Old 03-03-2012, 11:27 AM   #5
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
It should be as easy in Ubuntu as well.
Access can be controlled by users and groups.
icons can simply be thrown away...some thing like system settings/administration controls that.
ntfs-3g is required for r/w of ntfs drives.
 
Old 03-04-2012, 12:06 AM   #6
noman.fayez
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Do not reply without reading the problem

Is there anyone who can reply me after clearly reading my problem.

Already Two people has given answer without reading that what I am looking for !

Last edited by noman.fayez; 03-04-2012 at 12:07 AM. Reason: Spelling
 
Old 03-04-2012, 12:11 AM   #7
noman.fayez
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I need to stop access my second HDD from Ubuntu 11.10 and also I want to stop the rest of the partition rather that Ubuntu's root partition of it.
Ubuntu should only access to its file system partiotion.
 
Old 03-09-2012, 01:44 PM   #8
noman.fayez
LQ Newbie
 
Registered: Jan 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
So to make that happen:

[1] Create a mount point for the ntfs partition not to mount to ( play along please ):
Code:

sudo mkdir /Win7

[2] Add a line to the end of /etc/fstab:
Code:

UUID=51310292633543B0 /Win7 ntfs noauto 0 0

Note: To find the right UUID number run the following command:
Code:

sudo blkid -c /dev/null

[3] Run the following command:
Code:

sudo mount -a

"mount -a" won't actually do anything on a partition with a noauto option but running it will produce errors if you made a typo somewhere.

The next time you boot there will be a folder at /Win7 but it will be empty. The only way to mount it is from the command line by root.


I have got the answer!!
 
Old 03-14-2012, 01:00 PM   #9
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
There is no need to write that in fstab unless you want the mount command to be shorter. Your initial description did not sound like you wanted to mount them.

Anyway, do read https://wiki.archlinux.org/index.php/Udev and related pages.
 
  


Reply



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
[SOLVED] Kubuntu 10.04, i386, new install. Can't access EXT4 partition on same HDD. Bhakta Neal Linux - Newbie 25 05-20-2011 12:06 PM
Ext3 Partition on External HDD have no write access Ikbosh Linux - Hardware 7 04-15-2010 07:41 AM
disable DVD-drive access LED via software? Cazed Linux - Hardware 3 06-08-2009 08:12 AM
wheres the rest of the hdd space go? conandor Solaris / OpenSolaris 3 05-08-2008 06:52 AM
Need help partitioning hard drive...cannot access the rest of hd from Fedora... dude_56013 Linux - Software 4 08-04-2007 03:54 AM

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

All times are GMT -5. The time now is 11:09 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