HOWTO: HDD partition with GRUB2, PartedMagic and Clonezilla

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

HOWTO: HDD partition with GRUB2, PartedMagic and Clonezilla

Postby donnie » Fri Apr 23, 2010 20:54

4 steps.

You will need GRUB2 installed (equo install grub), a separate partition (here: /dev/sda1), .zip file of PartedMagic (USB version, here: pmagic-usb-4.10.zip), .zip file of Clonezilla (stable 486 version recommended, here: clonezilla-live-1.2.4-28-486.zip).

You will get a separate boot partition, with ext3 file system compatible with Windows operation systems, from which you can boot to GRUB2 (for sure!), to PartedMagic running from RAM (if some partitioning is needed), or to Clonezilla running from RAM (to make backup/restore).

0. Prepare partition
Code: Select all
$ su
# mkdir /media/sda1
# mkfs.ext3 -I 128 /dev/sda1
# mount /dev/sda1 /media/sda1

1. Unzip PartedMagic and Clonezilla

Unzip PartedMagic to /media/sda1/tmp1. Find directory called "pmagic", containing files bzImage and initramfs, move it to /media/sda1.

Unzip Clonezilla to /media/sda1/tmp2. Find directory called "live", move it to /media/sda1.
Code: Select all
# mv /media/sda1/live /media/sda1/live-hd
# rm -rf /media/sda1/tmp*

2. Add PartedMagic and Clonezilla to bootloader
Code: Select all
# vim /etc/grub.d/40_custom

Code: Select all
menuentry "PartedMagic" {
set root=(hd0,1)
linux /pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791
loglevel=0 max_loop=256 keymap=us
initrd /pmagic/initramfs
}
menuentry "Clonezilla" {
set root=(hd0,1)
linux /live-hd/vmlinuz boot=live union=aufs vga=788 ip=frommedia
live-media-path=/live-hd bootfrom=/dev/hda1 toram=filesystem.squashfs
initrd /live-hd/initrd.img
}

3. Install bootloader
Code: Select all
# grub2-install --root-directory=/media/sda1 /dev/sda
# grub-mkconfig -o /media/sda1/boot/grub/grub.cfg

4. Test changes using QEMU
Code: Select all
# sync ; echo 3 > /proc/sys/vm/drop_caches ; qemu -hda /dev/sda

If QEMU does not work as needed, remove it and then emerge:
Code: Select all
# equo remove qemu --nodeps
# emerge qemu
Last edited by donnie on Mon Apr 26, 2010 1:01, edited 2 times in total.
donnie
 

Re: HOWTO: HDD partition with GRUB2, PartedMagic and Clonezi

Postby mikey0000 » Sat Apr 24, 2010 4:11

Umm I think you should move this to the wiki

cheers
triple Booting Mac-osx 10.6, Sabayon Linux and Windows 7

2.5 athlon dual core
DFI infinity mobo
2 gb of DDR2 800 G skill ram 3.3.3.12
nvidia 9600gt
housed in a thermaltake taser III case with 7 fans - all turned off lol
mikey0000
Growing Hen
 
Posts: 159
Joined: Fri Aug 10, 2007 0:33
Location: Dunedin New Zealand

Re: HOWTO: HDD partition with GRUB2, PartedMagic and Clonezi

Postby donnie » Sat Apr 24, 2010 12:27

Have no time to look how to do it, for now. There will be one more HOWTO that can go to wiki, and two more HOWTO what can you do to Sabayon, but they will hardly go to wiki, because of license :roll:
4 steps.
donnie
 

Re: HOWTO: HDD partition with GRUB2, PartedMagic and Clonezi

Postby LewRockwellFAN » Mon Apr 26, 2010 18:29

/me applauds, whistles, and cheers.

THANK YOU. This is truly cool.
LewRockwellFAN
Young Hen
 
Posts: 33
Joined: Sat Dec 05, 2009 16:25

Re: HOWTO: HDD partition with GRUB2, PartedMagic and Clonezi

Postby wolfden » Tue Apr 27, 2010 5:20

All howto articles must go to wiki, that is what it is for
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: HOWTO: HDD partition with GRUB2, PartedMagic and Clonezi

Postby ihanna » Wed May 30, 2012 15:27

donnie wrote:4 steps.

You will need GRUB2 installed (equo install grub), a separate partition (here: /dev/sda1), .zip file of PartedMagic (USB version, here: pmagic-usb-4.10.zip), .zip file of Clonezilla (stable 486 version recommended, here: clonezilla-live-1.2.4-28-486.zip).

You will get a separate boot partition, with ext3 file system compatible with Windows operation systems, from which you can boot to GRUB2 (for sure!), to PartedMagic running from RAM (if some partitioning is needed), or to Clonezilla running from RAM (to make backup/restore).

0. Prepare partition
Code: Select all
$ su
# mkdir /media/sda1
# mkfs.ext3 -I 128 /dev/sda1
# mount /dev/sda1 /media/sda1

1. Unzip PartedMagic and Clonezilla

Unzip PartedMagic to /media/sda1/tmp1. Find directory called "pmagic", containing files bzImage and initramfs, move it to /media/sda1.

Unzip Clonezilla to /media/sda1/tmp2. Find directory called "live", move it to /media/sda1.
Code: Select all
# mv /media/sda1/live /media/sda1/live-hd
# rm -rf /media/sda1/tmp*

2. Add PartedMagic and Clonezilla to bootloader
Code: Select all
# vim /etc/grub.d/40_custom

Code: Select all
menuentry "PartedMagic" {
set root=(hd0,1)
linux /pmagic/bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791
loglevel=0 max_loop=256 keymap=us
initrd /pmagic/initramfs
}
menuentry "Clonezilla" {
set root=(hd0,1)
linux /live-hd/vmlinuz boot=live union=aufs vga=788 ip=frommedia
live-media-path=/live-hd bootfrom=/dev/hda1 toram=filesystem.squashfs
initrd /live-hd/initrd.img
}

3. Install bootloader
Code: Select all
# grub2-install --root-directory=/media/sda1 /dev/sda
# grub-mkconfig -o /media/sda1/boot/grub/grub.cfg

4. Test changes using QEMU
Code: Select all
# sync ; echo 3 > /proc/sys/vm/drop_caches ; qemu -hda /dev/sda

If QEMU does not work as needed, remove it and then emerge:
Code: Select all
# equo remove qemu --nodeps
# emerge qemu



Good day!

I've tried this but can't seem to work it out :(. I've also asked my cousins who has currently studying and has knowledge on this part but it can't seem to work. :( Can you help me? Thanks in advance.
Image
ihanna
Baby Hen
 
Posts: 1
Joined: Wed May 30, 2012 15:20

Re: HOWTO: HDD partition with GRUB2, PartedMagic and Clonezi

Postby Jomiel » Thu May 31, 2012 0:42

Hi there,
that guide is pretty old and may be outdated. But if you need partedmagic and clonezilla, you could just use an usb-stick
Is there any particular thing that doesn't work? Or mind tell us why do you want to follow the guide the first place?

cheers
Jomiel
Jomiel
Growing Hen
 
Posts: 131
Joined: Tue Jan 17, 2012 21:14


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest