how to switch from hugesmp.s to generic.s after intallation
SlackwareThis 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.
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.
how to switch from hugesmp.s to generic.s after intallation
Hi, Guys,
I guess this might be another quite stupid question,, and I read through all the changes-and-hints.txt, and also other readme.txt, and all recommended to use one of the generic smp kernels...
I know that I have to "create an initrd in order to boot
the generic kernels - see /boot/README.initrd for instructions," and know the instructions as well.
but my questions is how to switch from the default hugesmp.s to generic smp kernel?
Can someone direct me a link or reading which I can get more instructions please?
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:
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-smp-2.6.24.5-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:
Code:
hugesmp.s hda=noprobe
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):
Code:
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:
Code:
mount /dev/sda2 /mnt/home
Now, do a chroot into your harddisk install:
Code:
chroot /mnt
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
Code:
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:
Code:
lilo
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:
Code:
hdparm -d /dev/hda
And in my post I said:
Quote:
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:
As you can see, /dev/hda on this comp is a DVD burner. And it is PATA; this comp also has a SATA DVD burner, and a SATA hard disk. They are /dev/sr0 and /dev/sda respectively.
If your drive is PATA and not SATA, you don't change hda to sda. So the first thing we must do is determine what disk in your system has Slackware.
Now you need to boot with the Slackware CD1 as a rescue CD. Since we're reasonably sure your / partition is on /dev/hda6,
at the boot prompt enter:
Code:
hugesmp.s root=/dev/hda6 rdinit= ro
and if that boots you into your system, first issue:
Code:
hdparm -i /dev/hda
to see what it outputs. If you are sure your drive is PATA and not SATA, then change the sda entries back to hda entries and then run "lilo" and reboot. You should get back into your system.
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
/dev/hda
multcount = 0 (off)
io_support = 0 (default)
16-bit)
unmaskirq =0 off
using_dma = 0 off
keepsettings =0 off
readonly =0off
readahead = 256 on
geometry = 16383/255/63, sector = 156301488, start=0
result for hdparm -tT /dev/hda
/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:
Code:
hugesmp.s root=/dev/hda6 rdinit= ro
rather than:
Code:
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:
Code:
mount /dev/hda6 /mnt
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
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:
Code:
hdparm /dev/hda
hdparm -tT /dev/hda
lspci -v
lsmod
uname -a
fdisk -l
mount
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 2.6.24.5-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:~#
Code:
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
root@localhost:~#
Code:
root@localhost:~# mount
/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:~#
Code:
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
root@localhost:~#
Sorry, bruce, I didn't know this would take this much time.. Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.