SliTaz SliTaz Forum

You are not logged in.

#1 2012-10-07 03:27:36

Fail2
Member
Registered: 2012-10-07
Posts: 11

Install on Harddisk -- Kernel Panic

Hello,

I'm new here & to SliTaz Linux. smile

I'm trying to install SliTaz on the harddisk. I downloaded the file slitaz-4.0.iso & tried to install on harddisk following this guide: http://doc.slitaz.org/en:handbook:installation

However, there's only one "rootfs.gz" in the guide but there are 4 "rootfs.gz" type files in the CD.

So I was confused & the differences I made during installation are these:

####################################

lzma d rootfs1.gz -so | cpio -id

lzma d rootfs2.gz -so | cpio -id

lzma d rootfs3.gz -so | cpio -id

lzma d rootfs4.gz -so | cpio -id

......

rm rootfs* init

####################################

After reboot, the boot process stops at a "kernel panic" message sad (I'm trying to upload a pic of it)

These are the contents of the partition where I attempted the installation:

#####################################################################

$ls

boot  lost+found

$ ls boot/

bin  etc   home  media  proc  run   sys  usr  vmlinuz-2.6.37-slitaz

dev  grub  lib   mnt    root  sbin  tmp  var

#####################################################################

How to solve this problem?

Thanks.

[attachment=16959,688]

Offline

#2 2012-10-07 05:38:21

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Install on Harddisk -- Kernel Panic

Make the boot directory,copy the kernel:

[c]# mkdir /mnt/target/boot[/c]

[c]# cp -a /media/cdrom/boot/vmlinuz-* /mnt/target/boot[/c]

Copy the 4 rootfs.gz

[c]# cp /media/cdrom/boot/rootfs*.gz /mnt/target[/c]

Change into the directory with the rootfs*.gz

[c]# cd /mnt/target[/c]

Combine the 4 rootfs.gz into 1 rootfs.gz

[c]# cat $(ls -r rootfs*.gz) > rootfs.gz[/c]

Extract the file tree from rootfs.gz

[c]# lzma d rootfs.gz -so | cpio -id[/c]

Remove init and the rootfs*.gz

# rm init rootfs*.gz

Offline

#3 2012-10-07 15:39:32

Fail2
Member
Registered: 2012-10-07
Posts: 11

Re: Install on Harddisk -- Kernel Panic

Hi,

Thanks for you reply & explaining installation steps. I did those after formating the drive.

Now, stuck at installing grub.

--------------------------------------------------------------------------------

root@slitaz: /mnt/target # grub-install --root-directory=/mnt/target /dev/hdd12

Could not find device for /mnt/target/boot: Not found or not a block device.

--------------------------------------------------------------------------------

I think I'm using the same command I tried first time, which worked. This time it's not working.

Note, I need to "chainload" this with other Linux.

What to do now?

Thanks.

Offline

#4 2012-10-07 16:01:20

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Install on Harddisk -- Kernel Panic

Grub is installed to Master Boot Record of drive,not the partition.

Reference: http://doc.slitaz.org/en:handbook:installation => GRUB Boot-Loader

Otherwise, to install GRUB onto the MBR (Master Boot Record) using a root directory of /mnt/target (the target mounted partition) and the disk named hdd, use the following command and note the lack of a partition number:

[c]root@slitaz: /mnt/target # grub-install --root-directory=/mnt/target /dev/hdd[/c]

Offline

#5 2012-10-07 23:54:50

Fail2
Member
Registered: 2012-10-07
Posts: 11

Re: Install on Harddisk -- Kernel Panic

I tried this time with /dev/hdd & it's installed but after reboot it's the other Linux (fedora)'s Grub, which installed on /dev/hda.

Any way to work around this?

Thanks.

Offline

#6 2012-10-08 00:38:27

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Install on Harddisk -- Kernel Panic

Boot into fedora and edit the grub menu so it gives you a menu entry to boot the slitaz install.

How you do this depends on if fedora installed grub legacy or grub 2.

Reference:

grub legacy=> http://members.iinet.net.au/~herman546/p15.html

grub 2.0=> http://members.iinet.net/~herman546/p20.html

Dualboot=> http://members.iinet.net/~herman546/index.html

Offline

#7 2012-10-08 04:02:23

Fail2
Member
Registered: 2012-10-07
Posts: 11

Re: Install on Harddisk -- Kernel Panic

The fedora grub detected Slitaz after I run the "grub-mkconfig" (found on Internet search).

But it gives a kernel panic. I uploaded a picture, please check.

I'm checking those reference links. Thanks for providing.

From what I've seen about Slitaz by Live CD, I'm actually liking it as a Light Linux distribution.

[attachment=16984,690]

Offline

#8 2012-10-09 23:58:11

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Install on Harddisk -- Kernel Panic

you should put a better picture, that one is truncating the message on the screen which may have the info we need

I have hit a similar problem several time and this was tied to either

-not specifying the correct sdaX or hdaX in grub (as read by Slitaz, not necessarily as understood by fedora), in which case some (boring) trial and error is required

- not enough time allowed to mount the device where / has been installed

Add rootdelay=9 in the grub menu for the slitaz OS, this may solve that last issue (it did for me)

Offline

#9 2012-10-10 19:23:19

sklimkin
Member
Registered: 2012-10-08
Posts: 99

Re: Install on Harddisk -- Kernel Panic

0. Flash-card 8 GiB sda1 formated as ext2/ext3/ext4

1. Grub-loaders installed on sda (not sda1), firstly Grub4Dos, secondary GRUB2

2. Under SYSLINUX-bootloader all is fine.

Variants of Grub4Dos loading slitaz:

------------------------------------

title SliTaz GNU/Linux (cooking sda1) (Kernel bzImage slitaz)

root (hd0,0)

kernel /boot/bzImage root=/dev/sda1 quiet

title SliTaz GNU/Linux (cooking hda1) (Kernel bzImage slitaz)

root (hd0,0)

kernel /boot/bzImage root=/dev/hda1 quiet

title SliTaz GNU/Linux (initrd rootfs.gz) (Kernel bzImage slitaz)

root (hd0,0)

kernel /boot/bzImage root=/dev/sda1 quiet

initrd=/boot/rootfs.gz rw lang=ru_RU kmap=ru config=UUID=5bd805eb-940b-4a29-a146-2fef3b893ebc,install.sh root=/dev/null vga=normal autologin home=UUID=5bd805eb-940b-4a29-a146-2fef3b893ebc

Variants of GRUB2 loading slitaz:

---------------------------------

### BEGIN /etc/grub.d/10_linux ###

menuentry "GNU/Linux, with Linux 2.6.37-slitaz" {

insmod ext2

set root=(hd0,1)

linux /boot/bzImage rootdelay=8 root=/dev/sda1 home=sdb autologin

initrd /boot/rootfs.gz

}

menuentry "GNU/Linux, with Linux 2.6.37-slitaz" {

insmod ext2

set root=(hd0,1)

linux /boot/bzImage rootdelay=8 root=/dev/sda1 home=sda autologin

initrd /boot/rootfs.gz

}

As result: "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0:0)"

// variants: on unknown block(0:8) on unknown block(x:y) on unknown block(x:yy)

!!!unknown block!!!

Offline

#10 2012-10-11 02:25:17

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Install on Harddisk -- Kernel Panic

i think you have problems with your addressing scheme

if you have another (fixed) hdd, which is likelyn then shouldn' the flashcard be adressed ad hd1,1 and the root as /dev/sdb1

(or any other numbering depending on your system)

Unless someone is fluent with grub it may take a while to debug

you can check eg http://www.linuxquestions.org/questions/ubuntu-63/grub-drive-designation-dev-sda1-hd-1-0-a-624330/

The full screen including the message just before the crash may have valuable informations (eg the name of the partition which is not found), you should provide it; not just the latest error message: we already know there is a kernel panic on the way...

Offline

#11 2012-10-11 10:30:21

sklimkin
Member
Registered: 2012-10-08
Posts: 99

Re: Install on Harddisk -- Kernel Panic

Photographed the camera.

The information quickly runs on the screen.

Here last screen.

That will do?

If the previous screen of a conclusion I will practice is necessary and I will send.

[attachment=17108,693]

Offline

#12 2012-10-11 11:43:00

sklimkin
Member
Registered: 2012-10-08
Posts: 99

Re: Install on Harddisk -- Kernel Panic

Loading SliTaz 4.0 over grub2

It's 2 last screens in 1 picture

Offline

#13 2012-10-11 14:36:52

Fail2
Member
Registered: 2012-10-07
Posts: 11

Re: Install on Harddisk -- Kernel Panic

Thanks for all the comments.

I retied the whole process. This time installed grub onto /dev/hdd12 , then added "chainloader" in Fedora grub & it works (I guess)!

But new questions:

1) SliTaz boots onto console/text mode, how to switch to Graphical desktop as seen on Live CD? (uploaded a picture of logged on screen)

2) What to add in SliTaz grub/menu.lst so it'll auto boot after a time period (now it shows SliTaz's grub & stops there till I press 'Enter')?

Here's what inside menu.lst:

######################################################################

title SliTaz _4.0

    root (hd1,11)

    kernel /boot/vmlinuz-2.6.37-slitaz root=/dev/hdd12 vga=normal

######################################################################

Thanks.

[attachment=17111,696]

Offline

#14 2012-10-12 00:04:09

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Install on Harddisk -- Kernel Panic

Is it one problem or two problems here ? slimkin vs fail2, it is the same person ?

Slimkin, it sounds to me the loading device is sdb not sda, try correcting grub with root=/dev/sdb1 and also add the rootdelay=9 instruction as i recommended, I think it will boot.

ONLY change the lines with root=/dev/sda1

since at least it is able to boot.

I would remove the home=sdX inxtruction also, until it boots; once it boots you will be able to change that, if required.

I also had to fight for a while with grub to start my old slitaz version after i had upgraded my configuration, and had moved the disks around.

For the machine booting to console, what does it say when you start from root:

# slim

?

Offline

#15 2012-10-12 00:54:52

sklimkin
Member
Registered: 2012-10-08
Posts: 99

Re: Install on Harddisk -- Kernel Panic

fail2 - is topicstarter.

slimkin is only new member.

Thanks christophe.

Offline

#16 2012-10-12 01:22:26

Fail2
Member
Registered: 2012-10-07
Posts: 11

Re: Install on Harddisk -- Kernel Panic

Should I start a new topic?

Offline

#17 2012-10-12 02:59:45

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Install on Harddisk -- Kernel Panic

ok let me know if that works. I think it will or may need some trial/error, i am not a grub expert, but I would swear you are hitting the same pb i did hit recently...

Offline

#18 2012-10-13 14:49:32

sklimkin
Member
Registered: 2012-10-08
Posts: 99

Re: Install on Harddisk -- Kernel Panic

Hi, christophe!

My report:

http://forum.slitaz.org/topic/slitaz-40-on-flash-card-persistent-frugal-grub2-loader#post-17191

Offline

#19 2012-10-13 17:43:56

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Install on Harddisk -- Kernel Panic

sklimkin= my underderstanding is that all your pbs are solved

Fail2: no, we can continue here. I just confused the 2 problems for a while

So, when you login as root, what happens when you say

# slim

I think there is a slim log in /var somewhere, any hint there ?

Offline

#20 2012-10-14 11:48:27

Fail2
Member
Registered: 2012-10-07
Posts: 11

Re: Install on Harddisk -- Kernel Panic

@christophe

"........Fail2: no, we can continue here. I just confused the 2 problems for a while

So, when you login as root, what happens when you say......."

Hi,

I thought mine is no longer a Kernel Panic problem, so I started a new topic here:

http://forum.slitaz.org/topic/graphical-desktop-how

Please check.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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