LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2006, 07:42 AM   #1
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
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
 
Old 10-27-2006, 08:38 AM   #2
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
halo,


problem solved, someone helped me.

i have to add this line on my /boot/grub/device.map file:

Code:
(hd1) /dev/sdb1
then copy the following files to my the rootfs of CF at the same directory:
Code:
/boot/grub/stage1
/boot/grub/stage2
/boot/grub/reiserfs_stage1_5 (depending the filesystem will be used - maybe more than this one)
execute grub in su privilege

Code:
grub> root (hd1,0)
grub> setup(hd1)
grub installed, put the CF to target, reboot.
hope this helps someone

thanks
 
  


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
Compact Flash Installation robotissues Linux - General 5 10-02-2006 04:37 PM
Booting from compact flash bangoram Linux - Hardware 5 08-29-2006 09:48 AM
Compact flash mngmd Linux - Hardware 2 11-18-2005 09:57 PM
Compact Flash Issue raman200319 Red Hat 0 03-24-2004 05:57 PM
Compact flash and Mandrake 9.1 uljas Linux - Hardware 1 08-04-2003 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 PM.

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