I'm not really a linux n00b per se, but this question strikes me as n00bish. It feels like this is something I should have known by now. :-P
I'm working on these digital sign "image kiosk" type applications at work. They are mini-itx boards that boot up off of Compact Flash. I'm using feh and unclutter, so it's a lot like various "digital picture frame" DIY projects around the net. The compact flash is partitioned like this:
[512MB] FAT32 - Pictures for the "slideshow"
[100MB] ext2 - DSL KNOPPIX image, Grub settings
[400MB] ext2 - /home, feh.unc & unclutter.dsl myDSL extensions
Here's what my grub menu.lst looks like:
title DSL with mydsl, restore, persistentancy, hostname, and passwords
kernel /boot/linux24 root=/dev/hda2 quiet vga=normal noacpi noapm noscsi nousb nodma noswap frugal mydsl=hda3 home=hda3 host=imsdemo
My problem is this - grub points to hda3 as my home & dsl extensions directory, both of which need to be mounted in order for the "kiosk" to work. Also, my script that runs the show (called from /home/dls/.xinitrc) does a mount /dev/hda1
in order to get at the pictures partition.
HOWEVER, on certain boards we use that don't need the CF-IDE adapter & IDE cable, grub boots up DSL fine but then proceeds to label the flash card as /dev/hdc (NOTE the 'c' instead of an 'a') - this royally messes everything up. No myDSL extension, no .xinitrc or scripts in /home, and even if the script was there to run it would access the wrong partition. So, I have to modify my scripts and the grub menu.lst in order to fix the problem.
My question (finally) - Is there a way to force DSL (or linux in general?) to mount this first and only IDE disk drive as hda instead of hdc?