LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2010, 01:57 PM   #1
mirchichamu
Member
 
Registered: Aug 2008
Distribution: Ubuntu ultimate edition 2.7
Posts: 59

Rep: Reputation: 19
Ubuntu automatically mount windows partitions?


Hi all....Ubuntu is automatically mounting all windows partitions. I wanted to mount only one common partition i,e NTFS storage partition to mount and used for both OSs i,e windows and Ubuntu. I unticked all partitions in NTFS configuration tools but in vain.

Any help will be appreciated.
 
Old 10-10-2010, 02:25 PM   #2
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
post the output of
Code:
$ pic /etc/fstab
 
Old 10-10-2010, 03:31 PM   #3
mirchichamu
Member
 
Registered: Aug 2008
Distribution: Ubuntu ultimate edition 2.7
Posts: 59

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by mf93 View Post
post the output of
Code:
$ pic /etc/fstab
Thanks mf93 for the help. Here is the output:
Attached Thumbnails
Click image for larger version

Name:	Screenshot-1.png
Views:	31
Size:	88.6 KB
ID:	4817  
 
Old 10-10-2010, 08:05 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
You have ntfs partitions on sda2, sda3 and sda9. Put a hash mark (#) to the left of the line (the beginning of the line) referencing the partitions(s) you do not want mounted. You could also delete the line but make sure you have a backup first. Need to use sudo.
 
Old 10-11-2010, 12:25 AM   #5
mirchichamu
Member
 
Registered: Aug 2008
Distribution: Ubuntu ultimate edition 2.7
Posts: 59

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by yancek View Post
You have ntfs partitions on sda2, sda3 and sda9. Put a hash mark (#) to the left of the line (the beginning of the line) referencing the partitions(s) you do not want mounted. You could also delete the line but make sure you have a backup first. Need to use sudo.
Thanks yancek for the reply.
Do I have to put # in the terminal window?There is already # for the entries?
 
Old 10-11-2010, 12:41 AM   #6
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
type in this:
Code:
$ sudo pico /etc/fstab
this should open up the file in a text-editor window---go to the lines that start with UUID and put a # at the beginning of them.
reboot and wont mount the partitions
 
Old 10-11-2010, 06:45 AM   #7
mirchichamu
Member
 
Registered: Aug 2008
Distribution: Ubuntu ultimate edition 2.7
Posts: 59

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by mf93 View Post
type in this:
Code:
$ sudo pico /etc/fstab
this should open up the file in a text-editor window---go to the lines that start with UUID and put a # at the beginning of them.
reboot and wont mount the partitions
Thanks mf93! This command only open in terminal. Its not opening in text editor. Further help will be appreciated.Thanks.
 
Old 10-11-2010, 07:46 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
pico is a terminal-based text editor.
 
Old 10-11-2010, 08:10 AM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Also, use a monospaced font for your terminal. That screenshot is horrible!
 
Old 10-11-2010, 11:09 AM   #10
mirchichamu
Member
 
Registered: Aug 2008
Distribution: Ubuntu ultimate edition 2.7
Posts: 59

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by Nylex View Post
pico is a terminal-based text editor.
Thanks but how to save that?
Attached Thumbnails
Click image for larger version

Name:	Screenshot-2.png
Views:	9
Size:	101.0 KB
ID:	4821  
 
Old 10-11-2010, 11:17 AM   #11
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Look at the reference at the bottom of the terminal.

Hint: ^A means Ctrl+A, ^B is Ctrl+B, etc.
 
Old 10-11-2010, 11:37 AM   #12
mirchichamu
Member
 
Registered: Aug 2008
Distribution: Ubuntu ultimate edition 2.7
Posts: 59

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by MTK358 View Post
Look at the reference at the bottom of the terminal.

Hint: ^A means Ctrl+A, ^B is Ctrl+B, etc.
Thanks for the reply and clues. But how to save this file? I don't know all these jargons please.When I want to write out the file, it ask me a name. Should I give a separate name? I am afraid of things going wrong????
 
Old 10-11-2010, 11:49 AM   #13
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
ctrl+x then enter twice should save it

p.s I would definitely recommend spending some time learning how to use the linux terminal- it is an extremely useful tool and will help you quickly solve a lot of problems similar to this one. I would also recommend researching a little bit of how linux works because it is pretty intuitive and can help you debug problems exponentially faster than using this forum. It can be boring and tedious, but it is definitely worth it in the long run.

Last edited by mf93; 10-11-2010 at 11:50 AM.
 
Old 10-11-2010, 12:09 PM   #14
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Do you understand that "saving" a file is writing it to the same name?

AFAIK pico (actually it's nano, a free, open-source clone of pico) automatically puts in the name of the original file when you choose to "WriteOut". Also, it prompts you if you want to write it when you exit with unwritten changes.

For learining the command line, see the LinuxCommand tutorial, linked to in my sig.

Last edited by MTK358; 10-11-2010 at 12:10 PM.
 
Old 10-11-2010, 12:14 PM   #15
mirchichamu
Member
 
Registered: Aug 2008
Distribution: Ubuntu ultimate edition 2.7
Posts: 59

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by mf93 View Post
ctrl+x then enter twice should save it

p.s I would definitely recommend spending some time learning how to use the linux terminal- it is an extremely useful tool and will help you quickly solve a lot of problems similar to this one. I would also recommend researching a little bit of how linux works because it is pretty intuitive and can help you debug problems exponentially faster than using this forum. It can be boring and tedious, but it is definitely worth it in the long run.
Thanks a million for the help. Ultimately it got solved. I will try to give a time to learn terminal commands.
 
  


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
[SOLVED] Automatically mount partitions under /media instead of clicking, without fstab gregorian Linux - Newbie 5 03-30-2010 09:12 PM
How do I configure DSL to automatically see and mount local partitions? Andriy DamnSmallLinux 6 05-24-2007 03:50 PM
mount windows xp partitions in ubuntu newbieSC Linux - Newbie 8 04-20-2005 10:47 PM
How to mount FAT partitions under Linux automatically cquedugdylp Linux - Hardware 9 03-23-2005 11:14 PM
how do i automatically mount partitions when system starts coolinuxguy246 Linux - Newbie 3 04-25-2004 10:38 AM


All times are GMT -5. The time now is 12:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration