LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 12: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, 01: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, 02: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:	62
Size:	88.6 KB
ID:	4817  
 
Old 10-10-2010, 07:05 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
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-10-2010, 11:25 PM   #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-10-2010, 11:41 PM   #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, 05: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, 06: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, 07:10 AM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Also, use a monospaced font for your terminal. That screenshot is horrible!
 
Old 10-11-2010, 10: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:	34
Size:	101.0 KB
ID:	4821  
 
Old 10-11-2010, 10:17 AM   #11
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

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

Hint: ^A means Ctrl+A, ^B is Ctrl+B, etc.
 
Old 10-11-2010, 10: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, 10: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 10:50 AM.
 
Old 10-11-2010, 11:09 AM   #14
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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 11:10 AM.
 
Old 10-11-2010, 11:14 AM   #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



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 08:12 PM
How do I configure DSL to automatically see and mount local partitions? Andriy DamnSmallLinux 6 05-24-2007 02:50 PM
mount windows xp partitions in ubuntu newbieSC Linux - Newbie 8 04-20-2005 09:47 PM
How to mount FAT partitions under Linux automatically cquedugdylp Linux - Hardware 9 03-23-2005 10:14 PM
how do i automatically mount partitions when system starts coolinuxguy246 Linux - Newbie 3 04-25-2004 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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