Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > grub on compact flash

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-27-2006   #1 (permalink)
Just Joined!
 
Join Date: Oct 2006
Posts: 30
grub on compact flash

Hi all,

i am trying to install GRUB to my compact flash. but i have some problem.

i am following these instruction:
http://julian.coccia.com/blog/index.php?m=200309&more=1
but i even fail in the first step

so i have grub 0.97 on my laptop.

Code:
#grub --version
grub (GNU GRUB 0.97)
the this is my partition:
Code:
#fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4629    37182411    7  HPFS/NTFS
/dev/sda2            4630        9729    40965750    f  W95 Ext'd (LBA)
/dev/sda5            4630        5904    10241406    7  HPFS/NTFS
/dev/sda6            5905        6096     1542208+  82  Linux swap / Solaris
/dev/sda7            6097        7246     9237343+  83  Linux
/dev/sda8            7247        9729    19944666   83  Linux

Disk /dev/sdb: 523 MB, 523321344 bytes
255 heads, 63 sectors/track, 63 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          62      497983+  83  Linux
it can be seen that my CF car is at /dev/sdb1
so the frist question is, i should install GRUB to /dev/sdb1 instead of /dev/sdb right?

then i read the
Code:
#info grub
about the naming convention. so for my CF it should be hd1,0 -> refering to /dev/sdb1 (first partition of 2nd IDE drive)

but why in the grub console, it is not recognized:
Code:
grub> root (hd1,0)

Error 21: Selected disk does not exist
any idea to install GRUB on the CF?

thanks
lbdgwgt is offline  



Reply With Quote
Old 10-27-2006   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,596
add an entry for second disk (CF) in /boot/grub/device.map file.
contents of device.map file
(hd0) /dev/sda

add one more line

Code:
 
(hd1) /dev/sdb



casper
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 10-27-2006   #3 (permalink)
Just Joined!
 
Join Date: Oct 2006
Posts: 30
thanks.. it works
lbdgwgt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:56 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1