On Sunday 17 December 2006 16:05, [EMAIL PROTECTED] wrote: > When installing Debian a few months ago I made a mistake in creating the > swap. I intended to create a 2GB swap but I seem to have zilch. > > Device Boot Start End #cyls #blocks Id System > /dev/sda1 0+ 5 6- 48163+ de Dell Utility > /dev/sda2 * 6 2555 2550 20482875 7 HPFS/NTFS > /dev/sda3 2556 2556 1 8032+ 82 Linux swap / Solaris > /dev/sda4 2557 14592 12036 96679170 83 Linux > > I need to increase sda3 at the expense of sda4. I can backup to another > machine and use parted to resize but then grub will I presume not be able > to boot as it will be pointing at an incorrect place on the hard disk for > the kernel to boot. I have been googling for things like "repartition > replace running kernel" as I remember something like mounting the new disk, > swap to the old kernel, run grub to reinstall. There was I think some trick > to doing this. Does anyone have a link I can follow or help?
1) use any tools you're comfortable with to manipulate the partition size 2) reboot knoppix and mount /dev/sda4 /mnt in a root window 3) grub-install --root-directory=/mnt /dev/sda Reboot and away. You may need to --recheck if you have problems You may do the exercise with any live CD as appropriate. James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
