Find the answer to your Linux question:
Results 1 to 4 of 4
I have a different partition for each of the following folders: / /boot /home /tmp /data I have been having trouble getting Grub to load the system correctly. Could someone ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    11

    Grub and Partition for /boot


    I have a different partition for each of the following folders: / /boot /home /tmp /data

    I have been having trouble getting Grub to load the system correctly. Could someone show me their: fstab, grub menu.lst, and the results of fstab -l

    And anything that would be helpful

  2. #2
    Just Joined!
    Join Date
    May 2008
    Posts
    55
    either do a grub install by setup command by after going in to command prompt of grub.
    pr
    run grub-install script....
    in both case you need to have stage1 and stage 2 file in /boot/grub folder..

    your menu.lst contain compiled kernel imgae paths and boot parameters.

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    11
    run grub-install script....
    in both case you need to have stage1 and stage 2 file in /boot/grub folder..
    I have done that

    I have a partition for / (hda2) and another for /boot (hda3) should I put the /boot as my grub root or / as grub root.

    Keep in mind that grub (to my knowledge) doesn't recognize sdXX format, but archlinux uses that format (sdXX) for all drives. Either that or because my drive (in other linux) was and hdXX drive.

    Again it would be really nice for someone to provide an example

    or fill this template
    Code:
    title ArchLinux
    	root (???, ?)
    	kernel ______________ ro root=/dev/????
    	initrd _______________
    I have read and found that my /boot/kernel26.img is the initrd
    And /boot/vmlinuz is the kernel

    Thank You

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,045
    Example my grub entry for Arch ...
    Code:
    # (0) Arch Linux
    title  Arch Linux
    root   (hd0,11)
    kernel /boot/vmlinuz26 root=/dev/sda12 ro
    initrd /boot/kernel26.img
    In this instance I don't have a separate boot partition.

    I think if you have root on sda2 and boot on sda3 then you should have something like ...
    Code:
    # (0) Arch Linux
    title  Arch Linux
    root   (hd0,2)
    kernel /boot/vmlinuz26 root=/dev/sda2 ro
    initrd /boot/kernel26.img
    Unless you have a symlink in your boot partition then you may need to modify the entry to
    Code:
    # (0) Arch Linux
    title  Arch Linux
    root   (hd0,2)
    kernel /vmlinuz26 root=/dev/sda2 ro
    initrd /boot/kernel26.img

Posting Permissions

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