I'm trying to chroot with the GParted LiveCD onto an existing 64-bit system, attempting to fix grub.

  • 2
    Does it necessarily need to be the GParted Live-CD? If not, you can use another one, like grml which is more powerful and has 64-bit version. – Renan Jul 25 '12 at 23:00
  • I'll try grml out, looks good. – Soyuz Jul 26 '12 at 3:25

A 32-bit GParted CD can resize partitions with 64-bit OS'es on them, no problem.

| improve this answer | |
  • 2
    yes, but a 32 bit kernel can't chroot into a 64-bit userland. – cas Jul 25 '12 at 22:46

I've never found one. I use clonezilla as a rescue CD (and network-boot image), and that DOES have a 64-bit version.

If you want 64-bit gparted live, you'll have to make your own, just replacing the kernel with a 64-bit kernel will be enough - it will be able to run the 32-bit userland on the gparted ISO.

BTW, when you do manage to chroot into your system you will need to bind-mount /dev, /sys, /proc (and optionally /dev/pts) into the chroot environment so that grub-install will have access to the info it needs to re-install into the MBR.

If your target system is mounted under /target, something like this will do the job:

for i in dev proc sys dev/pts ; do mount -o bind /$i /target/$i ; done

I have my netbootable clonezilla image configured to set that up as an alias called 'prepare-chroot-target' so I don't have to remember it :)

| improve this answer | |
  • Yup, I won't forget mounting the other parts! The thing is that I really like having gparted on a rescue disc too, along with gdisk and all the disc utilities. I guess I'll just try to make my own. – Soyuz Jul 26 '12 at 3:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.