WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Boot tinycore iso with grub2  (Read 16488 times)

Offline scottcressi

  • Newbie
  • *
  • Posts: 5
Boot tinycore iso with grub2
« on: June 18, 2012, 11:38:37 PM »
Is the tc4 iso bootable from grub2?

tc2/3 were bootable but it seems something changed with the contents of the iso, boot entry used to look like this:

menuentry "tc" {
 loopback loop /boot/iso/tc2.3.1.iso
 linux (loop)/boot/bzImage --
 initrd (loop)/boot/tinycore.gz
}

Anything special that needs to be done to boot tc4?
« Last Edit: June 18, 2012, 11:40:34 PM by scottcressi »

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Boot tinycore iso with grub2
« Reply #1 on: June 19, 2012, 05:17:05 AM »
HI: Does this setup work for you? Did you try to make it work?
As far as I know "bzImage" from TCL 3.XX changed to "vmlinuz in TCL 4.XX but there are more
differences in going from grub legacy to grub2
Please check our wiki and google. Otherwise please ask me more detailed questions.
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Boot tinycore iso with grub2
« Reply #2 on: June 19, 2012, 05:38:02 AM »
You need to use the iso bootcode to find the cde extensions if you boot that way.

(why do people keep trying this? It's an unnecessary layer, emulation, and doesn't even work well half the time... Just install your distros people ;))
The only barriers that can stop you are the ones you create yourself.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Boot tinycore iso with grub2
« Reply #3 on: June 19, 2012, 12:01:12 PM »
some people use multi boot environments and for that they want grub1 or grub2.
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Boot tinycore iso with grub2
« Reply #4 on: June 19, 2012, 12:53:03 PM »
Hi beerstein
Yes, but you don't need to boot ISOs to create a multi boot environment, that's what partitions are for.

Offline scottcressi

  • Newbie
  • *
  • Posts: 5
Re: Boot tinycore iso with grub2
« Reply #5 on: June 19, 2012, 07:24:50 PM »
HI: Does this setup work for you? Did you try to make it work?
As far as I know "bzImage" from TCL 3.XX changed to "vmlinuz in TCL 4.XX but there are more
differences in going from grub legacy to grub2
Please check our wiki and google. Otherwise please ask me more detailed questions.

Changing it from bzimage to vmlinuz and adding in he core.gz line worked!  It now boots, but there still seems to be a problem.  I can't boot to a GUI, I just go straight to the console.  I'm still checking around in the forums and googling but have found no simple answer yet.

Offline scottcressi

  • Newbie
  • *
  • Posts: 5
Re: Boot tinycore iso with grub2
« Reply #6 on: June 19, 2012, 07:59:42 PM »
HI: Does this setup work for you? Did you try to make it work?
As far as I know "bzImage" from TCL 3.XX changed to "vmlinuz in TCL 4.XX but there are more
differences in going from grub legacy to grub2
Please check our wiki and google. Otherwise please ask me more detailed questions.

Changing it from bzimage to vmlinuz and adding in he core.gz line worked!  It now boots, but there still seems to be a problem.  I can't boot to a GUI, I just go straight to the console.  I'm still checking around in the forums and googling but have found no simple answer yet.

I figured it out, the cde directory needed to be in "/" of the USB and specified in the boot options as "cde"

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Boot tinycore iso with grub2
« Reply #7 on: June 19, 2012, 09:02:53 PM »
No! rename it tce.

Offline scottcressi

  • Newbie
  • *
  • Posts: 5
Re: Boot tinycore iso with grub2
« Reply #8 on: June 19, 2012, 10:06:39 PM »
No! rename it tce.

renaming it to tce drops it back to console on boot, even if i change "cde" to "tce" in the boot options.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Boot tinycore iso with grub2
« Reply #9 on: June 19, 2012, 11:48:27 PM »
You need the waitusb=5 boot option.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Boot tinycore iso with grub2
« Reply #10 on: June 20, 2012, 06:05:24 AM »
Hi scottcressi: Let me know when this thing is working and how you fixed it. Thank you -
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: Boot tinycore iso with grub2
« Reply #11 on: June 21, 2012, 07:11:24 AM »
Is the tc4 iso bootable from grub2?
GRUB* can _not_ boot ISOs.  Don't confuse reading files from an ISO9660 file system image with booting from it.  It can't boot arbitrary ISOs but can boot using files from some ISOs some files from ISOs, presuming it understands how to suitably boot them.
« Last Edit: June 24, 2012, 07:22:09 AM by genec »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Boot tinycore iso with grub2
« Reply #12 on: June 21, 2012, 06:32:21 PM »
I find this interesting..    Grub2 is a boot loader, it has the ability to read/access ISO's using it's iso9660.mod driver.   it has the capability to of finding an ISO using the findiso command then loop mount the kernel.

I never realized until today that using a loopback config file restores boot menu options seen when booting the cd normally

Offline SNAFU

  • Newbie
  • *
  • Posts: 1
Re: Boot tinycore iso with grub2
« Reply #13 on: September 05, 2012, 07:24:34 AM »
you definitly can boot an iso file from grub2, not grub (1.xx)

daily ubuntu makes reside on my laptop and work

Offline beroje

  • Full Member
  • ***
  • Posts: 130
Re: Boot tinycore iso with grub2
« Reply #14 on: September 05, 2012, 08:15:28 AM »

menuentry "Tinycore" {
set root='(/dev/sda,msdos6)'
linux (hd0,msdos6)/tinycore/boot/vmlinuz quiet waitusb=5 blacklist=pcspkr nozswap nodhcp tce=sda6/tinycore/tce
initrd (hd0,msdos6)/tinycore/boot/core.gz
}

menuentry "xPud" {
set root='(/dev/sda,msdos6)'
loopback loop (hd0,msdos6)/Xpud/xpud-0.9.2.iso
linux (loop)/boot/xpud isofrom=/Xpud/xpud-0.9.2.iso noisapnp
initrd (loop)/opt/media
}