Jump to content











Photo
- - - - -

Gparted in grub4dos


  • Please log in to reply
16 replies to this topic

#1 joltron

joltron

    Newbie

  • Members
  • 16 posts
  •  
    United States

Posted 31 May 2011 - 07:05 PM

Hello all,

I currently want to add Gparted to my multi boot usb. I have many other items working on it kubutu, TRK, acronis, FreeDOS, Knoppix... etc. But I can't seem to get Gparted working. I searched the known working thread and didn't notice anything about Gparted, only Parted magic. Is there any reason for this?

Anyways I have tried quite a few different menu items boot none of them have worked for me.
I have tried booting via an ISO in the root of the USB stick and also via a folder with all the files extracted to it.

Here are 3 of my attempts:

title Gparted Gnome Partition Editor (version 0.4.5-2) 

find --set-root /gparted/live/vmlinuz1 

kernel /gparted/live/vmlinuz1 boot=live  username=casper   noswap vga=788 toram ip=frommedia 

initrd /gparted/live/initrd1.img





title GParted live

root (hd0,0)

kernel /gparted/live/vmlinuz1 boot=live config union=aufs noswap noprompt vga=788 ip=frommedia live-media-path=/live-hd bootfrom=/dev/hda4 toram=filesystem.squashfs

initrd /gparted/live/initrd1.img

#boot



#Boot to gparted

title gparted

map (hd0,0)/gparted.iso (hd32)

map --hook

chainloader (hd32)


I get a "BOOT FAILED! This Debian Live image failed to boot."
Error message "Unable to find a medium containing a live file system"


Iso = gparted-live-0.8.1-3.iso

File structure for folder:
/gparted
/isolinux
/live
/syslinux
/utils
COPYING
GParted-Live_Version


Does anyone know if there is a working configuraiton for gparted. Or who I can go about trouble shooting this to get it working.
Thanks for any help or advice.
-JOLTRON

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14596 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 31 May 2011 - 07:19 PM

The "reason" is explained here:
http://reboot.pro/8944/

Gparted might (or might not) have a specific "cheat code" to add to the entries in menu.lst or it may need some change in initrd.

Since Sardu (and possibly Xboot) seemingly support it, there should be a way.

Different version may give different results, though.

Try getting Sardu and build a stick just with it and see how it boots gparted:
http://reboot.pro/forum/100/

If it is possible with Syslinux/Memdisk/Isolinux, it is possible to either "translate" their .cfg to a menu.lst entry or chainload the actual Syslinux/etc.

:)
Wonko

#3 steve6375

steve6375

    Platinum Member

  • Developer
  • 6881 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 31 May 2011 - 09:26 PM

Using 0.8.1-3 either just the /live folder from the ZIP file or the ISO file
Tested on real system and under QEMU.

note: docs say to use live-media=iso=/gparted.iso but this did not work, when i removed this bit the iso booted.

title GParted Live
find --set-root --ignore-floppies /live/vmlinuz
kernel /live/vmlinuz boot=live config noswap noprompt ip=frommedia nosplash
initrd /live/initrd.img

title GParted Live TORAM
find --set-root --ignore-floppies /live/vmlinuz
kernel /live/vmlinuz boot=live config noswap noprompt toram=filesystem.squashfs ip=frommedia nosplash
initrd /live/initrd.img

title GParted Live without framebuffer
find --set-root --ignore-floppies /live/vmlinuz
kernel /live/vmlinuz boot=live config noswap noprompt ip=frommedia nomodeset vga=normal nosplash
initrd /live/initrd.img

title GParted Live failsafe
find --set-root --ignore-floppies /live/vmlinuz
kernel /live/vmlinuz boot=live config noswap noprompt acpi=off irqpoll noapic noapm nodma nomce nolapic nosmp ip=frommedia nomodeset vga=normal nosplash
initrd /live/initrd.img

title gparted iso TORAM
find --set-root --ignore-floppies /gparted.iso
map --heads=0 --sectors-per-track=0 /gparted.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /gparted.iso (0xff)
map --hook
root (0xff)
kernel /live/vmlinuz boot=live config noswap noprompt ip=frommedia toram=filesystem.squashfs
initrd /live/initrd.img





[Edit] Working ISO using ilko findiso suggestion...




title GParted live from ISO

ls /iso || find --set-root /iso

map /iso/gparted-live-0.8.1-3.iso (0xff) || map --mem /iso/gparted-live-0.8.1-3.iso (0xff)

map --hook

root (0xff)

kernel /live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia findiso=/iso/gparted-live-0.8.1-3.iso toram=filesystem.squashfs

initrd /live/initrd.img



#4 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 31 May 2011 - 09:41 PM

Extract gparted-live-0.8.1-3.iso to USB_root\gparted\.

menu.lst:
title GParted live

ls /gparted || find --set-root /gparted

kernel /gparted/live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia live-media-path=/gparted/live toram=filesystem.squashfs

initrd /gparted/live/initrd.img
Note: live-media-path=/gparted/live. You were close, just wrong path.

Alternatively, copy gparted-live-0.8.1-3.iso to USB_root\gparted\

menu.lst:
title GParted live from ISO

ls /gparted || find --set-root /gparted

map /gparted/gparted-live-0.8.1-3.iso (0xff) || map --mem /gparted/gparted-live-0.8.1-3.iso (0xff)

map --hook

root (0xff)

kernel /live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia findiso=/gparted/gparted-live-0.8.1-3.iso toram=filesystem.squashfs

initrd /live/initrd.img

Note: findiso=/gparted/gparted-live-0.8.1-3.iso

Added: Check \syslinux\syslinux.cfg for other kernel parameters if you need failsafe mode etc.
  • luckyluckbka likes this

#5 steve6375

steve6375

    Platinum Member

  • Developer
  • 6881 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 31 May 2011 - 10:00 PM

Hi ilko - did you try without the findiso parameter - it seems to work fine without it (it shouldn't - but it does!).

#6 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 31 May 2011 - 10:06 PM

It did not work if the ISO file was in a folder, at least not in QEMU.
My guess is that it searches in root for ISO files without that parameter. Debian 4 installer had similar functionality, but it may get confused if there are several ISO files in root.

There is also another parameter- fromiso or isofrom, but it seems to expect full path to the ISO, including device, not quite convenient.

#7 steve6375

steve6375

    Platinum Member

  • Developer
  • 6881 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 31 May 2011 - 10:09 PM

I put my iso in the /iso folder of the USB hard disk (I haven't tried a flash drive) and this still worked in QEMU and on real system...Posted Image

#8 ilko

ilko

    Silver Member

  • Advanced user
  • 500 posts
  •  
    Bulgaria

Posted 31 May 2011 - 10:13 PM

Did you get rid of or rename LIVE directory while testing ISO boot?

#9 steve6375

steve6375

    Platinum Member

  • Developer
  • 6881 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 31 May 2011 - 10:17 PM

I just thought of that too! No, I didn't and guess what, it doesn't boot now! Of course! Duh!

#10 steve6375

steve6375

    Platinum Member

  • Developer
  • 6881 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 31 May 2011 - 10:29 PM

findiso works Posted Image At first it didn't but the /iso folder was actually named /ISO and the path is case sensitive! Works now I changed the folder name to lower-case to match the path - thanks!

#11 joltron

joltron

    Newbie

  • Members
  • 16 posts
  •  
    United States

Posted 01 June 2011 - 02:57 AM

Thanks everyone, I ended up going with ilko's solution and it is working great.


Extract gparted-live-0.8.1-3.iso to USB_root\gparted\.

menu.lst:
title GParted live
ls /gparted || find --set-root /gparted
kernel /gparted/live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia live-media-path=/gparted/live toram=filesystem.squashfs
initrd /gparted/live/initrd.img


  • Rui Miguel Silva likes this

#12 joltron

joltron

    Newbie

  • Members
  • 16 posts
  •  
    United States

Posted 01 June 2011 - 11:20 AM

So here is another newb question.
How do you know what options/cheats to put after the kernel?
Do you just gather information from the isolinux.cfg?

#13 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 14596 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 June 2011 - 01:05 PM

So here is another newb question.
How do you know what options/cheats to put after the kernel?
Do you just gather information from the isolinux.cfg?


The otherwise very nice Linux guys :dubbio: have a quirk for continuosly changing these, and failing to document the changes in an easily findable place.

Normally yes, you get them from the parameters in the .cfg (if based on Syslinux/etc. or GRUB2) or from the .lst (if based on GRUB) in the original distro, but more often you need to search on the distro forum and/or find cheatcodes used by similar (based on the same core) distro's. (like all Ubuntu things use a given set, all Debian based another, etc., but single developers of separate builds, like the gparted at hand or the Parted Magic one may introduce different features or remove existing ones)

In some cases the info is actually inside the distro, but since you cannot boot it, it is difficult to access it.

:cheers:
Wonko

#14 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 01 June 2011 - 04:41 PM

The otherwise very nice Linux guys :dubbio: have a quirk for continuosly changing these, and failing to document the changes in an easily findable place.

Just to add - these switches are just a way to pass in parameters to all the code that the system is running! So, each and every system has to worry about the things that are more related to t he actual linux kernel as well as all the system specific thing that they might add to tell the system as it boots what it should do...

#15 luckyluckbka

luckyluckbka
  • Members
  • 2 posts
  •  
    Vietnam

Posted 19 February 2012 - 12:52 AM

you can try this option:

title gparted live
find --set-root /gparted-live-0.11.0-10.iso
map /gparted-live-0.11.0-10.iso (0xff)
map --hook
root (0xff)
kernel /live/vmlinuz initrd=/live/initrd.img boot=live config union=aufs noswap noprompt vga=788 ip=frommedia live-media-path=/live toram=filesystem.squashfs

Edited by luckyluckbka, 19 February 2012 - 12:54 AM.


#16 steve6375

steve6375

    Platinum Member

  • Developer
  • 6881 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 19 February 2012 - 12:38 PM

This works

title gparted 11.0 live

find --set-root /gparted-live-0.11.0-10.iso

map /gparted-live-0.11.0-10.iso (0xff) || map --mem /gparted-live-0.11.0-10.iso (0xff)

map --hook

root (0xff)

kernel /live/vmlinuz  boot=live config union=aufs noswap noprompt vga=788 ip=frommedia findiso=/gparted-live-0.11.0-10.iso toram=filesystem.squashfs

initrd /live/initrd.img

  • dencorso and luckyluckbka like this

#17 dencorso

dencorso

    Frequent Member

  • Advanced user
  • 141 posts
  •  
    Brazil

Posted 18 February 2014 - 05:58 PM

This works


Thanks!   :thumbup:

 

That works great for the newer gparted-live-0.17.0-4-i686-pae.iso too!

 

You all rock!  :worship:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users