[TriLUG] Claiming an unused partition

Jason Tower jason at cerient.net
Wed Sep 15 13:29:47 EDT 2004


oops, that's mkfs.ext3 (or mke2fs -j) /dev/sdaX, not sdbX.  don't want 
to overwrite an existing filesystem :-)

jason

On Wednesday 15 September 2004 13:27, Jason Tower wrote:
> just run fdisk /dev/sda and create a new partition, you can do this
> on a running system just fine.  then run mkfs.ext3 (or mke2fs -j)
> /dev/sdbX to make a filesystem on it.  create a mount point and mount
> it, make an entry in /etc/fstab if you want to make it permanent and
> you're all set, no rebooting required.
>
> jason
>
> On Wednesday 15 September 2004 13:20, Rick DeNatale wrote:
> > I've got two 9GB SCSI drives.  fdisk -l reports:
> >
> > Disk /dev/sda: 9100 MB, 9100369920 bytes
> > 255 heads, 63 sectors/track, 1106 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> >
> >    Device Boot    Start       End    Blocks   Id  System
> > /dev/sda1   *         1        13    104391   83  Linux
> > /dev/sda2            14        78    522112+  82  Linux swap
> >
> > Disk /dev/sdb: 9100 MB, 9100369920 bytes
> > 255 heads, 63 sectors/track, 1106 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> >
> >    Device Boot    Start       End    Blocks   Id  System
> > /dev/sdb1   *         1      1106   8883913+  83  Linux
> >
> > So I'm not using most of dev/sda, it only has two small partitions,
> > boot and swap
> >
> > What's the best way to create a new partition or partitions in the
> > unused space? Can I do this from a running system, or do I really
> > need to reboot from a floppy? What's the best tool to use?
> >
> > I've never repartitioned a linux system before, so I'm a little
> > skeered! I'm still running RH9 (I know, I know)



More information about the TriLUG mailing list