growable disk partitions

growable disk partitions

Post by Rohit Grove » Tue, 08 May 2001 01:06:11



Hello,

I have a 20GB hard disk on my computer. I have installed Redhat 7.0 on
it. During the installation, I had used 'disk druid' to create
partitions. The following is the partition table of my disk.

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        17    136521   83  Linux
/dev/hda2            18      2480  19784047+   5  Extended
/dev/hda5            18       801   6297448+  83  Linux
/dev/hda6           802      1324   4200966   83  Linux
/dev/hda7          1325      1357    265041   82  Linux swap
/dev/hda8          1358      1374    136521   83  Linux
/dev/hda9          1375      1391    136521   83  Linux
/dev/hda10         1392      1400     72261   83  Linux

At the time of installation, I had opted for /dev/hda5 to be
growable. This explains a large /dev/hda2 primary partition on my
disk.

Now, I'd like to create another primary partition out of the unused
space on my disk. I need this to install FreeBSD. Unfortunately,
/dev/hda2 won't let me do so.

Can somebody suggest a way to reclaim the unused space to allow
creation of a new primary partition?

thanks,
Rohit Grover.

 
 
 

growable disk partitions

Post by David Efflan » Tue, 08 May 2001 02:07:42



Quote:> Hello,

> I have a 20GB hard disk on my computer. I have installed Redhat 7.0 on
> it. During the installation, I had used 'disk druid' to create
> partitions. The following is the partition table of my disk.

>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1        17    136521   83  Linux
> /dev/hda2            18      2480  19784047+   5  Extended
> /dev/hda5            18       801   6297448+  83  Linux
> /dev/hda6           802      1324   4200966   83  Linux
> /dev/hda7          1325      1357    265041   82  Linux swap
> /dev/hda8          1358      1374    136521   83  Linux
> /dev/hda9          1375      1391    136521   83  Linux
> /dev/hda10         1392      1400     72261   83  Linux

> At the time of installation, I had opted for /dev/hda5 to be
> growable. This explains a large /dev/hda2 primary partition on my
> disk.

I think Disk Druid consumes the rest of your drive with an extended
partition anyway.

Quote:> Now, I'd like to create another primary partition out of the unused
> space on my disk. I need this to install FreeBSD. Unfortunately,
> /dev/hda2 won't let me do so.

> Can somebody suggest a way to reclaim the unused space to allow
> creation of a new primary partition?

I believe you could simply remove and recreate hda2 ending at cyl 1400
instead of 2480.  However, you may need to remove the logical partitions
first and recreate them afterwords.  Simply removing a partition does not
destroy anything, it just changes the partition table, as long as you have
not changed the size of existing data partitions or reformatted over
existing data.

The only problem I see is whether FreeBSD is still under the 1024 cyl boot
limitation.  Check with a freebsd newsgroup.  When I installed FreeBSD
4.0, its / had end before cyl 1024, but the slice could extend beyond
that.  So I first put Linux on the drive and kept it under 8 GB.

Another strange thing was that the Linux fdisk I have cannot read BSD
disklabels for slices that extend beyond cyl 1024, but mount has no
trouble mounting ufs partitions beyond cyl 1024.  This makes it
questionable whether Linux fdisk could handle an extended partition after
FreeBSD, although, primary ext2 partition(s) after FreeBSD is no problem.  
Windows definitely steps on FreeBSD if trying to format a logical
partition after FreeBSD because it does not understand disklabels at all.

--
David Efflandt  (Reply-To is valid)  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

 
 
 

growable disk partitions

Post by Eric » Tue, 08 May 2001 16:10:49


Quote:>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1        17    136521   83  Linux
> /dev/hda2            18      2480  19784047+   5  Extended
> /dev/hda5            18       801   6297448+  83  Linux
> /dev/hda6           802      1324   4200966   83  Linux
> /dev/hda7          1325      1357    265041   82  Linux swap
> /dev/hda8          1358      1374    136521   83  Linux
> /dev/hda9          1375      1391    136521   83  Linux
> /dev/hda10         1392      1400     72261   83  Linux

> Can somebody suggest a way to reclaim the unused space to allow
> creation of a new primary partition?

shrink hda2.
Use eg. GNU's parted for this.

Eric

 
 
 

1. What is a Growable ext2 partition?

Hi,

Recently, when I was upgrading from rh 4.2 to 5.0 and adding an extra
scsi
drive, I noticed an ext2 option in the druid called "growable".  Anyone
know
what this is about?

Does this mean I can use it with RAID controllers that can automatically
add
hard drives without messing up the original data?

Many thanks,
--Tony

Note: if using an automatic reply, remove the "I-HATE-SPAM." from my
address

2. S3 Vision864 + MAG15DLS?

3. resizing "growable" partitions

4. remote setup

5. What is a growable partition? (RH 5.0)

6. bootfloppy problems: ... died with code ff00

7. Growable Filesystem

8. newbie: "No Data" error msg

9. 2.5.70-bk[56] breaks disk partitioning with multiple IDE disks

10. partition a unix disk with one partition

11. Post-Install Partition, Format and Mount of Unused Disk Space on 2nd Disk?

12. Using dd to copy disk partition corrupts complete target disk

13. Questions about RedHat and growable FS