LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-26-2009, 08:06 PM   #1
lu_hernan
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Can not boot slackware 12


Hi all,

I have searching for answer to my problem and can't find the right solution so I am asking for your help.

Error at boot:
Freeing unused kernel memory: 224k freed
mount: mounting /dev/hda4 on mnt failed
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
Kernel panic - not syncing: Attempted to kill init!

Information

Slackware 12 kernel generic 2.6.21.5

made initrd.img with
mkinitrd -c -k 2.6.21.5 -f ext2 -r /dev/hda4 -o initrn.img

disk partitions:
/dev/hda1 /boot
/dev/hda2 /home
/dev/hda3 /swap
/dev/hda4 /

grub menu.lst

title Slackware
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda4 ro vga=normal
initrd /boot/initrd.img

TIA for your help

Lu_hernan
 
Old 09-26-2009, 08:57 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I am assuming the filename for the initrd is correct in the real mkinitrd line, and the typo was just in your post?
 
Old 09-26-2009, 09:07 PM   #3
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
try adding the option -m ext2 to mkinitrd, there is no need for -o option since default output file is initrd.img.. so mkinitrd will look like
Code:
mkinitrd -c -k 2.6.21.5 -m ext2 -f ext2 -r /dev/hda4
 
Old 09-27-2009, 08:15 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
The output is usually initrd.gz, not initrd.img.
You can run this script to get a suitable mkinitrd command:

http://www.slackware.com/~alien/tool...d_generator.sh
 
Old 09-27-2009, 08:17 AM   #5
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
yes..my mistake.its initrd.gz
 
Old 09-27-2009, 08:28 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Post your /etc/fstab file. Do you have an extra entry for /dev/sda4?
Is the mount point /?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM
Fresh Slackware 9.1 installation requires boot disk to boot smithtodda Slackware - Installation 7 06-23-2004 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration