LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Repartitioning the Hard Drive......... (https://www.linuxquestions.org/questions/linux-general-1/repartitioning-the-hard-drive-571546/)

bijit 07-23-2007 04:15 AM

Repartitioning the Hard Drive.........
 
Hi all,

I need a help on resizing partition on a Fedora4 system (Its a remote system only ssh access possible). Currently my partition looks like the following.......

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 989M 126M 813M 14% /
/dev/hda5 4.9G 440M 4.5G 9% /usr
/dev/hda6 4.9G 195M 4.7G 4% /var
/dev/hda7 100G 276K 100G 1% /home
none 1009M 0 1009M 0% /tmp


# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 128 1028128+ 83 Linux
/dev/hda2 129 383 2048287+ 82 Linux swap / Solaris
/dev/hda4 384 14593 114141825 5 Extended
/dev/hda5 384 1021 5124703+ 83 Linux
/dev/hda6 1022 1659 5124703+ 83 Linux
/dev/hda7 1660 14593 103892323+ 83 Linux


Now, what I want to do is delete the partitions on /usr, /var and /home. After deletion of all these partitions, allocate the free space to /. Thus, my new partition would have maximum space for / and around 1GB for /tmp. After that I would reinstall the OS.
But, the question is how do I accomplish this? From recue?? Even then how.... Please be noted when I reinstall the OS, I don't get the disk partitioning option..thus whatever I have to do regarding partitioning, it has to be done before reinstalling the OS.
Please let me know if anyone of you have answers to this.....

Regards,
Bijit

kilgoretrout 07-23-2007 05:51 AM

The only way I can think of doing that is running a livecd like knoppix on the remote system and ssh into that and do whatever you want to the partitions.

jay73 07-23-2007 10:34 AM

Well, If you intend to reinstall and you don't mind losing all of your stuff, you should be able to burn a Gparted liveCD to partition your drive. Then you'd start from scratch.


All times are GMT -5. The time now is 01:15 PM.