Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-21-2005, 05:38 PM
|
#1
|
Member
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394
Rep:
|
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 06:41 PM.
|
|
|
08-21-2005, 06:07 PM
|
#2
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
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
|
|
|
08-21-2005, 06:10 PM
|
#3
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
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
|
|
|
08-21-2005, 06:16 PM
|
#4
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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.
|
|
|
08-21-2005, 08:32 PM
|
#5
|
Member
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394
Original Poster
Rep:
|
How can I remove the symlink, most post seem to be reomoving the package with "rm" rather than removing a symlink.
|
|
|
08-21-2005, 09:48 PM
|
#6
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
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.
|
|
|
08-21-2005, 09:52 PM
|
#7
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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
|
|
|
08-21-2005, 10:38 PM
|
#8
|
Member
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394
Original Poster
Rep:
|
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
|
|
|
08-21-2005, 11:11 PM
|
#9
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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/"
|
|
|
08-21-2005, 11:37 PM
|
#10
|
Member
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394
Original Poster
Rep:
|
OK will do, at work at the moment.
|
|
|
08-22-2005, 08:51 AM
|
#11
|
Member
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394
Original Poster
Rep:
|
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.
|
|
|
08-22-2005, 01:50 PM
|
#12
|
Member
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173
Rep:
|
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)"
|
|
|
08-22-2005, 05:03 PM
|
#13
|
Member
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394
Original Poster
Rep:
|
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.
|
|
|
08-22-2005, 05:26 PM
|
#14
|
Member
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173
Rep:
|
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.
|
|
|
08-22-2005, 06:15 PM
|
#15
|
Member
Registered: Aug 2004
Location: UK
Distribution: Arch (Duke / Desktop), FreeBSD 6.1 (Home-Dev server)
Posts: 131
Rep:
|
are you able to post your /etc/lilo.conf file here? to me it sounds like you got the path mixed up
|
|
|
All times are GMT -5. The time now is 03:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|