Author Topic: [SOLVED] installing sgd2 to usb key  (Read 16458 times)

Offline patel

  • Newbie
  • *
  • Posts: 6
[SOLVED] installing sgd2 to usb key
« on: 2011/03/08, 18:32:28 pm »
I don't like dd command, the key becomes unusable, I copied boot dir in the key, I installed grub in mbr. now I can boot from the key, I see the SGD2 grub menu, but Detect any OS does not run.
« Last Edit: 2011/12/29, 09:28:11 am by patel »

Offline patel

  • Newbie
  • *
  • Posts: 6
Re: installing sgd2 to usb key
« Reply #1 on: 2011/12/23, 18:48:51 pm »
This procedure makes the key usable
I suppose device is sdb
1) fat32 partition on the stick leaving 3 MB of unallocated space at the beginning
2) 
Code: [Select]
sudo dd if=/dev/sdb of=mbr2 bs=1 count=66 skip=446 # save partition table
3)
Code: [Select]
sudo dd if=isoname.iso of=/dev/sdb # install4)
Code: [Select]
sudo dd if=/dev/sdb of=mbr1 bs=446 count=1 # save bootloader 5)
Code: [Select]
cat mbr1 mbr2 > mbr # join mbr file6)
Code: [Select]
sudo dd if=mbr of=/dev/sdb # save mbr file on stick mbr
« Last Edit: 2011/12/24, 19:27:55 pm by patel »

Offline adrian15

  • Administrator
  • Hero Member
  • *****
  • Posts: 833
  • Please test Rescatux and report back feedback...
    • El blog de adrian15
Re: installing sgd2 to usb key
« Reply #2 on: 2011/12/25, 12:07:47 pm »
If you have liked this piece of advice please consider donating to the Super Grub Disk project.

Offline patel

  • Newbie
  • *
  • Posts: 6
Re: installing sgd2 to usb key
« Reply #3 on: 2011/12/25, 19:06:02 pm »
I'm sorry for my english
I can do a frugal install for Rescatux to usb key extracting the iso and adding the following entries to the menu.lst
Code: [Select]
title Rescatux
kernel /live/vmlinuz boot=live config
initrd /live/initrd.img
but if I try to do the same for sgd2 with
Code: [Select]
title Rescatux
configfile /boot/grub/main.cfg
it does not work
Can you explain me ?

Offline adrian15

  • Administrator
  • Hero Member
  • *****
  • Posts: 833
  • Please test Rescatux and report back feedback...
    • El blog de adrian15
Re: installing sgd2 to usb key
« Reply #4 on: 2011/12/25, 19:21:24 pm »
The main reason why it is failing is that you are using Grub legacy (0.9X) to build your menu.
And SG2D is based on grub2. configfile command from grub legacy cannot read a grub2 cfg file.

However grub2 (and thus SG2D) can be chainloaded from grub legacy.

Something like:

Code: [Select]
title SG2D (Chainload)
kernel /boot/grub/core.img
boot

should work.
If you have liked this piece of advice please consider donating to the Super Grub Disk project.

Offline patel

  • Newbie
  • *
  • Posts: 6
Re: installing sgd2 to usb key
« Reply #5 on: 2011/12/26, 08:00:13 am »
I can not find core.img in sgd2.iso

Offline adrian15

  • Administrator
  • Hero Member
  • *****
  • Posts: 833
  • Please test Rescatux and report back feedback...
    • El blog de adrian15
Re: installing sgd2 to usb key
« Reply #6 on: 2011/12/26, 11:51:18 am »
I can not find core.img in sgd2.iso

What about this?

Code: [Select]
title sg2d (chainloaded)
kernel /boot/grub/i386-pc/eltorito.img
boot

I'm not sure it is going to work but you can always try.
If you have liked this piece of advice please consider donating to the Super Grub Disk project.

Offline patel

  • Newbie
  • *
  • Posts: 6
Re: installing sgd2 to usb key
« Reply #7 on: 2011/12/26, 17:25:14 pm »
13 : Invalid or unsupported executable format
    This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).

do you know the gz format included in partedmagic? you made it? where I can find it for 1.99 ?
it' very easy to install gz format to usb key

edit:
solved, see http://forums.partedmagic.com/viewtopic.php?f=7&t=1937
« Last Edit: 2011/12/29, 09:27:39 am by patel »