LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-22-2005, 03:50 PM   #1
jfbertrand
LQ Newbie
 
Registered: May 2002
Posts: 17

Rep: Reputation: 0
Grub


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.
 
Old 02-22-2005, 04:06 PM   #2
Davidian1024
Member
 
Registered: Jun 2004
Location: Cleveland, Ohio, USA
Distribution: LFS
Posts: 35

Rep: Reputation: 15
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.
 
Old 02-24-2005, 09:35 AM   #3
jfbertrand
LQ Newbie
 
Registered: May 2002
Posts: 17

Original Poster
Rep: Reputation: 0
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.

I'm getting a little lost here.

Thanks,
JF
 
Old 02-24-2005, 10:44 AM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration