Find the answer to your Linux question:
Results 1 to 5 of 5
hello, I created an ext2 partition with linux just to install grub files and kernel but unfortunately I can not patch the hard disk with grub. 'root' command work perfectly: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    5

    GRUB 0.97 -- how to make good ext2 partition


    hello,

    I created an ext2 partition with linux just to install grub files and kernel but unfortunately I can not patch the hard disk with grub.

    'root' command work perfectly: root (hd0,0)
    But 'setup' command failed: setup (hd0)
    'find' command failed: find /boot/grub/stage1

    All structures and files are right. The problem comes from how I made the partition. Linux can see the partition, all seems work fine but grub can not see it.
    Could someone tell me what was wrong when I make my partition under linux ?
    Did I forget something ?

    When I use Partition Magic to build and ext2 partition, then grub works fine.
    It is very curious, why a third partition tool works well than those provided by linux. I dont want to use Partition Magic for long time because it will not longer be available it was just for testing.

    After making the partition Linux 0x83, I made the file system:

    mke2fs -t ext2 /dev/hda1

    I tried old and the newest Slackware distribution but no change.

    Thanks.
    (sorry for the bad english)

  2. #2
    pdk
    pdk is offline
    Just Joined!
    Join Date
    Aug 2008
    Posts
    7

    Grub problem

    Did you mount the disk before you ran grub ??
    Peter

  3. #3
    Linux Newbie unlimitedscolobb's Avatar
    Join Date
    Jan 2008
    Posts
    120
    Quote Originally Posted by intmail View Post
    I created an ext2 partition with linux just to install grub files and kernel but unfortunately I can not patch the hard disk with grub.
    Could you please provide the exact command you are using to install GRUB on your hard disk?

    You may find this useful: Grub setup problem (/boot/grub/stage1 not found)

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jan 2009
    Posts
    5
    > pdk

    No I didnt

    >unlimitedscolobb

    I wrote:

    'root' command work perfectly: root (hd0,0)
    But 'setup' command failed: setup (hd0)
    'find' command failed: find /boot/grub/stage1


    /boot contains kernels, System.map
    /boot/grub contains all grub images (menu.lst, stage1, stage2, ...)

    I think the problem comes from the method of formating the partition.
    Last time I created the partition from fdisk provided by linux BUT BUT format was made using Partition Magic. This time I did not use mke2fs. After that, all works fine !!
    Partition is good but something goes wrong with linux when creating the ext2 filesystem with mke2fs.
    If sone can give me the right paramaters for mke2fs.

  6. #5
    Just Joined! eTech97's Avatar
    Join Date
    Jul 2008
    Location
    Winnipeg, Canada
    Posts
    58
    I suggest that you download and use Parted Magic to install Grub......it is much easier. It also has GParted on it which you can use to create linux partitions graphically.

    You can get it from here

    Cheers!
    etech97

Posting Permissions

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