LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-29-2009, 02:08 AM   #1
sriniwass
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
How to create a new logical partition on sda without mounting to /media?


I have installed Ubuntu 9.10 on a new 320 GiB internal hard drive (the only drive in the laptop) and partitioned it as follows:

Device Mount Point
/dev/sda1 /boot Primary
/dev/sda2 / Primary
/dev/sda3 /linux-swap Primary

/dev/sda4 Extended
/dev/sda5 /tmp
/dev/sda6 /var
/dev/sda7 /usr
/dev/sda8 /usr-local
/dev/sda9 /opt
/dev/sda10 /home
Unallocated 193 GiB

All partitions are Ext4.

I would like to create additional partitions in the Unallocated space. However, when I create new partitions (e.g. /virtual for VirtualBox image files) they always mount to /media automatically and show up as mountable partitions. I know this is how it's supposed to be if I was creating the partition on an additional drive. How can I create the new partition so that it does not mount to /media? I'm not sure if I'm phrasing the question correctly. Thanks.
 
Old 10-29-2009, 02:27 AM   #2
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Maybe create a /data path, then:

Code:
mkdir /virtual

mount -t ext4 /dev/sda11 /virtual

Your /etc/fstab would look like:

Code:
/dev/sda11   /virtual   ext4   defaults        0       <number>
...where <number> is the sequence number by which fsck tests filesystems. I think I got all that right, but stare at it with a jaundiced eye for a bit to make sure ; )
 
Old 11-07-2009, 12:34 AM   #3
sriniwass
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
wfh,

That worked perfectly. I was getting confused between the directory name and the partition label. I also had a typo in the /etc/fstab file. But it is working correctly now. Thanks.
 
  


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
Can I create logical drive under Extended Partition? DataSheet Linux - Newbie 3 01-25-2007 12:39 AM
Can create logical volume after ext3 partition setup finished? lewkh Linux - Newbie 0 11-17-2004 01:00 AM
What is command to create logical drive in extended Partition ozy777ozy Fedora 1 09-08-2004 02:43 AM
Mounting a logical partition... J_Bone Linux - Newbie 11 08-17-2003 07:35 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

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

All times are GMT -5. The time now is 01:30 AM.

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