SliTaz SliTaz Forum

You are not logged in.

#1 2012-12-08 13:38:30

jjk
Member
Registered: 2012-09-22
Posts: 82

boot slitaz live-cd iso-file from hard disk using grub2

hello,

i've been trying for some time to boot slitaz live-cd iso from my harddisk using grub2

i got grub2 succesfully installed (at least i think so), it boots my default slitaz install completely fine.

i saved my slitaz-4.0.iso file in /boot/isos

i tried to add a menu entry to /boot/grub/grub.cfg to boot it it looks like this:

menuentry "linux live iso" {

    loopback loop /boot/isos/slitaz-4.0.iso

    linux (loop)/boot/vmlinuz-2.6.37-slitaz iso-scan/filename=/boot/iso/slitaz-4.0.iso boot=live quiet noeject noprompt

    initrd (loop)/boot/rootfs1.gz

}

but when i boot it it returns an error like couldnt create root on unknown block or something (cant recall the exact error, please tell me if you know a file in which its saved or something)

the iso had 4 rootfs.gz files (named rootfs1.gz rootfs2.gz etc.)

what should the menu entry be, or should i do some other things.

note that i would like it to run like a live cd, completely in ram and no changes saved.

for the ones wondering why i would like this:

im trying to make some changes to the original distro and save it to a new iso file so i have my own customised slitaz live cd.

any help is much appreciated

JJK

Offline

#2 2012-12-08 13:46:13

kitty____
Member
Registered: 2012-12-06
Posts: 36

Re: boot slitaz live-cd iso-file from hard disk using grub2

maybe, try to slitaz-4.0-CORE.iso, - it have only 1 rootfs.gz; (many people can not boot with rootfs, created from several rootfs.gz - in slitaz-4.0.iso several; and I can not)

maybe, try something similar to "rootnoverify" (but when i boot it it returns an error like couldnt create root on unknown block or something (cant recall the exact error, please tell me if you know a file in which its saved or something)) - just make photo from you cell phone, if you need to paste screenshot, or, install and try qemu)

maybe, no loop, no "split" iso, map iso to memory and boot from iso as from cd?

i am sorry. i use only grub4dos and nothing know about grub2 ;(

Offline

#3 2012-12-08 14:15:14

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: boot slitaz live-cd iso-file from hard disk using grub2

Ill try the slitaz core version as you said, i couldnt realy follow the rest of your post. Keep in mind im still a beginner in linux

Btw if you know how to do it in grub ( not grub2) and grub4dos please tell me, it should be no problem to downgrade. I was told grub2 was easier

Offline

#4 2012-12-08 14:26:49

kitty____
Member
Registered: 2012-12-06
Posts: 36

Re: boot slitaz live-cd iso-file from hard disk using grub2

http://forum.slitaz.org/topic/install-slitaz-on-acer-travelmate-202t-running-windows-xp#post-19322

read this wink

if you need, I now writing how-to in pictures; it will be very simple) you under windows now, isn't it?

Offline

#5 2012-12-08 14:55:21

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: boot slitaz live-cd iso-file from hard disk using grub2

Im not on windows im on slitaz

and i cant find the so called 'core version' anywhere

Offline

#6 2012-12-08 15:43:03

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: boot slitaz live-cd iso-file from hard disk using grub2

2jjk:

http://mirror.slitaz.org/iso/4.0/flavors/slitaz-4.0-core.iso (34.4M)

http://mirror.slitaz.org/iso/4.0/flavors/slitaz-4.0-core.md5

You can find more useful stuff @ http://mirror.slitaz.org/ ☺

Offline

#7 2012-12-08 15:53:21

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: boot slitaz live-cd iso-file from hard disk using grub2

thx ill try it now

can you see anything wrong with my code?

edit: core version has also 4 rootfs.gz files

Offline

#8 2012-12-08 16:15:26

jjk
Member
Registered: 2012-09-22
Posts: 82

Re: boot slitaz live-cd iso-file from hard disk using grub2

i probably had the wrong one, i tried it again with the core version, works now smile thx guys

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]