how to switch from hugesmp.s to generic.s after intallation
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You can actually do this without changing a single symlink. At least, it works for all the computers on this LAN. Just edit /etc/lilo.conf and add these lines above your present ones:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-smp-126.96.36.199-smp
initrd = /boot/initrd.gz
root = /dev/hda8
label = Slack-12.1
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Since there is the possibility that something could go wrong, add the lines above to /etc/lilo.conf but leave the present ones for the kernel you know you can boot.
Change the root device to yours, save the file, and then run "lilo" to write it to the bootloader.
You can download Alien Bob's mkinitrd generator and run it and use the line it outputs for your /boot/initrd.gz.
That mkinitrd_command_generator.sh is a script which will generate an initrd.gz for your kernel. Place it in your /tmp directory and then as root issue "chmod +x /tmp/mkinitrd_command_generator.sh". Then issue "sh /tmp/mkinitrd_command_generator.sh -i" and answer the questions as best you can. It should not be too hard. After you finish, copy and paste the recommended line in your terminal and press Enter. This will make an initrd.gz for your machine.
Guys, I am done,, following you guys' instruction, I think I got it done,, and I should be using the generic kernel.
Thanks for everything, and I will try to install my ATI drive now..
Here is another quick question, I am using an IBM T43, with 1gb ram. When i tried to untar a file while listening to the music, the KDE just so slow, even stalled. Is there anything wrong with my installation? or that is the way Slackware 12.1 is running? I heard that Slackware was supposed to be fast.
Does your laptop have a SATA hard drive by chance? If so, you might need to use hda=noprobe
with the Slackware kernel. Some comps have a problem and turn hdparm off. That is also
covered in CHANGES_AND_HINTS.TXT. To check it out, issue "hdparm /dev/hda" substituting
hda for your drive containing Slackware.
There is a solution to this without re-installing Slackware. You will have to change your lilo configuration so that the kernel no longer tries to load and use the IDE driver for your disk (which disables DMA and kills your performance) but instead let it use the SATA driver.
You need to boot from the Slackware install CD again but this time type the following line as the boot command:
When the Slackware installer finishes booting and leaves you at the prompt you will have to mount your harddisk partitions manually below /mnt , then 'chroot' into your mounted hard disk partitions, fix the files /etc/lilo.conf and /etc/fstab on your harddisk and re-run lilo.
Because of using "hda=noprobe" at boot you will notice that your hard disk is now called /dev/sda . Furthermore, running "sdparm -d /dev/sda" will show you that DMA is now actually enabled.
Mount your partitions below /mnt (assuming /dev/sda1 is your '/' partition):
mount /dev/sda1 /mnt
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
If there are other disk partitions you have created earlier, like one for /home, you should mount these as well below /mnt at the proper node. Example for a /home filesystem on the /dev/sda2 partition:
mount /dev/sda2 /mnt/home
Now, do a chroot into your harddisk install:
This effectively tricks the system into believing that your hard disk is the root fileystem, instead of the CDROM filesystem.
In the 'chroot', edit /etc/fstab and /etc/lilo.conf and change all occurrences of hda to sda in both files.
Additionally, you will have to make sure that there is an "append = " line in the global section of /etc/lilo.conf. It should contain at least
append = "hda=noprobe"
- note that it may well be possible that there already is a "append =" line present. Just add hda=noprobe to that line.
When you're finished with all that, you should re-run lilo to apply the changes to the bootloader:
You may see some warnings, but these can be ignored. Errors are bad of course.
You can now exit the 'chroot' and reboot the system:
Bruce-hill, thanks for the reply, and I am using a ide drive..
Alien Bob, thanks for the instruction,,
I think that I did exactly what you said, like modify hda to sda in both /etc/fstab and /etc/lilo.conf,, and here is what i got from the reboot,
"mount: mounting /dev/hda6 on /mnt failed: no such device or addresss
ERROR: No /sbin/init found on rootdev (or not mounted). trouble ahead.
you can try to fix it, type 'exit' when things are done
/bin/sh: can't access tty: job cotrol turned off
"mount: mounting /dev/hda6 on /mnt failed: no such device or address
did i do anything wrong.. ?
The first thing Alien Bob said to do was check the results of:
hdparm -d /dev/hda
And in my post I said:
To check it out, issue "hdparm /dev/hda" substituting
hda for your drive containing Slackware.
Did you do that, and if so, what did it output? It could output that DMA is turned on and actually be your CD/DVD-ROM drive. A better output to tell what hard drive you have would be "hdparm -i /dev/hda", which will output some information about the drive at /dev/hda, such as:
Thanks Bruce for this early post, even in a saturday morning.
I did what you said "hugesmp.s root=/dev/hda6 rdinit= ro"
here is what i got, "an error occurred duing the root filesystem check you will be giving the chance to log into the system
in a single-user mode to fix the problem.
if you are using ext2 filesystem, running 'e2fsck -v -y <partition>' might help"
if offers me to enter my root password to fix something,, i did, and when try to "mount /dev/had6 /mnt" slackware tells me "/dev/hda6 already mounted or /mnt busy
and when i try to change sda back to hda from the /etc/fstab, and /etc/lilo.conf, slackware tells me "cannot open file for writing: read-only file system" and I cannot change them.
So what can i do now?
result of hdparm /dev/hda
multcount = 0 (off)
io_support = 0 (default)
unmaskirq =0 off
using_dma = 0 off
keepsettings =0 off
readahead = 256 on
geometry = 16383/255/63, sector = 156301488, start=0
result for hdparm -tT /dev/hda
timing cached reads: 824mb in 2.00 seconds = 411.83mb/sec
timing buffered disk read: 8mb in 3.59 seconds=2.23mb/sec
Result for hdparm -iI /dev/hda is too long, as I am typing them on another Thinkpad I have..
Before we go any further, please tell us your exact Thinkpad T43 model. You should be able to get it off your laptop, and it should correspond to one of the models from the ThinkWiki.
Also, please run "hdparm -i /dev/hda" and give us the exact model of your hard drive. You don't need to copy the entire output, just the model ... from my example above that would be "Model=TSSTcorpCD/DVDW TS-H552U".
I did what you said and boot from "hugesmp.s root=/dev/hda rdinit=ro" but got kernel panic, so i can't have the result of "hdparm -i /dev/hda", so i got into windows xp, and had the following information,
Your hard drive is PATA. However, the ThinkWiki does not list a T43 2668W6W. Therefore, I can not tell for sure whether or not you have the issue with the pata_piix module or not. Perhaps it's best to get your laptop where it will boot Slackware again, then we can work on your issues. At least then we can get proper output from that computer.
I don't know if your post there has a typo, but it should have been:
hugesmp.s root=/dev/hda6 rdinit= ro
hugesmp.s root=/dev/hda rdinit=ro
If you issue that command, and it does not boot into your system, then use the methods Alien Bob posted before. Boot with Slackware-12.1 CD1 and just press Enter to use the hugesmp.s kernel. Then:
mount /dev/hda6 /mnt
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
When you get your system up, you can edit /etc/lilo.conf and /etc/fstab change the sda entries to hda and run "lilo" and reboot.
Okay, now let's see the output of the following commands as root:
hdparm -tT /dev/hda
dmesg | grep -e ^'ata' -e ^'scsi'
And please put [_code] without the underscore before each command's output, and [_/code] without the underscore after it. You can check Preview Post to see how it will look before posting. Or use code tags if you have your editor setup that way.
Last edited by Bruce Hill; 05-31-2008 at 08:20 AM.
Reason: add please use code tags
root@localhost:~# uname -a
Linux localhost 188.8.131.52-smp #1 SMP Wed Apr 30 13:18:13 CDT 2008 i686 Intel(R) Pentium(R) M processor 1.86GHz GenuineIntel GNU/Linux
root@localhost:~# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0xcccdcccd
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4918 37180048+ 7 HPFS/NTFS
/dev/hda2 9795 10337 4105080 12 Compaq diagnostics
/dev/hda3 4919 9794 36862560 f W95 Ext'd (LBA)
/dev/hda5 4919 7995 23262088+ 7 HPFS/NTFS
/dev/hda6 7996 8899 6834208+ 83 Linux
/dev/hda7 8900 9674 5858968+ 83 Linux
/dev/hda8 9675 9794 907168+ 82 Linux swap
Partition table entries are not in disk order
/dev/hda6 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda7 on /home type ext3 (rw)
/dev/hda1 on /fat-c type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
/dev/hda5 on /fat-d type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
tmpfs on /dev/shm type tmpfs (rw)
root@localhost:~# dmesg | grep -e ^'ata' -e ^'scsi'
ata_piix 0000:00:1f.2: version 2.12
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ata_piix 0000:00:1f.2: failed to request/iomap BARs for port 0 (errno=-16)
ata_piix 0000:00:1f.2: failed to request/iomap BARs for port 1 (errno=-16)
ata_piix 0000:00:1f.2: no available native port
Sorry, bruce, I didn't know this would take this much time.. Thank you.