SliTaz SliTaz Forum

You are not logged in.

#1 2022-04-10 07:45:56

manit123
Member
Registered: 2012-06-08
Posts: 36

booting slitaz from iso file using grub2

hi,

I am using

$ uname -a

Linux lxuser-Latitude-3580 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a

No LSB modules are available.

Distributor ID:    Ubuntu

Description:    Ubuntu 16.04.3 LTS

Release:    16.04

Codename:    xenial

$ grub-install --version

grub-install (GRUB) 2.02~beta2-36ubuntu3.12

I want to run slitaz fully from RAM by using its iso file and adding entry in grub2 menu .

Has anybody done that ?

If yes , can you provide details like custom_cfg_file and link to iso file.

Thanks.

BTW , I have tried http://mirror.slitaz.org/iso/stable/flavors/slitaz-4.0-core.iso but I get kernel too old. and in case of rolling version it hangs up.

Offline

#2 2022-04-10 09:04:58

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: booting slitaz from iso file using grub2

Hi,

A simple entry for the 4-in1 Rolling ISO:

menuentry "LiveISO" {
   loopback taziso (hd0,1)/boot/slitaz-rolling.iso
   linux (taziso)/boot/bzImage ro root=/dev/null kmap=fr-latin1 autologin
   initrd (taziso)/boot/rootfs4.gz (taziso)/boot/rootfs3.gz (taziso)/boot/rootfs2.gz (taziso)/boot/rootfs1.gz
}

Of course you can use the name you want instead "taziso"; and adapt (hd0,1) according at where is the ISO.

BTW, take care of the support where your ISO is stored. I meat some troubles with NTFS.

Offline

#3 2022-04-12 13:54:59

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

i will try and get back with result .

Thanks.

Offline

#4 2022-04-12 14:12:31

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

@Ceel

I did as you have mentioned .

I get a plain purple screen when I select the option 'LiveISO'

I am sure that my iso is in right partition (type ext4) and folder but cannot say what is going on as there are no prints on screen.

Is there a way to find out the cause of hangup ?

Thanks.

Offline

#5 2022-04-13 19:21:09

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: booting slitaz from iso file using grub2

Maybe the kernel does not recognize your graphic card. Try to boot in console only:

At the GRUB menu, select LiveISO but don't press [Enter], press [E]. Then edit the [c]initrd[/c] line; supress [c](taziso)/boot/rootfs3.gz (taziso)/boot/rootfs2.gz (taziso)/boot/rootfs1.gz[/c] and press [F10] to boot.

If it's OK, then boot X only: same as above but supress [c](taziso)/boot/rootfs2.gz (taziso)/boot/rootfs1.gz[/c].

By the way, in your [c]grub.cfg[/c] it would be better to suppress [c]autologin[/c] (and of course if you don't use a french keyboard [c]kmap=fr-latin1[/c] hmm )

Offline

#6 2022-04-17 14:34:07

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

i will remove autologin and all options in initrd except rootsfs4.gz

Then I will get back with results.

Thanks.

Offline

#7 2022-04-17 15:44:33

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

ok , now i am able to get shell.

please see attached log file.

Is there a way to get gui ?

Offline

#8 2022-04-17 20:07:24

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: booting slitaz from iso file using grub2

Hi, I don't know if it still works, but in that case it would boot from the grub with a "screen=text" (without quotes) then once logged in as root in text mode, it would give a "tazx" that would allow "install or reconfigure Xorg". Obviously only if you have internet available in the lan socket...

At the end to test the graphics was enough to give a "slim" or simply "startx"

Offline

#9 2022-04-19 09:04:30

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: booting slitaz from iso file using grub2

As suggested by gibor, you can run [c]tazx[/c] as root and [c]install or reconfigure Xorg[/c]; then select the intel driver

or from the prompt as root:

[c]tazpkg -gi xorg-xf86-video-intel[/c]

Then [c]startx[/c]. If it fails again, post the new Xorg.0.log.

Offline

#10 2022-04-19 15:02:38

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

ok

I will try that .

I also have another laptop . Its model is https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-edge-laptops/thinkpad-e470/20h1

On it , I find that I get hungup purple screen after selecting option in grub2 even when rootfs4.gz is only present . Should I start a new thread for that one ?

Offline

#11 2022-04-19 16:23:13

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

As suggested by gibor, you can run tazx as root and install or reconfigure Xorg; then select the intel driver

or from the prompt as root:

tazpkg -gi xorg-xf86-video-intel

Then startx. If it fails again, post the new Xorg.0.log.

lim

As root , I ran tazx and tried xorg , xorg-light , slim one by one but still no gui.

Then I ran tazpkg -gi xorg-xf86-video-intel but it says already installed.

Here is new failure log on trying startx .

Offline

#12 2022-04-19 20:40:39

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: booting slitaz from iso file using grub2

I found a topic on the Linux Mint forum about the Intel HD Graphics 620 (your graphic card); seems it needs at least a kernel 4.4 or later to work... sad

Concerning the Lenovo, after you selected LiveISO, you even don't see something like this

[c][Linux-bzImage, setup=0x3e00, size=0x3b3310]

[Linux-initrd @0xf5dc000, 0x903708 bytes][/c]

before to get a purple screen?

Offline

#13 2022-04-20 06:06:31

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

In Lenovo

I simply get purple screen after I select boot option . No messages appear .

Offline

#14 2022-04-20 07:28:49

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: booting slitaz from iso file using grub2

I guess the last hope is to add "nomodeset" to the grub...

Offline

#15 2022-04-20 15:31:25

manit123
Member
Registered: 2012-06-08
Posts: 36

Re: booting slitaz from iso file using grub2

gibor , in laptop where i get purple hungup screen - i will add nomodeset to linux line in grub options and see how that goes.

BTW ceel , i have attached new xorg-log for laptop in which i get text prompt.

Offline

#16 2022-04-20 20:47:02

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: booting slitaz from iso file using grub2

BTW ceel , i have attached new xorg-log for laptop in which i get text prompt.

Yes, I had a look at it; the intel module is now loaded. But the builtin module i915 before kernel 4.4 don't support the Intel HD Graphics 620.

I hope [c]nomodeset[/c] will help but it seems your system hangs when mounting the ISO; it does not load the kernel and the rootfs.

Although it is unlikely, please check again there is no error in the menuentry of grub.cfg. If it's correct and [c]nomodeset[/c] doesn't provide the solution, here is a test you can do:

[*]extract rootfs4.gz, rootfs3.gz, rootfs2.gz, rootfs1.gz and bzImage of the ISO

[*]copy the files in a directory, say [c]frugal[/c] (if Windows is installed on your computer, don't copy them on the same partition)

[*]create a new entry in grub.cfg

menuentry "SliTaz Rolling (frugal mode)" {
   set root=(hd0,2)
   linux /frugal/bzImage ro root=/dev/null
   initrd /frugal/rootfs4.gz /frugal/rootfs3.gz /frugal/rootfs2.gz /frugal/rootfs1.gz
}
Note: [c](hd0,2)[/c] suggests that the directory [c]frugal/[/c] is on the second partition of the first disk.

and see if the kernel and the rootfs are loaded and SliTaz boots (with or without GUI...)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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