Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
  1. #1
    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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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 is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    30
    thanks.. it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...