LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-04-2008, 04:21 PM   #1
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Rep: Reputation: 15
How do I create a Linux Parition?


Hello,

I would like to know how to do two things

1) How would I add another IDE Hard Disk to my system and extend the filesystem on it?

2) I would like to create a 10G partition on the new drive

Please let me know what information you would need to know for this.

Thank you.
 
Old 12-04-2008, 04:28 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
The first item on a long list from the Google search for 'create partition linux' that you could have done yourself --> http://tldp.org/HOWTO/Partition/
 
Old 12-04-2008, 04:31 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459
Quote:
Originally Posted by Treikayan View Post
Hello,

I would like to know how to do two things

1) How would I add another IDE Hard Disk to my system and extend the filesystem on it?

2) I would like to create a 10G partition on the new drive

Please let me know what information you would need to know for this.

Thank you.
Well, saying what version/distro of linux you're running would be a good start, along with some details about your hardware, and what your current configuration is.

You say "extend the filesystem on it". That's vague...do you want to create a new filesystem, add the new disk to an existing logical volume group to get more space, or (as you say in point 2), create a 10G partition. You don't say anything about the 10g, but I assume it's to do with Oracle, which brings up more questions. Using ASM on it? How big of a database/how much IO?
 
Old 12-04-2008, 04:55 PM   #4
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
Distribution: CentoOS 5.1 i386
Hardware: HP Pavilion, IDE Hard Drive (40GB). The drive I want to add is the same.

I would like to use both drives as if they are one, so that would be all 80GB (1st and 2nd drive together). The 10GB is nothing special, I just wanted to learn (and know) how to do it in case down the road I decided to do it.

What do you mean by configurations?
 
Old 12-04-2008, 05:05 PM   #5
teknik
Member
 
Registered: Jun 2006
Location: Winnipeg, Canada
Distribution: Slackware 12.1
Posts: 33

Rep: Reputation: 16
you can't just "use both drives as if they are one", unless your using raid, which you'll need sata drives for, not ide.

what you CAN do is mount your new hard drive to a mount point inside your existing file system.

for example, /home/your_user/newdrive
 
Old 12-04-2008, 05:19 PM   #6
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
Ok, I apoligize, but scratch the initial question. The only reason I asked the first question was so I could test it first on a test box!

Now, I do have a server that is setup in a RAID-5 setup (5 drives). They are SATA Hard drives (sda).

Hardware: Intel Server SE7500Wv2

I would like to have a 50G partition added to the default Volume Group.
 
Old 12-04-2008, 05:31 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459
Quote:
Originally Posted by teknik View Post
you can't just "use both drives as if they are one", unless your using raid, which you'll need sata drives for, not ide.

what you CAN do is mount your new hard drive to a mount point inside your existing file system.

for example, /home/your_user/newdrive
Yes, you can....creating a logical volume group can easily do this. Adding a 5GB slice from drive A, to the 60GB from drive B, and 80GB from drive C, can create one 145GB 'drive'. It looks like one drive, but data is written to all of them. Drawback is, you lose one drive...you lose them all.
 
Old 12-04-2008, 05:33 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459
Quote:
Originally Posted by Treikayan View Post
Ok, I apoligize, but scratch the initial question. The only reason I asked the first question was so I could test it first on a test box!

Now, I do have a server that is setup in a RAID-5 setup (5 drives). They are SATA Hard drives (sda).

Hardware: Intel Server SE7500Wv2

I would like to have a 50G partition added to the default Volume Group.
Not that difficult to do that at all, if you've already got a volume group built and defined. This:

http://www.howtoforge.com/linux_lvm

Will help you. You can easily add a second IDE drive, and play with LV's until you're comfortable, then do it in production (never a bad idea...)
 
Old 12-04-2008, 05:35 PM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Quote:
Originally Posted by TB0ne View Post
Yes, you can....creating a logical volume group can easily do this. Adding a 5GB slice from drive A, to the 60GB from drive B, and 80GB from drive C, can create one 145GB 'drive'. It looks like one drive, but data is written to all of them. Drawback is, you lose one drive...you lose them all.
Yes, you can, and that's not the only way.

It all comes down to the file system you use. LVM is a valid alternative, but ZFS can also do this without problems. UnionFS is another example.
 
  


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
Parition help, create/raid above 4T sir-lancealot Linux - Software 0 07-23-2008 10:03 AM
Help, Linux Parition damaged?? mabs Linux - Software 2 09-14-2004 10:53 AM
Linux Parition Install Windows DaveyB Linux - Software 9 09-09-2004 10:19 AM
How to create an extended parition/logical drive the windows can use? uveraser General 7 06-29-2004 07:03 AM
How do U see a Linux parition in WIndows? Alinuxnoob Linux - Newbie 3 04-30-2002 07:57 PM

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

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