Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
Here is my situation, I have a harddrive on my machine where my FC2 is installed. My board has a CompactFlash Reader (/dev/hdc). I'm trying to install a small OS on the CompactFlash card, put a boot loader on it and then, remove the hard drive and let the CF be it.
I think I'm running into problems just creating the file system on the CF, here's what I did so far:
mkfs.ext2 /dev/hdc
fdisk /dev/hdc
Create a single partition(w/ bottable flag on), write and exit.
my device.map looks like this:
hd0 /dev/hdb
hd1 /dev/hdc
Then if I go to the GRUB command line and try to setup (hd1) or even if I try to mount /dev/hdc I get unknown fs type, did I miss a step? And if I get passed that, GRUB ends up filling up the whole drive w/ nothing so I get a 100% full when looking at df .
I'm doing something wrong (duh), I just need to know what.
Thanks and have a great day...
JF
Last edited by jfbertrand; 02-22-2005 at 03:52 PM.
I belive this is a BIOS issue. GRUB only sees the boot devices that BIOS passes to it. If your BIOS does not support booting from the CF reader then GRUB will not be able to boot from it. Possibly a BIOS upgrade would fix this.
Thanks for your reply, however, it doesn't seem to be a BIOS issue, the bios sees it the device just fine.
I've tried in 2 different ways, the first one was w/ grub-install like so:
grub-install /dev/hdc1
Then:
#grub
#root (hd1,0)
#setup (hd1,0)
There it tells me that everything seems to be fine, modified my grub.conf, copied my /boot directory on the card....shutdown the machine, take off the hard drive, reboot ...
nothing ...
I've also tried w/ lilo and the bios command but no worky either. When running lilo I get a File or Directory does not exist /dev/hdc.
Minor point of clarification - does your BIOS list the CF as an option in the boot devices? If not, you won't be able to boot from it. In other words it's not so much whether the BIOS recognizes the device, but whether or not it supports that device as a boot option. (To use an analogy, very old PC's supported CD drives, but didn't always permit the system to boot from them.)
As you know the typical boot device options are the floppy, the CD, and the hard drive; depending on your mobo/BIOS you may also be able to boot from a USB device, possibly the CF, etc, but it would depend on your mobo. Good luck with it -- J.W.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.