LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2003, 08:58 AM   #1
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
HOWTO Split my exist Linux drive!


Here is my partition table from fdisk -l

Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 865 6948081 b Win95 FAT32
/dev/hda2 866 14946 113105632+ f Win95 Ext'd (LBA)
/dev/hda5 866 905 321268+ 83 Linux
/dev/hda6 906 2621 13783738+ b Win95 FAT32
/dev/hda7 2622 11221 69079468+ b Win95 FAT32
/dev/hda8 11222 11352 1052226 82 Linux swap
/dev/hda9 11353 14946 28868773+ 83 Linux

/dev/hda9 was where my redhatlinux 9.0 was installed on, but now redhat will not support redhat* no more, but only Fedora Project.
SO i decide to try Mandrakes 9.1 since that's the only dist. i have with me. Once i heard of you could split a extended drive in linux. I know that must be true but how can i split my /dev/hda9 in to /dev/hda9 for redhat and /dev/hda10 for mandrakes?
Also, if i did sucessful repartition it, do i make then share the /boot directory?
Any ideas?
 
Old 11-13-2003, 09:31 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Use Parted or Qtparted to repartition, or resize2fs if you use ext2/ext3.
 
Old 11-13-2003, 10:18 AM   #3
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
could u gave me more detail.
I am not a newbie, but still not a powerful user yet.
From my Hardware Browser, it states that my hda9 have 28192 mb and the partition type was ext3.
I was leave my redhatlinux for around 15gb and 13gb for my new mandrakes.
And do before i do it, do i need to defragment my hard drive or is it necessary. because it seems linux doesn't need to defrag.
 
Old 11-13-2003, 01:39 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Well with resize2fs...
You need to have hda9 unmounted, so use a rescue disk or something.
First:
$ resize2fs /dev/hda9 [newsize (in blocks, they're usaully 4kb)]
Now your ext3 filesystem is newsize blocks (<-any size you choose, like 15gb). But your hda9 is still the original size. Resize it with fdisk. Just delete the partition and recreate it. This is the tricky part. If the partition you recreate doesn't start in the same place, it could mess up things. Same thing if you recreate it too small (smaller than newsize). Once the partition is remade, you have free space to make new partitions.
 
Old 11-13-2003, 07:11 PM   #5
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
but how can i creat my new mandrake partition?
Do i need to use resize2fs again or i just need to use fdisk to creat a new partition?
Also, how could u tell fdisk to creat a drive which could fill all the rest of the space which was on that drive?
 
Old 11-13-2003, 07:20 PM   #6
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
jeese, how many partitions can exist on a standard hard drive?
 
Old 11-14-2003, 07:05 AM   #7
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Quote:
jeese, how many partitions can exist on a standard hard drive?
I guess about 44 usable ones.

Once you resize your partition, you leave unpartitioned space on your hard drive. The Mandrake Linux installation has the nice graphical tool DiskDrake for managing partitions (don't know if you can use that for resizing your ext3 instead of with resize2fs). You can use that to create your Mandrake partitions. Try using cfdisk instead of fdisk when possible. It is easier. In cfdisk, when you choose 'New', the free space on the disk is selected already, but you can change it if you want.
 
  


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
Moving linux partition from original hard drive to another, howto??? Fear58 Linux - General 22 02-15-2008 04:26 PM
Howto fix split horiz screen in XF86Config Nice-n-Slow Linux - Software 0 11-29-2004 07:10 PM
Split drive (HDD) Continued... unixfreak Linux - Newbie 39 09-27-2004 01:34 PM
HOWTO file not exist !!! h_tony11 Linux - Newbie 3 12-01-2002 01:10 PM
HOWTO file not exist h_tony11 Linux - Hardware 1 11-29-2002 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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