LinuxQuestions.org
Help answer threads with 0 replies.
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 08-21-2005, 04:38 PM   #1
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Rep: Reputation: 30
unable to access slackware (solved)


hi

I installed the 2.6.10 generic from the testing on the cd. I created a symlink from /boot/vmlinuz-generic-2.6.10 to /usr/src/linux-2.6.10 and edited lilo to include this.

in my excitement i forgot to update lilo and rebooted, I can now not access it as I am getting a kernel panic error.

my 2nd slackware cd doesn't seem to act as a boot disk. I have a knopix disk, how can I get access again fix lilo and look for kernel problem.

all i did t install 2.6 was
Quote:
cd /mnt/cdrom/testing/packages/linux-2.6.10
installpkg kernel-generic-2.6.10-i486-1.tgz
installpkg kernel-modules-2.6.10-i486-1.tgz
installpkg kernel-source-2.6.10-noarch-1.tgz
cd /boot mkinitrd -c -k 2.6.10 -m reiserfs
Then did upgradepkg for alsa

Last edited by flebber; 08-23-2005 at 05:41 PM.
 
Old 08-21-2005, 05:07 PM   #2
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
The first cd of slack 10.1 or the 2nd cd of slack 10.0 will work.
do this.

Boot up slackware 10.1 with disk 1, and then login as root
mkdir /mnt/slack
mount /dev/hdaX /mnt/slack #replacing /dev/hdaX with the actual partition
chroot /mnt/slack
/sbin/lilo

reboot
 
Old 08-21-2005, 05:10 PM   #3
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Quote:
Originally posted by flebber
I have a knopix disk, how can I get access again fix lilo and look for kernel problem.
Mount your Slack partition with write prviledges.
Then chroot into where you have it mounted in Knoppix.

Next you should just need to run 'lilo' from the command line.

# su
# mount -o remount,rw /mnt/<partitionname>
# chroot /mnt/<partitionname>
# lilo
 
Old 08-21-2005, 05:16 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Re: unable to access slackware

Quote:
Originally posted by flebber
I created a symlink from /boot/vmlinuz-generic-2.6.10 to /usr/src/linux-2.6.10 and edited lilo to include this.
Why did you do this? You created a symlink from a kernel image to a directory.
Remove the symlink, and remove the entry from /etc/lilo.conf, and make an entry such as:
Code:
image = /boot/vmlinuz-generic-2.6.10
  root = /dev/hda2
  label = Slack-2.6.10
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
where root = /dev/hda2 corresponds to your root partition, and not mine.

Quote:
in my excitement i forgot to update lilo and rebooted, I can now not access it as I am getting a kernel panic error.

my 2nd slackware cd doesn't seem to act as a boot disk.
Boot with CD1 and at the boot: prompt type "bare.i root=/dev/hda2 noinitrd ro" and, again, substitute your root partition for hda2, which is mine on this comp I'm building. Then su to root and run "lilo" and you're good. That's after you fix that symlink error and edit /etc/lilo.conf.

Quote:
Then did upgradepkg for alsa
Hope that works better for you than it does for me. The 2 times I used those packages to upgrade ALSA I lost sound.
 
Old 08-21-2005, 07:32 PM   #5
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
How can I remove the symlink, most post seem to be reomoving the package with "rm" rather than removing a symlink.
 
Old 08-21-2005, 08:48 PM   #6
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
Follow Xian's instructions, then just navigate to /boot and remove the symlink using 'rm' (you may want to fix all of the symlinks before running lilo though).

Also, as good practice, always leave an entry for a working kernel in /etc/lilo.conf and don't uninstall the old kernel immediately, in case the new one doesn't work out.
 
Old 08-21-2005, 08:52 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by flebber
How can I remove the symlink, most post seem to be reomoving the package with "rm" rather than removing a symlink.
In your first post you stated:
Quote:
I created a symlink from /boot/vmlinuz-generic-2.6.10 to /usr/src/linux-2.6.10 and edited lilo to include this.
To see that symlink issue:
Code:
mingdao@slackbox:~$ ls -al /boot/
total 1911
drwxr-xr-x   2 root root     368 2005-08-22 06:14 ./
drwxr-xr-x  18 root root     408 2005-08-22 04:03 ../
lrwxrwxrwx   1 root root      37 2005-08-22 03:54 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
lrwxrwxrwx   1 root root      21 2005-08-22 03:54 System.map -> System.map-ide-2.4.31
-rw-r--r--   1 root root  608033 2005-06-06 11:37 System.map-ide-2.4.31
-rw-r--r--   1 root root     512 2005-08-22 04:06 boot.0300
lrwxrwxrwx   1 root root      17 2005-08-22 03:54 config -> config-ide-2.4.31
-rw-r--r--   1 root root   41760 2005-06-06 11:37 config-ide-2.4.31
-rw-r--r--   1 root root    5032 2004-05-21 15:19 diag1.img
-rw-------   1 root root   26624 2005-08-22 06:14 map
lrwxrwxrwx   1 root root      18 2005-08-22 03:54 vmlinuz -> vmlinuz-ide-2.4.31
-rw-r--r--   1 root root 1256566 2005-06-06 11:37 vmlinuz-ide-2.4.31
That output is from a default installation of Slackware -current,
where I've not compiled a new kernel. I have tried using Pat's
kernels (i.e. ./slackware-current/testing/packages/linux-2.6.12.3/ )
but they cause problems for me. For one, they clobbered the
original kernel sources in /usr/src/ so that I can't recompile the
Nvidia drivers without pointing the driver to the new source ...
The new kernel sources should not be in /usr/src per
Linus Torvalds email dated Thu Jul 27 2000 and his README file
that comes with the kernel sources.
Second, that kernel didn't have proper support for USB devices;
and I prefer to roll my own kernels anyway, so that I can remove
modules for hardware that I don't have.

When you get that /boot/ output, look at the symlink you created.
It will be the ouput on the other side of the -> and I would assume
from your first post that it would look something like this:
Code:
/boot/vmlinuz-generic-2.6.10 -> /usr/src/linux-2.6.10
I don't know what made you decide to do that, but it's just wrong.
If you were following a kernel build guide, throw it away and use
Kwan Lowe's Kernel Build HOW-TO
or Jesper Juhl's quick 2.6 guide for Slackware
but note in Juhl's guide do not create the symlink for System.map.

If you need help or just confirmation, please post the output of:
$ ls -al /boot/
$ cat /etc/lilo.conf
 
Old 08-21-2005, 09:38 PM   #8
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
So would you use.

rm /boot/vmlinuz-generic-2.6.10 /usr/src/linux-2.6.10

or

rm -ls /boot/vmlinuz-generic-2.6.10 /usr/src/linux-2.6.10
 
Old 08-21-2005, 10:11 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by flebber
So would you use.

rm /boot/vmlinuz-generic-2.6.10 /usr/src/linux-2.6.10

or

rm -ls /boot/vmlinuz-generic-2.6.10 /usr/src/linux-2.6.10
I don't know how you linked it...you didn't post the output I asked for.
Also, you might want to post "ls -al /usr/src/linux/"
 
Old 08-21-2005, 10:37 PM   #10
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
OK will do, at work at the moment.
 
Old 08-22-2005, 07:51 AM   #11
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
Ok everything is back how it should be . I reinstalled. I installed the 2.6.10 from testing and edited lilo as above on reboot 2.6.10 failed due to kernel panic, the worse part is that 2.4 also did not work due to kernel panic.

The error for both was
Kernel panic - not syncing : VFS : unable to mount root fs on unknown-block

I went in as sugggested before
mkdir /mnt/slack
mount /dev/hda6 /mnt/slack
chroot /mnt/slack

I did /sbin/lilo I get an error this time that says
Warning 'proc/partitions' does not exist disk scan bypassed.

I am not sure if that is the error bringing it down. As a side I cannot get nano to work as the editor i tried "source /etc/profile" to let me use it but alas only vim which I can't get much done with.
 
Old 08-22-2005, 12:50 PM   #12
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
Quote:
Originally posted by flebber


I did /sbin/lilo I get an error this time that says
Warning 'proc/partitions' does not exist disk scan bypassed.
That's ok, as long as it says "Added Linux (or whatever you named it)"
 
Old 08-22-2005, 04:03 PM   #13
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
It has added the new slack-2.6.10 and I still have the 2.4 kernel called slacware, but bothe are having the kernel panic error.
 
Old 08-22-2005, 04:26 PM   #14
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
Fact is, that the kernel(s) that you are trying to boot have no support for ReiserFS (that's your file-systemtype or not ?)

Does the "generic" kernel have support voor ReiserFS ? (i assume it does but it never hurts to ask).

Hmmz, I just did a "make menuconfig" on the 2.6.11.11 kernel and ReiserFS is enabled, but as a module by default. To boot correctly it has to be included in the kernel. Maybe that's the problem.
 
Old 08-22-2005, 05:15 PM   #15
Master Fox
Member
 
Registered: Aug 2004
Location: UK
Distribution: Arch (Duke / Desktop), FreeBSD 6.1 (Home-Dev server)
Posts: 131

Rep: Reputation: 15
are you able to post your /etc/lilo.conf file here? to me it sounds like you got the path mixed up
 
  


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
Unable to access internet TBomb Linux - Networking 4 08-11-2004 10:29 AM
Unable to Access the Internet - not sure why zensufi Linux - Hardware 9 07-20-2004 06:14 PM
unable to access GUI alcopanth Linux - Newbie 5 11-02-2003 02:43 PM
unable to access files stress Mandriva 0 10-11-2003 01:29 PM
unable to access others in the network swapanmitra Linux - Networking 2 02-12-2002 10:37 PM

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

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