LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-15-2007, 04:53 PM   #1
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
Thumbs up 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.
 
Old 03-15-2007, 05:10 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
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 '/'.
 
Old 03-15-2007, 05:20 PM   #3
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Original Poster
Rep: Reputation: 30
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.
 
Old 03-15-2007, 05:41 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
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?
 
Old 03-15-2007, 06:19 PM   #5
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Original Poster
Rep: Reputation: 30
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
 
Old 03-15-2007, 06:32 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
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
 
Old 03-15-2007, 06:59 PM   #7
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Original Poster
Rep: Reputation: 30
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.
 
Old 03-15-2007, 08:51 PM   #8
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Original Poster
Rep: Reputation: 30
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.
 
Old 03-15-2007, 08:59 PM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
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...
 
Old 03-16-2007, 08:16 AM   #10
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Original Poster
Rep: Reputation: 30
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.
 
Old 03-16-2007, 01:46 PM   #11
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
Good work, glad you got it figured out!
 
  


Reply

Tags
lvm, lvm2, volumes


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
Make removable USB hdd mount at fixed mount point ctkroeker Linux - General 13 08-11-2009 08:49 AM
NOOB- wants to span hard drives darklight55 Ubuntu 2 12-26-2006 07:54 PM
Can I mount a local NTFS disc as SAMBA mount point? alek66 Linux - Networking 15 10-01-2006 10:02 AM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration