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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-20-2010, 05:26 AM   #31
pupok
LQ Newbie
 
Registered: Jul 2009
Location: Banská Bystrica, Slovak republic
Distribution: Slackware, Ubuntu
Posts: 18

Rep: Reputation: 2
Maybe /dev/hda2 is not set to be read at boot time


Quote:
Originally Posted by wakkana12 View Post
that's the problem.. earlier im having problem on 2.6.36 custom kernel because it doesn't appear on my lilo even though i followed the tutorial on how to upgrade.. when running /sbin/lilo command it returned that linux2 was added which is my 2.6.36 custom kernel.. but when i restart my computer it doesn't show the linux2 on the lilo. i already posted my lilo.conf and the result of
Code:
ls -la /boot
Could you post output of
Code:
fdisk -l /dev/hda
Anyway, setting /dev/hda2 as bootable is still not enough if you have old lilo installed in /dev/hda MBR.
 
Old 11-20-2010, 08:53 AM   #32
njb
Member
 
Registered: Apr 2010
Location: Behind the Gateway
Distribution: Slackware 13.1
Posts: 167
Blog Entries: 4

Rep: Reputation: 16
Red face make a new installation

Good idea to try upgrade first.
It's a good exercice to improve the slackware knowledge.

But if you get annoyed, and you're newbi, or use a single desktop PC, then make a new slackware 13.1 installation and benefit from a clean upgraded machine.

NjB
 
Old 11-20-2010, 03:06 PM   #33
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pupok View Post
Could you post output of
Code:
fdisk -l /dev/hda
Anyway, setting /dev/hda2 as bootable is still not enough if you have old lilo installed in /dev/hda MBR.
here's the output of fdisk -l
Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x879a879a

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         608     4883728+  82  Linux swap
/dev/hda2   *         609        1824     9767520   83  Linux
/dev/hda3            1825        9729    63496912+  83  Linux
i think any changes in my lilo.conf doesn't affect it even if after changing the config file and running
Code:
/sbin/lilo
. what seems to be the problem?

Last edited by wakkana12; 11-20-2010 at 03:17 PM.
 
Old 11-20-2010, 03:56 PM   #34
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
change hda to sda in everything, lilo.conf too
then rerun lilo

if all else fails, change the symlink vmlinuz to point to the 2.6.36 kernel, rerun lilo and reboot

cd /boot
ln -sf vmlinuz6 vmlinuz
/sbin/lilo
 
Old 11-20-2010, 11:50 PM   #35
wakkana12
Member
 
Registered: Dec 2009
Posts: 171

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linus72 View Post
change hda to sda in everything, lilo.conf too
then rerun lilo

if all else fails, change the symlink vmlinuz to point to the 2.6.36 kernel, rerun lilo and reboot

cd /boot
ln -sf vmlinuz6 vmlinuz
/sbin/lilo
after running the
Code:
slackpkg update && slackpkg upgrade slackpkg
it installs everything and also created new kernel and deleted the old one it also creates a symlink to vmlinuz. all i have to do is edit the fstab and lilo.conf then run /sbin/lilo.. after running /sbin/lilo it said that i have added the new kernel.. but after restarting all changes in the lilo doesn't seems to take effect. i still have the same kernel but when running ls -la /boot there's no more 2.6.29.6 kernel and i couldn't enter my x..

what i did is to format my computer.. right now i tried editing lilo.conf and setting the
Code:
timeout = 100
then run /sbin/lilo and restarted my computer.. it still doesn't take effect.. did i miss something?
 
Old 11-21-2010, 04:27 PM   #36
pupok
LQ Newbie
 
Registered: Jul 2009
Location: Banská Bystrica, Slovak republic
Distribution: Slackware, Ubuntu
Posts: 18

Rep: Reputation: 2
Next step is to try install lilo into MBR of sda

I have no idea how you managed to boot without kernel in place. Do you happen to have 2 disks?
What says
Code:
dmesg | grep Attached
uname -vr
mount
ls -l /boot/vmlinuz
grep -A 4 -E "^image|^boot" /etc/lilo.conf
If there is no other OS on your machine, then it's safe to install lilo into your MBR (Master boot record). Though always have a live CD handy and expect kernel panic.

Until now, you always put lilo into boot record of partition 2 (/dev/hda2). But it seems that at some point in history, you accidentally put lilo also into MBR (/dev/hda). At boot time, lilo in MBR has precedence over lilo in boot record of your bootable partition.

Now you just need to edit boot line in lilo.conf from
Code:
boot /dev/hda2
to
Code:
boot /dev/hda
Then please post lilo -v output here.

HTH
 
  


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 Slackware 13.0 to 13.1 njb Slackware 22 08-08-2010 06:18 AM
SIP 4.10.0 SlackBuild or Slackware package? Or upgrade Slackware 13.0 to 13.1? ShellyCat Slackware 1 07-11-2010 09:31 PM
Slackware-current (aug) upgrade to slackware 13? jensklas Slackware 20 09-02-2009 11:52 AM
Slackware 10.1 -> 10.2 upgrade ramke Slackware 4 10-27-2005 12:39 AM
Upgrade from Slackware 9.1 to 10.0 Joffe Slackware - Installation 1 07-04-2004 12:33 PM

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

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