LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-02-2010, 12:30 PM   #1
ngc457
Member
 
Registered: Jan 2010
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
slackpokg upgrade to current


I just upgraded to current using slackpkg and before rebooting I was making some necessary changes to lilo.conf.

Basically I changed all instances of /hd* to /sd* namely:

boot=/dev/sda
root=/dev/sda1

However, when I run 'lilo -v -b /dev/hda' I get a:

Fatal: Illegal 'root=' specification :/dev/sda1

Help!
 
Old 02-02-2010, 12:39 PM   #2
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
Can you list the sda layout ... ? (Can you access /dev/sda1)
Code:
fdisk -l /dev/sda
# or even...
fdisk -l /dev/sda1
 
Old 02-02-2010, 12:45 PM   #3
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245
Blog Entries: 2

Rep: Reputation: 41
I just did that yesterday and had a heck of a time. What I did that finally worked was use mkinitrd add the initrd.gz file to lilo.conf after the image line, then (hopefully this wont be a problem for you, but) I rebooted to which I had to mount /dev/sda# on /mnt, then exit, then it finally booted into the hd, then you will be able to rerun lilo to fix it.

<Edit> Just thinking about it, while it's running and all, better get a second opinion from someone who knows more first...

Last edited by Mol_Bolom; 02-02-2010 at 12:50 PM.
 
Old 02-02-2010, 12:58 PM   #4
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Hi,
Robby Workman wrote up a howto that should provide some help.
http://rlworkman.net/howtos/libata-switchover
 
1 members found this post helpful.
Old 02-02-2010, 01:08 PM   #5
ngc457
Member
 
Registered: Jan 2010
Distribution: Slackware
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hangaber View Post
Can you list the sda layout ... ? (Can you access /dev/sda1)
Code:
fdisk -l /dev/sda
# or even...
fdisk -l /dev/sda1
There is no /dev/sda yet. I started all this using Slack 13 which is using /hd*, after upgrading I'm changing all instances of /hd* to /sd* in fstab and lilo.conf to avoid a kernel panic upon reboot.
 
Old 02-02-2010, 01:15 PM   #6
ngc457
Member
 
Registered: Jan 2010
Distribution: Slackware
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by wadsworth View Post
Hi,
Robby Workman wrote up a howto that should provide some help.
http://rlworkman.net/howtos/libata-switchover
That's what I'm working from.

Is this my problem? I started with S13. (default install)

* If you are using one of the generic kernels (requiring an initrd), then use the sd* name for the root device when creating the image.

Other than this step I followed his instructions.

Last edited by ngc457; 02-02-2010 at 01:17 PM.
 
Old 02-02-2010, 03:21 PM   #7
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Use the new designation for root (-r /dev/sda1) with the mkinitrd command.
Except for that change, it will be the same command you ran before.

For the root= line in lilo.conf, you'll have to leave it as hda1 for now.

Or you could use one of:
root=current
root="LABEL=the-disk-label"
root="UUID=really-long-UUID-string"

(the quotes are needed if you use UUID or LABEL, see "man lilo.conf")
 
Old 02-02-2010, 03:21 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
If Robby's way doesn't work you could try booting with the cd/dvd, mount /, chroot to it, edit lilo.conf and running lilo.
 
Old 02-02-2010, 04:22 PM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
What worked for me was to boot from the Slackware 13 install disk and continue until after selection of a keyboard and you have a root login. Then:
'mkdir /mnt/tmp'
'mount /dev/hda1 /mnt/tmp'
'chroot /mnt/tmp'
If using an initrd then, 'cd /boot' and run mkinitrd specifying -r /dev/sda1
Edit /etc/lilo.conf so that "boot=/dev/hda" in the global section and "root=/dev/hda1" in the partition config section. Also check that "image=<your new kernel>" and you have an "initrd=/boot/initrd.gz".
'exit'
'/mnt/tmp/lilo -r /mnt/tmp' - lilo should run without error
Now you should be able to boot using the root=/dev/sda1 option, so you can fix up lilo.conf and rerun lilo.
 
Old 02-02-2010, 04:53 PM   #10
ngc457
Member
 
Registered: Jan 2010
Distribution: Slackware
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
If Robby's way doesn't work you could try booting with the cd/dvd, mount /, chroot to it, edit lilo.conf and running lilo.
This worked. Hope this fixes my Intel video woes. :-)

Thanks.
 
  


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
Upgrade from 12.0 to -current Yalla-One Slackware 2 06-13-2009 06:30 AM
DISCUSSION: Upgrade to Slackware -current without a -current CD truthfatal LinuxAnswers Discussion 0 09-19-2006 01:42 PM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM
I need to upgrade my current Kernel xmdms Linux - Software 2 05-06-2004 04:58 PM
Is there a way to upgrade to current? trey85stang Debian 9 04-10-2004 10:43 PM

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

All times are GMT -5. The time now is 03:22 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