How to reallocate disk space between partitions?

beagle197_at_hotmail.com
Date: 07/29/05


Date: 29 Jul 2005 14:13:12 -0700

Greetings Fellow Linux OS/Debian Mavins,

I allocated 48.2 GB (/dev/hda6) of a 60 GB hd to be mounted under
/home. There should be max 4 GB dedicated to /home, but 50.6 GB mounted
under root, instead of the currently configured 6.4 GB. Is there a way
to reallocate the drive space without reinstalling? Perhaps 'parted'
would do it for me.

What I wanted to do was create a small boot partition in case the boot
failed, but still could recover other data partitions. However, it
seems more useful for me to mount more space under /usr/local/src,
since I'm building and playing around with source code. I will also
need to create some large database apps and not certain which directory
and partition to place them into, but they will grow up to 50 GBs
quickly. I was considering /usr/local again. Any recommendations here?
Thanks,
BEA

frag:/home/bea# uname -a
Linux frag 2.6.8-2-686 #1 Mon Jan 24 03:58:38 EST 2005 i686 GNU/Linux
frag:/home/bea# cat /etc/debian_version
3.1
frag:/home/bea# df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 6728280 2373144 4013356 38% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
tmpfs 75664 0 75664 0% /dev/shm
/dev/hda6 50513396 96616 47850800 1% /home
/dev 6728280 2373144 4013356 38% /.dev
none 5120 708 4412 14% /dev
frag:/home/bea# fdisk /dev/hda

The number of cylinders for this disk is set to 7297.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/hda1 * 1 851 6835626 83 Linux
/dev/hda2 852 7297 51777495 5 Extended
/dev/hda5 852 908 457821 82 Linux swap
/dev/hda6 909 7297 51319611 83 Linux



Relevant Pages

  • RE: RE grub-install command
    ... Try boot specifying the hdd in the boot selector ... I m able to view my boot partition in fdisk.. ... Subject: RE grub-install command ...
    (RedHat)
  • Re: Parition Table problem.
    ... > I> None of the 3 different operating systems will boot. ... > how partition tables work so you should be OK as long as you keep a clear ... considered faulty by fdisk - I fixed that by deleting it. ... reinstalling operating systems is a lot of work regardless. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: FDISK FOOL
    ... After I ran the dreaded fdisk thingy, ... That's because there is no partition after running FDISK, ... Normally this is done from the XP boot disk, ... and Win9x boot diskettes cannot read NTFS-formatted partitions. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: xpp home wont boot from HD
    ... there was a small partition in front. ... Anyway, if such a partition exists, then fixing the MBR might simply make it the boot partition. ... Thus, try running FDISK to see what partitions you have, and maybe that will lead to some insight. ... See the following for bootable floppy images, include a special FDISK for disks> 64 Gig. ...
    (microsoft.public.windowsxp.basics)
  • Re: xpp home wont boot from HD
    ... but any chance there is a small hidden partition before the ... you want the XP partition to be the boot partiton. ... Thus, try running FDISK to see what partitions you have, and maybe that will ... I tried booting with my XP pro cd into the recovery consol but it wants ...
    (microsoft.public.windowsxp.basics)