[ale] Oops - Want to rearrange two partitions
John Mills
johnmills at speakeasy.net
Thu Oct 19 14:24:31 EDT 2006
Danny -
None of the partitions on the system is anything like full, so I can
easily back stuff up and move it around.
Thanks for the detail. I'll go get my asbestos gloves and welding mask.
- Mills
On Thu, 19 Oct 2006, Danny Cox wrote:
> On Thu, 2006-10-19 at 12:46 -0500, John Mills wrote:
> <snip>
> > How might I resize partitions to move an extra GB from into /var without
> > trashing my installation, else move it and recover its space?
> <snip>
> If you have room to copy the contents, either in /opt or over the
> network, or even onto a DVD, you're in luck.
>
> Reboot, and at the GRUB prompt, enter "linux single" (without the
> quotes). This will bring you up on the console in single user mode, and
> all local disks mounted.
>
> Make a copy of /home and /var somewhere.
>
> Unmount /home and /var.
>
> Fiddle with the partitions using fdisk, sfdisk, or your favorite tool
> to get hdb7 and hdb8 to the sizes you want.
>
> You may need to reboot here. Fdisk tries very hard to inform the
> kernel of new partitions, but sometimes, it fails. Remember to boot
> into single user mode.
>
> Create your preferred filesystem on hdb7 and hdb8.
>
> If you change the filesystem type, edit /etc/fstab to reflect the
> change.
>
> Remount them, and copy them back.
>
> Stand well back, and it should come up fine.
More information about the Ale
mailing list