Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-15-2007, 04:53 PM
|
#1
|
Member
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Rep:
|
Solved! I want one mount point to span several drives.
Hi,
I've put together a home server, so far it's ready hardware wise. Now I would like to install Ubuntu on it.
The hardware is as follows:
P4-2.6Ghz CPU 800FSB
2GB PC2700 RAM
4 x 40GB hard drives
GeForce FX5200 128MB video card
CDRW IDE drive
I took the floppy drive out. Then installed an ATA133 Dual channel PCI IDE controller.
IDE 1 on the motherboard has 2 hard drives and IDE 1 on the PCI controller the other 2 hard drives. IDE 2 on the motherboard is controlling the CDRW drive. I'll be using the Ubuntu Desktop 6.06LTS CD for installation. Basically, during the partitioning step, I would like to do the following:
/ = about 19GB
/swap = 512MB
/home = 140GB
I know how to do this in W1nd0ws, but would like to learn how to do it in Linux. Plus I want the stability from a Linux installation, instead. Any help is greatly appreciated? Links to howto's, personal experiences, all is welcomed.
Thanks.
Last edited by hrp2171; 03-16-2007 at 09:07 AM.
|
|
|
03-15-2007, 05:10 PM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Read the install docs,
run the installer,
follow the prompts....
You will use unix fdisk to partition your drives.
If you are not going to use a separate '/usr' partition I would recommend making '/' larger, or you may find yourself cramped down the road because _everything_ except your personal files will be put in '/'.
|
|
|
03-15-2007, 05:20 PM
|
#3
|
Member
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Original Poster
Rep:
|
If I have to download the Alternate CD as my only option, then this is all a waste of time for me. I would like to just use the media I already have to do the install I want.
I went to Community Docs -> User Documentation -> Installation/LVMonRAID.
|
|
|
03-15-2007, 05:41 PM
|
#4
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Quote:
If I have to download the Alternate CD as my only option, then this is all a waste of time for me
|
Who said you had to do that?
|
|
|
03-15-2007, 06:19 PM
|
#5
|
Member
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Original Poster
Rep:
|
It's what I understood from  the Install Docs at ubuntu.com.
Were you refering to a different installation document?
https://help.ubuntu.com/community/In...tion/LVMOnRaid
|
|
|
03-15-2007, 06:32 PM
|
#6
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
I see. You didn't say anywhere that you needed to use LVM and RAID.
If you do then I guess you are resigned to using the alternate install disk.
If you don't need RAID and LVM then just use the generic install docs:
https://help.ubuntu.com/community/GraphicalInstall
|
|
|
03-15-2007, 06:59 PM
|
#7
|
Member
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Original Poster
Rep:
|
I did get to the point where it shows all 4 separate drives: hda, hdb, hde, hdf. But I didn't see an option to tell it to combine more than one drive into one partition.
I could pick hda, create / and swap, but what about the rest of the drives? That's why I assumed I would need some kind of RAID tools during installation.
I'm at work at the moment. I'll go through the install again later on and see if maybe it recognizes the other drives and gives me an option on what to do with them.
Thanks for your help so far, tho. 
|
|
|
03-15-2007, 08:51 PM
|
#8
|
Member
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Original Poster
Rep:
|
I just went through the installation. At the partitioning step, I tried to assign /home to more than one drive. It didn't let me do that. The msg was one mount point assigned to more than one file system.
As it is right now:
/dev/hda1 = 30GB for /
/dev/hda2 = 512MB for /swap
/dev/hda3 = 8GB unused
/dev/hdb1 = 40GB unused
/dev/hde1 = 40GB unused
/dev/hdf1 = 40GB unused
So what would I need to do to combine the unused space into one and mount /home to it?
Thanks. 
|
|
|
03-15-2007, 08:59 PM
|
#9
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
hrp2171:
I misread your original post.
If you want to combine the drives then indeed you need to use LVM and/or RAID.
LVM alone will do what you want, but it is non-trivial. RAID is not necessary unless you want some redundancy.
If you do not want to download the alternate install CD, I am fairly sure you can do a normal install, and just partition one disk for /home. You can then create the LVM setup after you have done the install.
Some reading if you want: http://tldp.org/HOWTO/LVM-HOWTO/
Again, sorry for bunk advice earlier...
|
|
|
03-16-2007, 08:16 AM
|
#10
|
Member
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Original Poster
Rep:
|
Success!!!
Thanks for helping me brainstorm, bulliver.
LVM was the key. I read the whole HOWTO and it demistified LVM for me.
This is what I did to create a spanned volume(MS term) covering several hard drives, then mounting it to /mnt.
I followed the LVM-HOWTO recipe for creating a volume group, etc on 3 hard drives. The difference is I have 4 drives to add. No biggy.
Given my current setup: /dev/hda3 /dev/hdb1 /dev/hde1 /dev/hdf1
Together they totalled aprox. 125GB of freespace.
Initialize all physical volumes(pv):
sudo pvcreate /dev/hda3
sudo pvcreate /dev/hdb1
sudo pvcreate /dev/hde1
sudo pvcreate /dev/hdf1
Create volume group(vg):
sudo vgcreate media /dev/evms/hda3 /dev/evms/hdb1 /dev/evms/hde1 /dev/evms/hdf1
Create logical volume(lv):
sudo lvcreate -L120G -nmedialv media
Format logical volume:
sudo mke2fs -j /dev/media/medialv
Mount and display available space:
sudo mount /dev/media/medialv /mnt
df
Output of df:
/dev/mapper/media-medialv
123854820 131228 117432136 1% /mnt
I now have aprox. 118GB to use. 
Last edited by hrp2171; 03-17-2007 at 10:39 AM.
|
|
|
03-16-2007, 01:46 PM
|
#11
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Good work, glad you got it figured out!
|
|
|
All times are GMT -5. The time now is 03:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|