LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-05-2008, 08:11 AM   #1
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Rep: Reputation: 26
after kernel upgrade slackware boots only if I pass root=/dev/sda3 when booting


I switched from slack-12.1 default huge-smp kernel to a generic-2.6.27.7 from slackware-current. That changed my /dev/hda to /dev/sda.
so after a couple of reboots from slack-install cd that was fixed, but it still tries to mount /dev/hda3
and more interestingly it tries to mount it to /mnt
but passing parameter "root=/dev/sda3 ro" it boots ok (3 is my root partition)
fstab looks like this:
Code:
/dev/sda2        swap             swap        defaults         0   0
/dev/sda3	 /                ext3        defaults         1   1
and lilo.conf like this:
Code:
boot = /dev/sda
compact        # faster, but won't work on all systems.
  bitmap = /boot/slack.bmp
  bmp-colors = 255,0,255,0,255,0
  bmp-table = 60,6,1,16
  bmp-timer = 65,27,0,255

append="pci=noapic evt.default_utf8=0"
prompt
timeout = 50

vga = 773

image = /boot/vmlinuz.new
	initrd = /boot/initrd.gz
	root = /dev/sda3
	label = slack.new.1
	read-only

image = /boot/vmlinuz
  root = /dev/sda3
  label = slack
  read-only
where could it be getting the hda3 from??
 
Old 12-05-2008, 08:18 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Is it the same when you boot from slack or slack.new.1 (in lilo menu)
(maybe there is an issue with the initrd.gz ?)
Did you try add the well known hda=noprobe kernel parameter ?
 
Old 12-05-2008, 08:49 AM   #3
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
slack.new.1 is the new 2.6.27.7 kernel
slack is 2.6.24.5 (the one that had hda3, not sda3)
hda=noprobe had the same results

I rebuilt initrd.gz a couple of times with the same results, it only contains ext3 module + dependecies

Also it shouldn't be initrd, becouse just giving the right root= parameter fixes it.
I just can't understand why it ignores the lilo root=/dev/sda3 option
 
Old 12-05-2008, 09:10 AM   #4
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
fixed it for now by changing this line in lilo:

Code:
append="root=/dev/sda3 pci=noapic evt.default_utf8=0"
it still seems wrong. but works
any ideas?
 
Old 12-05-2008, 09:37 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I don't know, I suspected the initrd because there is init script into it that mounts the root partition I believe (so maybe this is where you see the root partition seen as hda3 mounted in mnt ?)

Maybe you have to add other modules in initrd ? (sata, scsi... I don't know)
Or it's time to build your own kernel ? (and enable ext3 as built-in, so no more initrd)
 
Old 12-05-2008, 09:50 AM   #6
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
you where right after all, every time I rebuilt initrd the initrd-tree folder had been the same
after deleting it and rebuilding initrd it worked
the first initrd was built while the old kernel was loaded, therefor the hda3
thanks for leading me to the right path

and now to get back to the problem why i needed the upgrade:
http://www.linuxquestions.org/questi...uspend-688355/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lilo /dev/sda3 not a valid boot dev puntjuh Linux - Software 1 02-15-2007 05:29 PM
lilo still boots old kernel after upgrade TwoEven Debian 17 01-18-2007 10:28 AM
problems booting a 2.6 kernel , 2.4 boots fine! dimgr Debian 2 12-27-2006 09:19 AM
Block device /dev/sda3 is not a valid root device.. rincewind Linux - Hardware 7 06-09-2006 04:47 AM
Dual-booting Mandrake & Slackware: Kernel panic: VFS: Unable to mount root fs vasudevadas Linux - General 5 08-22-2004 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:58 AM.

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