Blog Post

Article posted on Jan 7

Another minor iMystery solved

  • Posted by Ryan Finnie on January 7, 2006, 7:49 pm

On Wednesday, I brought a dev copy of Finnix-PPC to work to try out on the Macs there. I have a G4 tower and a G4 mini at home, which this copy both worked great on. But at work, we have a G3 iMac and a G4 MDD "Windtunnel", and I like to test on as much hardware as possible. The G3 worked fine (if slow; IIRC, it's a 6MHz proc with 24Kb of memory), but Finnix could no longer find the CDROM drive on the Windtunnel, even though 86.1 could boot just fine.

After some digging, I found that the CDROM drive was on /dev/hde, which Finnix did not have an entry in /dev for. This made me say "well how did this work in 86.1?", but I did not have an 86.1 PPC disc handy. Nonetheless, this led to a bug fix and a feature enhancement: adding more /dev entries to the initrd and "three strikes and you're on your own", respectively.

Before, if the Finnix initrd could not find its CD boot device, you were screwed. You would be dropped down to an ash shell, but there was no way to continue the process if you found a fix. "Three strikes and you're on your own" was a solution to a combination of this and some USB enhancements/fixes I made for 86.2; namely, some USB devices will take longer to "settle down" than the 5 seconds Finnix gives it before it starts mounting and checking for a compressed image. If Finnix does not find an image on the first time, it will wait 10 seconds, then try again. This process repeats 3 times. If Finnix still cannot find the image, it gives the user a "you're on your own" warning, and drops the user down to a shell. However, if the user can deduce why Finnix did not find the image, he can manually mount the device to /ramdisk/cdrom, and when he exits from the shell, Finnix will continue on, assuming it successfully mounted the image.

As for why Finnix-PPC worked on the Windtunnel on 86.1, but the dev copy didn't work? The Windtunnel has 3 IDE channels. In kernel 2.6.14, ide0 contained the hard drive (hda), ide1 contained the CDROM drive (hdc), and ide2 had no devices. In 2.6.15, the location of ide1 and ide2 swapped for some reason, so now the CDROM drive is detected as being on hde. Adding /dev/hde* to the initrd (and many more devices, just in case) fixed the problem.

  • Leave Comment
  • Posted in Development, Finnix

Leave a Reply

Click here to cancel reply.

« 86.2 coming… soon
Finnix 86.2 Released »

Finnix

  • Wiki
  • Blog
  • Snapshots

Categories

  • Announcements (23)
  • Development (28)
  • Finnix (71)
  • Miscellany (18)
  • Trademark (2)

Archives

  • November 2009
  • August 2009
  • January 2009
  • December 2008
  • November 2008
  • June 2008
  • March 2008
  • January 2008
  • October 2007
  • July 2007
  • April 2007
  • January 2007
  • October 2006
  • August 2006
  • July 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • November 2005
  • October 2005

Recent Comments

  • Ubik!: I just want to take opportunity to thank the Finnix team for a great linux distro :) I was so happy to find...
  • Steve: I tried to make a bootable DVD using mkisofs using the isolinux.bin file in the v93 iso download and it would...
  • Rony: I find Finnix extremely useful when servicing Windows as well as Linux machines, especially for taking backups...
  • bubo: hehe, the CRAY really is is cracking me up…funny stuff and a nice office by the way :-) . thanks for...
  • Ryan Finnie: Rodney, the package lists are in the release notes, 3rd bullet point at the top....

Search

Meta

  • Log in
  • Valid XHTML

Keep 'em coming!

283,686 spam comments
blocked by
Akismet
Powered by WordPress.