Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question
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
add comment

2 Answers 2

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 :)

share|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
add comment

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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