Quote:
Originally Posted by saikee
hda, hdb, hdc and hdd are IDE channels of primary master, primary slave...
|
Thanks. I know how these things are referenced, I was attempting to write a
script that would determine it for that script's own use, not my personal knowledge. I know which device I will be booted off of before I even start the boot process. But a script doesn't. My original "need" for this info was because I wanted to boot Slax and have it automatically mount the CD it booted off of, because I had other stuff on that CD (actually a DVD) besides the Slax installation. Big stuff, that wouldn't be appropriate for Slax's rootcopy scenerio. With multiple CD/DVD drives in my systems and some with SATA, some without, I wasn't sure how to identify the boot device. But this problem was solved much easier by adding the following to rc.slax:
Code:
/bin/mkdir /cdrom
/bin/mount -t iso9660 /dev/cdrom /cdrom
How stupid of me. I was looking for /dev/hda, /dev/hdb, etc. when I could just reference it as /dev/cdrom. This references the first CD in the system, which is always the one I boot from.
---
Maybe boot device isn't even determinable, like syg00 said. It's just an academic question at this point anyways.
p.s. - I was trying things like:
"cd /boot; df ." which I thought kindof, mightof, couldof worked. For a harddisk boot maybe, but not when you're booting from a CD.
Thanks!