Unrecognized HD -- Drive on ATA bus 2

Mike Abraham yellowdog-newbie@lists.terrasoftsolutions.com
Sat, 1 Jun 2002 10:26:16 -0700 (PDT)


Actually, I have gotten YDL (2.2) working on my iBook2
(writing this e-mail from Linux right now).

Nevertheless, the solution is NOT (at least for me)
what Andrew has proposed below. 

Many thanks to a guy who posted a response to a
similar question at the Mandrake support forum. He
noted that the current 2.4.n kernel only allows 2
seconds for all IDE devices to be recognized. When
there's a CD in the drive, it spins up first (maybe
because the BIOS is set to boot from the CD first, or
because it's on the first IDE channel? -- whatever),
and the kernel never gets enough time to recognize the
HD.

I inquired as to whether or not there's a way to tell
the kernel to allow more time, but never got a
response. So, instead, I basically set YDL to boot
from a partition on my HD and then ran the install.

Here's the basic steps I took:

1. Make an HFS partition, from which to boot Linux, on
your drive. If your existing OS 9 or 10 partition
occupies the whole drive, you'll need to run Drive
Setup, make 2 HFS partitions, install OS 9 or 10 to
one of them, and leave the other free to become your
Linux boot partition. The other partition (that you're
gonna boot Linux from) should be at least 45 MB in
order to hold all the YDL boot files (read on) 

If you have some free space already, you can instead
use pdisk to format an existing unused partition as
HFS. If you use pdisk, and have your HD on the
non-primary IDE channel (i.e. ATA bus 2 -- as I do) ,
you'll need to use pdisk version 0.8 or beyond. pdisk
0.7.n can't recognize IDE drives on secondary or
tertiary channels, so, if the version of pdisk you
have can't see your HD, use version 0.8 or beyond.

Note the partition number of the non-MacOS (Linux
boot) partition you made -- you're gonna need it
later.

2. Stick the YDL Install CD in your CD drive and copy
the entire 'install' folder to the non-MacOS (Linux
boot) partition you made. Note that the install folder
should look like a system folder rather than a regular
folder (it has the folder + human face icon). 

3. This step is very important -- once the copy is
complete, REMOVE the CD from the drive. For the reason
described above, Linux can't boot the HD if there's a
CD in the CD-ROM/CD-RW/DVD drive. Ever. This will be
true even after you install and start using Linux. 

4. Reboot the machine into Open Firmware (hold option
+ apple + 'o' + 'f' while booting). Once you get the
Open Firmware prompt, type:

boot hd:<Linux boot partition #>,\\yaboot [enter]

(replace <Linux boot partition #> with the number of
the partition onto which you copied the YDL 'install'
directory -- on my machine, the command would read: 

boot hd:9,\\yaboot
)

5. You should now see the yaboot screen. At the yaboot
prompt, type: 

hd-install [enter]

This is very important. The yaboot.conf file defaults
the boot to a CD-ROM install, so you must force yaboot
to use the hd-install image by entering it directly
(or by hand editing the yaboot.conf file on the MacOS
side before you boot into Open Firmware). 

6. You should now see the familar YDL installer
(except that you're gonna get further than ever
before). Follow all the usual instructions. Note that
when the installer asks you what type of install you
wish to perform (HD, network, CD, etc), you DO want to
pick CD-ROM.

Let me say that again. Even though you've booted from 
the HD, you still want the installer to install from
the CD. The difference is that this time the kernel
has actually recognized your HD, and will make it
through  the partitioning step.

7. When you get to the drive partitioning step, you
can either accept the defaults (YDL will set up new
partitions for Linux, including boot -- which will
mean that the boot partition you created will become
essentially wasted space) or go to custom
partitioning.

In my case, I went to custom, so I could delete the
boot partition I made and let YDL reuse the space for
its own partitions. If you do the same, you'll need to
specify the partition number you used previously to
delete the Linux boot partition you made.

This may seem dangerous -- you'll be deleting the
partition you booted from, in which case you'll need
to repeat all the above steps if the install fails.
Nevertheless, I had no problems with YDL once it
recognized the HD, so I 'went for it'.

8. Towards the end of the install, YDL will ask you if
you want to set up your machine for dual boot, in
which case it will do largely what you did in creating
a Linux boot partition on your HD, but nicer (meaning
it will also set up a ROM image with the boot options
-- MacOS, Linux, CD). I would recommend following the
defaults here. 

-- That's it. Everything else works great. X, sound,
you name it. 

Good luck.

Mike

--- Andrew McVinnie <mcvinniea@rkymtnhi.com> wrote:
> Hi Mike,
> 
> Im rather new to YDL but I thought maybe I could
> help.
> 
> I too have a Dual USB iBook (600mh)
> 
> I just recently installed YDL 2.1 and it worked just
> fine.
> 
> Firstly, when you partition your Hard Drive, make
> sure in Drive Setup 
> that the unallocateed portion of the drive is the
> FIRST partition, or 
> YDL won't see it for sure.  I have a feeling that is
> your problem.  You 
> have the HFS+ partition first, with a smaller second
> unallocated partion 
> following.
> 
> Once you have an unallocated partition as the first
> Partition, YDL 
> should see it fine.  Then I assume you havent even
> gotten to the next 
> part of the YDL installer, where you format drives
> with the YDL 
> installer.  At this point you need to make 3 more
> little partitions with 
> the YDL installer, a boot drive 10 mb, a SWAP drive
> 256 mb, and all the 
> rest that is still unallocated can be your main hard
> drive.  (You 
> probably already know this, and just have not been
> able to even get this 
> far in the installer).
> 
> Hope this helped.
> Andrew McVinnie
> 
> page comstock wrote:
> 
> > did you ever get YDL working on your iBook?
> >
> >
> >> From: Mike Abraham <mike@firehosesoftware.com>
> >> Reply-To:
> yellowdog-newbie@lists.terrasoftsolutions.com
> >> To: yellowdog-newbie@lists.terrasoftsolutions.com
> >> Subject: Unrecognized HD -- Drive on ATA bus 2
> >> Date: Fri, 24 May 2002 12:08:39 -0600
> >>
> >> An update to my earlier posts (skip ahead to 'NEW
> INFO' if the following
> >> seems familiar):
> >>
> >> No matter how I partition the drive on my iBook 2
> (dual usb), the YDL
> >> 2.2 install gives a partition error -- no hard
> disk found.
> >>
> >> Currently, the drive is configured with 2
> partitions, according to the
> >> instructions. The first is marked as unallocated,
> while the second is
> >> HFS, and has OS 9 installed.
> >>
> >> I've seen some docs which suggest that the YDL
> partition needs to be
> >> formatted as HFS as well, though this contradicts
> the YDL 2.2 install 
> >> guide.
> >>
> >> This doesn't seem specific to YDL either --
> Mandrake 8.2 gives the 
> >> same error.
> >>
> >> NEW INFO: I read a post elsewhere that suggested
> that the partitioning
> >> tool used during the install can't recognize a
> drive on the non-primary
> >> IDE bus (in my case, bus 2). This seems to make
> sense, since the OS 9
> >> version of pdisk can't recognize the drive
> either.
> >>
> >> So, how the hell has everyone else with an iBook
> 2 done this?
> >>
> >> Thanks for your help.
> >>
> >> Mike
> >> _______________________________________________
> >> yellowdog-newbie mailing list
> >> yellowdog-newbie@lists.terrasoftsolutions.com
> >>
>
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
> >
> >
> >
> >
> >
> > ----------------------------------------------
> > My little hole in the net:  wurmy.dhs.org
> > --------------------
> > "I coulda lied I'm such a fool my eyes could never
> never never keep 
> > their cool. I showed her and I told her how she
> struck me but I'm 
> > fucked up now...."
> > - Red Hot Chili Peppers
> > - "Could have lied"
> >
> >
> >
>
_________________________________________________________________
> > Chat with friends online, try MSN Messenger:
> http://messenger.msn.com
> >
> > _______________________________________________
> > yellowdog-newbie mailing list
> > yellowdog-newbie@lists.terrasoftsolutions.com
> >
>
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
> >
> 
> 
> 
> _______________________________________________
> yellowdog-newbie mailing list
> yellowdog-newbie@lists.terrasoftsolutions.com
>
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com