LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-14-2004, 03:41 PM   #46
cruzer
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
which kernel to install?


Hey Bonecrusher,

I could not thank you enough for this. Your SATA custom install cd worked like a charm. Everything went fine, but I think I have made a mistake while installing the kernel. I installed bare.i because I could not find the sata.i kernel. What is it named on the disc? How can I delete the bare.i and install the new one?

Thanks
Vikram
 
Old 07-14-2004, 04:09 PM   #47
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Re: which kernel to install?

Quote:
Originally posted by cruzer
Hey Bonecrusher,

I could not thank you enough for this. Your SATA custom install cd worked like a charm. Everything went fine, but I think I have made a mistake while installing the kernel. I installed bare.i because I could not find the sata.i kernel. What is it named on the disc? How can I delete the bare.i and install the new one?

Thanks
Vikram
hehe.. I knew someone would have a problem with this eventually. Its no biggie.. the kernel is in:

(CD#1)/kernels/sata.i/bzImage

The kernel name is simply sata.i (sata.i directory that is)
I can't remember if I changed the setup script or not to default to this. I guess not. I will have to take a look..
For now it is simply a matter of copying that file called 'bzImage', System.map.gz,(and config if ya want) over to the root drive/dir and renaming bzImage --> vmlinuz :

Code:
darkstar# cp /mnt/cdrom/kernels/sata.i/bzImage /boot/vmlinuz

darkstar# cp /boot/vmlinuz /boot/vmlinuz-2.4.26-sata

darkstar# cp /boot/vmlinuz /boot/vmlinuz.old

darkstar# cp /mnt/cdrom/kernels/sata.i/System.map.gz /boot/

darkstar# cp /mnt/cdrom/kernels/sata.i/config /boot/config-2.4.26-sata

darkstar# gunzip /boot/System.map.gz

darkstar# unlink /boot/config

darkstar# ln -s /boot/config-2.4.26 /boot/config
Notice I made two copies of it. One is called '.old' nad the other is called '-2.4.26-sata' --- I do this on my system so whenI recopile I always have a 'stable' kernel to fall back on. Of course you will need to change your lilo.conf file.. Keep reading.

Really all you need is simply the vmlinuz because that is your kernel. But the system map helps for other things and the config is there for your convience. (Like when you re-compile a new kernel you can copy it from there and use it like this:

Assuming your root for all of this and your in the /usr/src/linux dir:


darkstar# cp /boot/config ./.config
darkstar# make oldconfig


One other thing you may want to check after you copy the vmlinuz over is to make sure that lilo is booting vmlinuz

you edit your /etc/lilo.conf file nad see where what it is calling the kernel. Should default to vmlinuz


Hope these instructions are helpful enough. Feel free to ask me about anything else. I'll try and fix that problem you found. Or see if I can get it to default to my kernel.

If anyone sees an easier method or a mistake PLEASE tell me.

-bc

edit:

To boot back into your system (sincxe you probably installed the wrong kernel just do this :
Re-run the slack CD

then:
boot: sata.i root=/dev/sda1 noinitrd ro


^^^ of course change to whatever your root drive/dir is on. (sda1, sda6 or whatever)

-bc




Last edited by bonecrusher; 07-16-2004 at 10:30 AM.
 
Old 07-14-2004, 04:46 PM   #48
cruzer
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
Hi, thanks for replying so fast. One more question:

Did you forget to insert /sata.i/ after /mnt/cdrom/kernels/ in the above code?
 
Old 07-14-2004, 05:42 PM   #49
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Quote:
Originally posted by cruzer
Hi, thanks for replying so fast. One more question:

Did you forget to insert /sata.i/ after /mnt/cdrom/kernels/ in the above code?

Ahh back in linux.. I wrote that above in WinXP. So forgive me for the error!!! I fixed it. I hope all is correct now. How very perceptive

I was looking at the script for kernel installatiion:

(I mounted initrd.img as a loopback) (This file is under the isolinux dir on cd for your info)...

Here is a snipit:
Code:
# If someone tries to install kernels from a CD that doesn't contain any,
# we'll give them one chance to find a disc that does.
swapdisks() {
  CDDEVICE=`cat $TMP/SeTCDdev`
  umount $CDDEVICE 1> /dev/null 2> /dev/null
  eject $CDDEVICE
  dialog --title "REINSERT KERNEL DISC" --msgbox \
"Please reinsert the Slackware disc containing the collection \
of Linux kernels.  Usually this is disc number one (the disc \
that you boot from).  Once you've inserted the disc, hit ENTER \
to continue." \
8 61
  mount $CDDEVICE /var/log/mount 1> /dev/null 2> /dev/null
}
and

Code:
 dialog --title "INSTALL LINUX KERNEL" --default-item $DEF --menu \
"In order for your system to \
boot correctly, a kernel must be installed.  If you've made it this far \
using the installation bootdisk's kernel, you should probably install \
it as your system kernel ($KERNEL).  If you're sure you know what you're \
doing, you can also install your choice of kernels from the Slackware CD, \
or a kernel from a floppy disk.  You can also skip this menu, using \
whatever kernel has been installed already (such as a generic kernel from \
the A series).  Which option would you like?" 18 72 4 \
"bootdisk" "Use the kernel from the installation bootdisk" \
"cdrom" "Use a kernel from the Slackware CD" \
"floppy" "Install a zimage or bzimage from a DOS floppy" \
"skip" "Skip this menu (use the default $KERNEL)" 2> $TMP/SeTreturn
 if [ ! $? = 0 ]; then
  break
and finally,

Code:
  if [ ! "$SLACK_KERNEL" = "" ]; then
    if [ -r /cdrom/isolinux/kernel/$SLACK_KERNEL ]; then
     ITEM=" --default-item /cdrom/isolinux/kernel/$SLACK_KERNEL "
    elif [ -r /cdrom/kernels/$SLACK_KERNEL/bzImage ]; then
     ITEM=" --default-item /cdrom/kernels/$SLACK_KERNEL/bzImage "
    fi
   fi
   cat << EOF > $TMP/tempscript
dialog --title "CHOOSE LINUX KERNEL" $ITEM --menu "Which of the following \\
kernels would you like to install?  NOTE: If \\
you have a SCSI controller, choose a kernel that supports that.  You \\
can support your CD-ROM drive and network card later with installable \\
kernel modules." \\
18 70 8 \\
EOF
   for file in /cdrom/isolinux/kernel/* /cdrom/kernels/*/*zImage ; do
    if [ -r $file ]; then
     echo "\"$file\" \"\" \\" >> $TMP/tempscript
    fi
   done
   echo "2> $TMP/SeTreturn" >> $TMP/tempscript
   . $TMP/tempscript
   if [ ! $? = 0 ]; then
    continue;
   fi
   file=`cat $TMP/SeTreturn`
   dialog --title "COPYING" --infobox \
"Copying kernel from $file to $KERNEL on your new system...\n" 0 0
   rm -f $T_PX/$KERNEL
   cp $file $T_PX/$KERNEL
   chmod 400 $T_PX/$KERNEL
   rdev -R $T_PX/$KERNEL 1
   rdev $T_PX/$KERNEL $ROOT_DEVICE > /dev/null 2> /dev/null
   rdev -r $T_PX/$KERNEL 0
   break;
  fi
It looks to me like (and this is how I remember when I was testing) that it goes through and interactively lists the kernels that are currently on the cd. As long as you use the install cd#1 (make sure you put it back in...) you should be able to pick sata.i from the list. So no changes are necessary as far as I can see. I will look a little more closely, but maybe you didn't put the original cd#1 (The ISO I made) in the drive... it gives you 1 and only 1 chance going by the code. The only problem that comes to mind is that maybe it would find the kernels on another disk, and not give you the oppurtunity to change disks, but that is easily avoided by suspending the setup script and umount /dev/cdrom (or hdX) and then resuming the script. (Do this before you choose (or it chooses) to copy the kernel. If you used the original Slackware CD#1 it wouldn't have shown you sata.i in other words. My test machine is permanently installed, (so it isn't a test/install machine anymore so if anyone else has any more input on this, please, by all means let me know!

-bc


PS: My guess as to what happened is you had disk#2 or disk#3 or something in there, (Which if I remember does have a kernels dir) and it saw no sata.i on those. The only disk that was modified was CD #1 So for anyone else, please MAKE SURE (when prompted) to change disks when it asks for the disk with your kernel on it.

Last edited by bonecrusher; 07-14-2004 at 05:59 PM.
 
Old 07-15-2004, 07:46 AM   #50
cruzer
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
No, the disc that was in the drive was the custom disc1 that had sata.i kernel, but the installation did not list it in the list of kernels that could be installed. Anyways, I have followed your directions and now everything is fine, I am running slack 10 on dell dimension 4600 finally. Thank you so much for all your help. I think you should make a little SATA howto and post URLs of boot and cd discs on the alt.os.linux.slackware. There are a lot of people who would need this help.
 
Old 07-15-2004, 08:14 AM   #51
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Hmm ... found mine.

Quote:
Originally posted by cruzer
No, the disc that was in the drive was the custom disc1 that had sata.i kernel, but the installation did not list it in the list of kernels that could be installed. Anyways, I have followed your directions and now everything is fine, I am running slack 10 on dell dimension 4600 finally. Thank you so much for all your help. I think you should make a little SATA howto and post URLs of boot and cd discs on the alt.os.linux.slackware. There are a lot of people who would need this help.
Well, you had me so convinced that there still was a problem, I went in and looked. I ran the script and not only did it load the sata.i ( it was in the kernel list) but it was the one that came up first as it shows the kernel that booted the system highlighted first in the list. Maybe you just didn't see it or something. But as far as I have been able to find, everything is in proper working order...

Glad all is well with your installation! I get all warm and fuzzy inside when I hear things like this.. Haha.. Anyway glad it worked out for you..



-Brady

Last edited by bonecrusher; 07-15-2004 at 09:23 AM.
 
Old 07-15-2004, 07:42 PM   #52
Slugg0
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Cool SATA SAGA continues...

I'm currently downloading the enhanced ISO from BC and hope that it works as promised. Since I last posted to this thread, I managed to completely wipe out my HD so I'm starting from scratch. Seems I was trying to fix my FC2 partition and managed to make a bad choice. I went from having some 7 different OS'es on that drive to zero in no time flat! Oh well, at least I still have my trusty Power Mac G3 running to get my email and post to this forum, while the Dell system in the living room is downloading the new ISO. Anyone else out there using Boot It NG as their boot manager? It had been stable as a rock for me prior to this incident.
 
Old 07-15-2004, 11:41 PM   #53
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Thumbs up Re: SATA SAGA continues...

Quote:
Originally posted by Slugg0
I'm currently downloading the enhanced ISO from BC and hope that it works as promised. Since I last posted to this thread, I managed to completely wipe out my HD so I'm starting from scratch. Seems I was trying to fix my FC2 partition and managed to make a bad choice. I went from having some 7 different OS'es on that drive to zero in no time flat! Oh well, at least I still have my trusty Power Mac G3 running to get my email and post to this forum, while the Dell system in the living room is downloading the new ISO. Anyone else out there using Boot It NG as their boot manager? It had been stable as a rock for me prior to this incident.
Promised?

(I don't think any Linux Distro on earth gives you that
But hey, everyone I have talked to so far has had good results.. and ppl are still d/loading it.. I am getting tired of running ABC (BitTorrent) though..

And I have heard of that boot manager, but never used it. sorry.

bc
 
Old 07-16-2004, 09:31 AM   #54
qlaret
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
hello
I`m trying to install slackware 9.1
I have Asus A7N8X Deluxe Gold (with Silicon 3112A controler) and WD800JD disc
I made sata.i disk (Made for slack 9.0 install by Bonecrusher) and install 1 and 2 disc

So
I put the first disc into the floppy
then I can see that :

boot: //here i put enter
Loading
Boot failed: please change disks and press akey to continue <----- ???????????

If I put iinstall.1 disc then the computer will hang (floppy LED is lighting alltime) and I can`t do anything

I try do this with sata.i for slackwer 10.0 but without a result.

What I`m doing wrong.

Greeting from Poland

PS sorry for my english but I just start learnig it.


Last edited by qlaret; 07-16-2004 at 09:34 AM.
 
Old 07-16-2004, 09:44 AM   #55
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Quote:
Originally posted by qlaret
hello
I`m trying to install slackware 9.1
I have Asus A7N8X Deluxe Gold (with Silicon 3112A controler) and WD800JD disc
I made sata.i disk (Made for slack 9.0 install by Bonecrusher) and install 1 and 2 disc
...

Boot failed: please change disks and press akey to continue <----- ???????????
Hmm, if I had to guess, you probably have a defective floppy.
Don't know for sure..one of those things I would have to look at the boot messages to understand whats going on.

bc

PS: I have the same Hard Drive as you (see below on signature of hardware I have running), and if I'm not mistaken, I have heard of someone getting slack installed with the same sata chipset (controller) so don't give up by any means. Also your English is 100% better then my Polish (Which would be non-existent.)


Last edited by bonecrusher; 07-16-2004 at 09:47 AM.
 
Old 07-16-2004, 09:57 AM   #56
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Lightbulb Interested in speeds

To Everyone who has slack installed on a Sata Hard drive:

I was wondering what everone is getting as far as speed?
I get around +-50MB/Sec

Which as far as I have seen from checking other threads, is about average for my controller.

If your not sure how to check your drive speed under Slackware just do this:

man hdparam

I believe the command is:

hdparam -t /dev/(YOUR HARDRIVE HERE) = under sata usuaully sda or sdb

so to get mine was:

hdparam -t /dev/sda

Do this about 5-10 times to get a proper average. As I mentioned, my average was about 52MB/Sec

Now if you compare this to your average EIDE:


/dev/hda:
Timing buffered disk reads: 64 MB in 7.43 seconds = 8.61 MB/sec
Checking hdb...

/dev/hdb:
Timing buffered disk reads: 64 MB in 16.25 seconds = 3.94 MB/sec
Checking hdc...

/dev/hdc:
Timing buffered disk reads: 64 MB in 6.64 seconds = 9.64 MB/sec
Checking hdd...

/dev/hdd:
Timing buffered disk reads: 64 MB in 4.00 seconds =16.00 MB/sec


HEHE .... now you see why getting your sata controller up and going under Slack is SO important.

Well if ppl who have installed using my or someone elses method would post their results here, I would like to know!



THANKS!

-bc


EDIT:
Syntax error:

Code:
bash# hdparm -t /dev/sda
Sorry about the error above.
See post below!
-me

Last edited by bonecrusher; 07-16-2004 at 03:44 PM.
 
Old 07-16-2004, 10:43 AM   #57
qlaret
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
ok you have right
the disc was defective (I check earlier both install s\disc but not this one)
but what I have to do next

I log as root
but fdisk still showing that I have hd drive (in fact hde - so one more question when i must put this commend ide=reverse I think I must to do this)
 
Old 07-16-2004, 10:48 AM   #58
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Lightbulb USE CFDISK! Read info under [F3] on boot disk [F4] on ISO

Quote:
Originally posted by qlaret
ok you have right
the disc was defective (I check earlier both install s\disc but not this one)
but what I have to do next

I log as root
but fdisk still showing that I have hd drive (in fact hde - so one more question when i must put this commend ide=reverse I think I must to do this)
try using cfdisk for one thing.. it is easier to work with...:

cfdisk /dev/sda


bc



PS:
The /dev/HDx drive is probably just your cdrom(s)....

Last edited by bonecrusher; 07-16-2004 at 10:49 AM.
 
Old 07-16-2004, 11:27 AM   #59
qlaret
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
I tried to use cfdisk but it send me message that: there is no drive (or something like that)

and no... hd isn`t my cd-rom

if I use fdisk -l
i can see something like that

/dev/hd1 ntfs (primary)
/dev/hd2 extended
/dev/hd3 boot (primary)
/dev/hd4 swap (logical like the others)
/dev/hd5 fat
/dev/hd6 ex3
/dev/hd7 ntfs
/dev/hd8 fat32
/dev/hd9 fat32
 
Old 07-16-2004, 12:24 PM   #60
cruzer
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
sata disc speed

I am consistently getting 56 MBPS on my Maxtor 120G SATA drive.

By the way, the syntax is hdparm and not hdparam.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware 10.1 sata.i dosn't support my sata controller kryptobs2000 Slackware 7 12-05-2007 06:25 PM
slackware 10.0 -> sata cb951303 Slackware 3 09-07-2005 07:28 AM
slackware and sata.i muddlnx Slackware 33 10-18-2004 07:45 AM
Slackware and SATA Colosis Slackware - Installation 6 03-12-2004 11:02 AM
slackware 9.1 and SATA atarimike Slackware 4 02-26-2004 08:24 PM

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

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