LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2004, 02:07 PM   #1
5150
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
Need explanation of hda=ide-scsi and its friends


Hi,

I'm installing RedHat 7.2 onto a laptop hard disk in a USB caddy with the intention of subsequently installing the drive into a laptop that has no floppy or CD ROM drive, however I'm having a problem getting the destination machine to boot.

I've tried both Lilo and Grub and they both hang almost immedately (or errors just a flashing cursor) and I believe the problem is due to the fact that the install has configured the boot sequence for the USB caddy drive and not for the primary master IDE controller that the drive ends up being attached to.

The default kernal parameters during the install are...

sda1=ide-scsi

I've been able to work out that sda1 is the first scsi drive in the system (I'm assuming its treating the external USB caddy as a scsi device) and ide-scsi is an instruction to use scsi emulation for this device, assuming I'm right the problem I have is translating this into what it _should_ be for the destination machine.

Since its going to be the primary master IDE drive in the target system I _believe_ I need to change sda1 to hda however I am unclear if I should retain the ide-scsi or replace it with 'something else' (and if so what the 'something else' needs to be)

Appreciate any pointers
 
Old 04-06-2004, 03:27 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
if it's gonna be a regular ide disk you won't need scsi emulation...
 
Old 04-06-2004, 03:38 PM   #3
5150
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by win32sux
if it's gonna be a regular ide disk you won't need scsi emulation...
Ok so the parameters would be what?
 
Old 04-06-2004, 04:37 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
well, you wouldn't need any "ide-scsi", and you'd have to make sure your bootloader is pointing to the correct root device, for example, /dev/hda...

you might want to post your /etc/lilo.conf for discussion...

Last edited by win32sux; 04-06-2004 at 04:39 PM.
 
Old 04-06-2004, 04:52 PM   #5
5150
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by win32sux
well, you wouldn't need any "ide-scsi", and you'd have to make sure your bootloader is pointing to the correct root device, for example, /dev/hda...

you might want to post your /etc/lilo.conf for discussion...
See thats the problem I cant get at it because the system wont boot once I've moved the drive to the target system, and if I booted it in the install system then I know it would be wrong (because its an external USB drive on that system)

Basically I need to know what I should be putting in the kernel parameters box instead of sda1=ide-scsi during installation to get it to boot from the primary master IDE device
 
Old 04-06-2004, 05:04 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
can you boot the target system to a cd???

if so, then you can use a linux cd to edit the lilo.conf file on the disk and to re-install lilo with the new configuration...
 
Old 04-06-2004, 05:05 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
the ide-scsi parameters tell the ide driver to ignore the drive and not set it up, because you plan to set it up with the scsi driver later. it's mostly used for ide cdrom burners.
 
Old 04-06-2004, 06:58 PM   #8
5150
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by win32sux
can you boot the target system to a cd???

if so, then you can use a linux cd to edit the lilo.conf file on the disk and to re-install lilo with the new configuration...
No, the target system has no drives other than the hard drive I am installing to (which is why the install needs to be done in another machine)

Ok so if I dont need ide-scsi what do I need? (IIRC I've seen references to ide-hdd) (or are we saying I dont need to specify any parameters at all?)
 
Old 04-06-2004, 07:15 PM   #9
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
yes, that's what i'm saying... you don't need special parameters... you just need to have lilo properly configured...

you could probably configure it right there on the "caddy" before transferring the disk, so that it's ready right away, i guess...

why don't you post your lilo.conf???
 
Old 04-07-2004, 05:51 AM   #10
5150
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by win32sux
yes, that's what i'm saying... you don't need special parameters... you just need to have lilo properly configured...

you could probably configure it right there on the "caddy" before transferring the disk, so that it's ready right away, i guess...

why don't you post your lilo.conf???
Ok I tried an install leaving the parameters box empty and still no dice.

If someone can tell me how to access ext3 parition under Windows XP (the native OS of the install machine the USB caddy is attached to) then I'd be able to post the lilo.conf
 
Old 04-07-2004, 10:37 AM   #11
5150
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by win32sux
why don't you post your lilo.conf???
Ok I have managed to get into the drive so here it is (this is not a cut and paste so any typos might be my fault)

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.7-10
label=linux
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hda2
append="hda=ide-scsi"


Please be aware that any instance of hda was originally sda1 and has been manually modified by me since being able to access the drive. I have also made the same modifications where applicable in the fstab and device.map files.

My partition layout is as follows

/boot 47MB
/ (rest of disk space)
swap 500MB

The system hangs at boot displaying 'L' (presumably the start of 'Lilo') and a flashing cursor
 
Old 04-07-2004, 08:21 PM   #12
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
get rid of that hda=ide-scsi line, and
rerun lilo.
however you booted, and mounted the partition,
say it's at /mnt/hda2,
run
chroot /mnt/hda2/ /sbin/lilo
 
Old 04-07-2004, 09:10 PM   #13
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
if you post your exact and working /etc/lilo.conf and /etc/fstab (do a copy/paste), as they are on the source system, someone here might be able to show you exactly what you need to change so that when you put the disk on the target system, it'll work right away...

=)

Last edited by win32sux; 04-07-2004 at 09:11 PM.
 
Old 04-08-2004, 05:48 AM   #14
5150
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I dont have an exact and working lilo.conf because neither the install system nor the target system will boot from this disk (the install system wont boot from an external drive, and the target system hangs with 'L' as I have already explained).

I've only been able to get this info by attaching the drive to a 3rd system which is running linux and has the neccessary USB support to read the external caddy.
 
  


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
sata + hda=ide-scsi julc Linux - Hardware 2 05-23-2005 08:22 AM
GRUB or LILO boot to SCSI drive on SCSI system w/ IDE card mkl838 Linux - General 1 03-06-2005 10:01 PM
hda=ide-scsi in grub.conf xround Linux - General 5 09-17-2004 06:48 AM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 03:36 AM
ide CDRW problems under ide-scsi jwbrownuk Linux - Hardware 3 04-30-2003 01:08 PM


All times are GMT -5. The time now is 03:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration