Can't install grub

hi..
i'm installing arch linux.. but when i want to install grub appears this message
Error 22: No such partition
i've try to use grub :
find /boot/grub/stage1
(hd0,5)
root (hd0,5)
setup (hd0)
but after appears:
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embeb /boot/grub/e2fs_stage1_5 (hd0)" ... 16 sectors are embedded. succeeded
Running "install /boot/grub/stage1 (hd0) (hdo)1+16 p (hd0,5)/boot/grub/stage2 /boot/grub/menu.lst" ... failed
Error 22: No such partition
Ok.. this is it... someone can help me with this?

ok.. i had install again and appears that the problem was that the disk has some free space between partition..
i have no idea if this is the motive for the impossibility tha i had to install grub...
thanks any way...
i i'm sorry for my english... is very bad

Similar Messages

  • [PARTIALLY SOLVED] Arch on MacBook4: can't install GRUB

    I've been running Arch on my MacBook4 (4 years old now) for quite some time in dualboot mode and have already set up GRUB sucessfully several times. I therefore feel kinda bad that I have to open a new thread this time, but after wasting the whole morning on Google, I don't see another solution.
    What has happened is that I had to resize my Linux partitions because there was no space left on my system partition. I have the following partitions:
    sda1 - fat32 EFI partition
    sda2 - hfs+ Mac partition
    sda3 - ext4 Arch system partition
    sda4 - ext4 Arch home partition
    As mentioned, when I first organized my Arch partitions this way, I could successfully set up GRUB, but it was GRUB1 which I had to set up via grub shell. Now, as it looks to me, GRUB1 is not available anymore but only GRUB2 which doesn't use the grub shell anymore. I've not been able to install GRUB2 the last time (that's why I ended up using GRUB1) and I'm still not able to install it this time!
    When I start the MacBook and choose the Linux partition in rEFIt, I get to a black screen displaying GRUB_ and doing nothing more (because I don't have GRUB set up). That's how far I am right now.
    Now can anyone help me with setting up GRUB(2)? Thanks in advance for any help!
    Last edited by cryptkeeper (2012-09-05 06:13:14)

    I've succeeded in working around the problem of installing GRUB2 after I found out that grub-legary is nothing else but GRUB1. So all I had to do to get back a running system was:
    - removing the GRUB2 installation
    - installing grub-legacy
    - copying my old menu.lst to /boot/grub/
    - grub shell: root (hd0,2); setup (hd0); quit
    Now it works like a charm again.
    Still I only consider this thread half solved because I still don't know how to install GRUB2 on my system. It's not of vital interest to me anymore (I don't care too much why, that is, due to which boot loader, my system boots, as long as it boots), but a solution would nonetheless be nice since this thread is opened anyway.
    So: How can GRUB2 be installed on a MacBook dualboot system with rEFIt such as mine?

  • [RAID Install] Can't install Grub - SOLVED

    Me & a friend are building a local serveur on Arch (32-bit) for ~10 PCs in our association (half of them allready having AL Wink )
    This server will basically have 2 main fonctions :
    - NFS/YP server for a few PCs we've built under Arch for young people here
    - backing up a few PCs we're using for the association.
    Machine is HP with a PIV 1.7GHz, 512Mb SDRAM for now, & a single HDD IDE controller.
    We got two UDMA 160GB HDD (Hitachi ) as we planned right from the start to improve on data security (& speed when possible).
    I've set up partition as following :
    - hda1 & hdb1, 100 Mb both, raid-1 for /boot
    - hda2 & hdb2, 2 Gb both, raid-1 for swap
    - hda3 & hdb3, 10 Gb both, raid-1 for /
    - hda4 & hdb4, 150 Gb both, raid-1 + LVM2
    Now I'm setting up Arch 0.7.2-20061104 (latest ISO from tpowa Smile ) , & everything went allright up to the point I wanna install the bootloader (might be the 10th time I set up AL this year)
    To do so I'm following "Install Grub on the Primary Hard Drive (and save the RAID config)" (wich I may edit if I succeed this raid setup) with a look on "Reinstalling GRUB" both on the wiki.
    1st I'm not 100% sure about mkinitcpio.conf config when it comes to raid; I've added 'raid' to HOOKS + a line just like on "Configuring mkinitpcio" :
    Code:
    md=2,/dev/hda3,/dev/hdb3
    Edited grub/menu.lst, installed the kernel... but I want to chroot in order to install Grub I can't mount /dev :
    Code:
    # mount -o bind   /dev      /mnt/dev
    keeps complaining about wrong fs type.
    I chrooted anyway and launched grub :
    grub> root (hd0,<TAB>
    Error 21: Selected disk does not exist
    I'm purely stuck here with no idea about what went wrong
    If someone has spare time & knowledge, it'd be very nice indeed (our schedule says we begin to play with the network services 2morrow
    EDIT : corrected the mkinitpcio.conf "md=2" line.

    About install gub, I got it thanks to warnaud :
    /dev/mdN was unexistent until I launched
    # makedevs
    Thereafter grub found the disk :
    # grub
    grub> root (hd0,0)
    grub> setup (hd0)
    grub> quit
    "save the RAID config" was allready done at this point.
    Guess I misconfigured something in mkinitcpio.conf / menu.lst, 'cause when I boot it says :
    :: Running Hook [raid]
    :: Running Hook [filesystems]
    :: Loading root filesystem module...-e
    Attempting to create root device '/dev/md2'
    ERROR: Failed to parse bloc device name for '/dev/md2'
        unknown
    ERROR: root fs cannot be detected.
    Kernel panic...
    mkinitcpio misconfiguration maybe.
    From wiki :
    First add the raid hook to the HOOKS list in /etc/mkinitcpio.conf
    OK :
    HOOKS="base udev autodetect ide raid filesystems"
    Add some Kernel Parameters is less clear, or it maybe after reading "Installing_with_Software_RAID_or_LVM" that says to list the devices in the ROOT array ?
    Kernel Parameters: Specify all your md arrays with md= parameter: (only adding the raid array you're booting from is enough)
    add the following to the kernel line in grub/menu.lst:
    Example: md=0,/dev/sda3,/dev/sda4 md=1,/dev/hda1,/dev/hdb1
    working example: kernel /vmlinuz26beyond root=/dev/md0 ro md=0,/dev/sda1,/dev/sdb1
    So should one list its / or its /boot array ?

  • Can't install grub for some unknown reason!

    I just tried to install Arch using a bootstrap on a desktop with two HDs.  I put Arch on the second part of the second HD.  That all went fine till it came to installing grub!  What an infuriating nightmare.  I've wasted about 2 1/2 hours on it and I am so angry I'm positively raging.
    I still have no idea what went wrong.  Chrooting into the install was out because the devs aren't mounted so I used a livecd to boot into the part - running grub-install /dev/hda or /dev/hdb resulted in the same errors about "the second sector of stage 2 is unknown"
    I only actually discovered there was an error cos I ran sh -x grub-install - without that this little gem:
    grep 'Error [0-9]*: ' /temp/grub-install.img.865
    It would have totally passed me by and I never would have know grub was stuck in an infinite loop!
    So, any suggestions please?
    Basically the set up is:
    /dev/hda1 - WinXp
    /dev/hdb1 - swp
    /dev/hdb2 - /
    That's it, nothing complex

    i havent had to do this but what if you booted from install cd as if to install but go directly to
    edit config files type in the info you nedd then run install grub ?  just a far fetched thought
    or boot from install cd to the root  ie vmlinuz root=/dev/discs/discX/partY  then mount /boot if its on seperate partition and any other
    partitions you may have made /tmp /usr /sbin whatever if you installed lilo run it then boot up machine then run grub-install ,but before you run lilo though check lilo.conf that it installs to /dev/hdb
    when booting up hopefully you can hit F8 or in my case hit esc then hit Ctrl  to pull up boot menu
    to tell machine where to boot to tell it whatever is /dev/hdb if you want to leave whatever boot loader is on /dev/hda alone
    chrooting can be a pain /dev/null no permissions or cant chroot no /bin/bash or whatever
    chroot is a neat tool but can be a pain at times
    also check /boot/grub/device.map heres mine
    (fd0) /dev/fd0
    (hd0) /dev/hda
    (hd1) /dev/sda
    (hd2) /dev/sdb
    (hd3) /dev/sdc
    you may be  missing something there i have had this problem of drives missing in this file

  • Can't install grub on Hardware RAID

    I am having trouble finding the Grub root device for /dev/cciss/c0d0, any help would be appreciated

    Gcool wrote:Don't necrobump old threads.
    I don't have a new problem.  I don't need a new solution.  I simply thought that a more detailed explanation in this thread would not only help me, but would make this thread more useful for the next person.  Apparently, the installation media has a problem with my RAID controller.  In my mind, that means that anyone who tries to install Arch on an HP server is going to run into this problem.  There are a lot of HP servers in the world.  When I searched for my server in the forum, I only got 3 hits.  That means anyone who has this problem will probably read this thread (1,278 views so far).  I was trying to help the next person. One definitive thread that clearly lays out a solution in the simplest possible terms seems much more likely to be helpful then a whole bunch of threads talking about the same thing.
    But ok, I'll start another. Sorry.
    Last edited by Robert Finley (2012-06-04 12:12:01)

  • I can't install grub

    Hello. I have a problem with grub...
    # grub-install /dev/hda
    The file /boot/grub/stage1 not read correctly.

    Arch Wiki: Reinstalling Grub Errors

  • Craptastic, cannot install Grub, [Updated]

    I can't remember the voodoo I had to cast last time on this machine, but there is something weird about it.  The other machine I did recently is very straightforward.  It just works.  This one I can't install grub on, and I'm thinking possibly it's partition erroring or it expects some type of special thing to be done in a special order.  I just can't remember, and I've tried searching, and as always, liberally reading the documention.
    Here's the thing:  Arch in this case is going on a SCSI hard disk, alongside an IDE hard-drive with Windows XP on it, which has four partitions.  I tried both manually and automatically partitioning the SCSI disk.  It partitions fine, I go down the list like a good little boy performing normal operations, but then when Grub install time comes, it just craps out, with "Cannot install grub..blah...blah...check /dev/ttsy5" and because I have the partitions if I make any changes to them, the partitioning program gets posessed and throws partitions all over the drive, and then I have to zero-fill it, which is a 30-min wait per pop.
    It actually took me probably weeks to figure this out last time (a year after my first attempt with arch, I got lucky and it worked).  If nothing else, I would be grateful if somebody could advise me in great detail of an alternative method to install arch, since it appears my stupidity and my system has trouble with the install disk.
    Thanks!!!!

    Seriously need some help.  First off, chroot from another Live CD doesn't work either.  Knoppix is all I tried, but I personally don't want to sit around burning disks until I find one that works.  So, I need a critique of what specifically I'm doing.
    I've established thus far, that Noodle install works.  It's also somewhat of a pain to install such old software with lit candles, a bag of wiccan-enscribed bleached chicken bones, and a satanic pentagram just to play standards crossover with.  And I mean that in fun.  But I don't really want to do it, because it's both hard at first, but the "easy" way out.
    Where I want my drives=
    SCSI: Arch Linux.  Specifically proper udev root=sda1, swap=sda5, that's all there is to it.  I don't know why swap wants to be sda5, but I am unable to change that.
    IDE: Windows.  It has four partitions C:Windows Root, F:Swap, G:Storage, E:Storage
    What I have established as well, though is previously not divulged:
    From within Wombat's install shell
    $mount /dev/discs/disc1/part1 /mnt
    $mount -t devfs none /mnt/dev
    $mount -t proc none /mnt/proc
    $chroot /mnt /bin/bash
    $install-grub /dev/discs/disc0/disc /dev/discs/disc1/part1
    $exit
    ^^^Seems to install, but I don't know if it will boot becuase I had Noodle's kernel installed at the time.  So I think that's why it wouldn't boot.
    From within both Noodle and Knoppix shells
    $mount /dev/sda1 /mnt
    $mount -o bind /dev /mnt/dev
    $mount -t proc none /mnt/proc
    $mount -t sysfs none /mnt/sys
    $chroot /mnt /bin/bash
    $install-grub /dev/hda /dev/sda1
    error
    When I could get a file to write?...ha, ha.
    Gonna try to remember the menu.lst file:
    title Arch Linux
    root (hd1,0)
    kernel /boot/vmlinuz26 root=/dev/sda1 ro
    initrd /boot/initrd26.img
    And I have tried variations such as this:
    title Arch Linux
    root (hd0,0)<---this is wrong according to boot errors
    kernel /boot/vmlinuz26 root=/dev/hdb1 ro
    initrd /initrd26.img #initrd /initrd26-full.img #initrd /boot/initrd-full.img
    Ha, ha.  Yeah, I think I found out that using another's install disk for the other's kernel doesn't really work, probably if they are very different kernels.  But I am still stuck on this.
    [/b]

  • Can't seem to install GRUB (Triple boot OSX + WIN7 + Arch.)

    Alright I've partitioned my drive into 3 using disk util sda1 default mac boot or whatever, sda2 main OSX, sda3 arch, sda4 win7.
    I've installed win 7 already, and attempted to install arch... I think I've done it, but all the tutorials said to skip installing the boot loader and install it manually from the live cd.
    So basically I booted the live cd again, and did this:
    grub-install /dev/sda3
    but I get this:
    /dev/mapper/../dm-0 does not have any corresponding BIOS drive
    However, my compter works , and rEFIt detects OSX and Win7...
    I really want to be able to use Arch, I'd appreciate it greatly if anyone can help me to get grub to work/or ger Arch to somehow boot alongside the other 2 OSes.\
    PS. My computer is a MacBook Pro 15" i7 from late 2011.
    Thanks!!
    EDIT: Could it be because sda3 is ext4?
    Last edited by SkullTraill (2012-04-10 00:17:56)

    Self Solved:
    Do not reboot after install, install grub directly after exiting arch installation.

  • Cannot install GRUB.

    "parted" shows my partition table as follows:
    Number Start End Size Type File system Flags
    1 1049kB 106MB 105MB primary ntfs boot
    2 106MB 64.9GB 64.8GB primary ntfs
    4 64.9GB 456GB 391GB extended lba
    8 64.9GB 96.3GB 31.4GB logical ext4
    9 96.3GB 101GB 4277MB logical linux-swap(v1)
    7 101GB 105GB 4273MB logical linux-swap(v1)
    5 105GB 327GB 222GB logical ntfs
    6 327GB 456GB 129GB logical ntfs
    3 456GB 500GB 44.4GB primary ext4
    While fdisk shows my partition table as follows:
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
    /dev/sda2 206848 126852290 63322721+ 7 HPFS/NTFS/exFAT
    /dev/sda3 890126748 976772663 43322958 7 HPFS/NTFS/exFAT
    /dev/sda4 126853118 890123492 381635187+ f W95 Ext'd (LBA)
    /dev/sda5 204812685 638648009 216917662+ 7 HPFS/NTFS/exFAT
    /dev/sda6 638648073 890123492 125737710 7 HPFS/NTFS/exFAT
    /dev/sda7 196450304 204795903 4172800 82 Linux swap / Solaris
    /dev/sda8 126853120 188086271 30616576 83 Linux
    /dev/sda9 188088320 196442111 4176896 82 Linux swap / Solaris
    Partition table entries are not in disk order
    I have two linux partition installed at
    /dev/sda3 -> Arch Liuxx
    /dev/sda8 -> Ubuntu.
    GRUB is installed at ubuntu (version 2 grub).
    - First of all, why is fdisk not able to detect a ext4 partition. It only shows one partition as Linux ie /dev/sda8.
    - When I try to install grub by booting to live CD and I type $root (hd0,3), it shows unknown partition 0xf. Even if I use tabs to do autocomplete, I get this
    grub> root (hd0,
    Possible partitions are:
    Partition num: 0, Filesystem type unknown, partition type 0x7
    Partition num: 1, Filesystem type unknown, partition type 0x7
    Partition num: 2, Filesystem type unknown, partition type 0x7
    Partition num: 4, Filesystem type unknown, partition type 0x7
    Partition num: 5, Filesystem type unknown, partition type 0x7
    Partition num: 6, Filesystem type unknown, partition type 0x82
    Partition num: 7, Filesystem type is ext2fs, partition type 0x83
    Partition num: 8, Filesystem type unknown, partition type 0x82
    grub> root (hd0,
    God  knows why it shows partition number 7 as ext2fs. I cannot choose either 8 or 3 partition
    grub> root (hd0,3)
    Filesystem type unknown, partition type 0xf
    grub> root (hd0,8)
    Filesystem type unknown, partition type 0x82
    Also, I need to install grub on /dev/sda3 (my arch linux partition) which is currently on UBUNTU's partition so its also not able to find any boot files if I try to mount arch partition and do $root-install --root-directory=/mnt/myarchmounted --recheck /dev/sda.
    So, how should I proceed?
    TL/DR: I want a way to
    - Format ubuntu partition and remove it completely (including its own grub)
    - Install GRUB on Arch's partition, so that I can boot it after ubuntu's partition is removed.

    shadyabhi wrote:
    "parted" shows my partition table as follows:
    Number Start End Size Type File system Flags
    1 1049kB 106MB 105MB primary ntfs boot
    2 106MB 64.9GB 64.8GB primary ntfs
    4 64.9GB 456GB 391GB extended lba
    8 64.9GB 96.3GB 31.4GB logical ext4
    9 96.3GB 101GB 4277MB logical linux-swap(v1)
    7 101GB 105GB 4273MB logical linux-swap(v1)
    5 105GB 327GB 222GB logical ntfs
    6 327GB 456GB 129GB logical ntfs
    3 456GB 500GB 44.4GB primary ext4
    While fdisk shows my partition table as follows:
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
    /dev/sda2 206848 126852290 63322721+ 7 HPFS/NTFS/exFAT
    /dev/sda3 890126748 976772663 43322958 7 HPFS/NTFS/exFAT
    /dev/sda4 126853118 890123492 381635187+ f W95 Ext'd (LBA)
    /dev/sda5 204812685 638648009 216917662+ 7 HPFS/NTFS/exFAT
    /dev/sda6 638648073 890123492 125737710 7 HPFS/NTFS/exFAT
    /dev/sda7 196450304 204795903 4172800 82 Linux swap / Solaris
    /dev/sda8 126853120 188086271 30616576 83 Linux
    /dev/sda9 188088320 196442111 4176896 82 Linux swap / Solaris
    Partition table entries are not in disk order
    I have two linux partition installed at
    /dev/sda3 -> Arch Liuxx
    /dev/sda8 -> Ubuntu.
    GRUB is installed at ubuntu (version 2 grub).
    - First of all, why is fdisk not able to detect a ext4 partition. It only shows one partition as Linux ie /dev/sda8.
    Type code of /dev/sda3 is wrong, it should be 0x83, not 0x07 (type code for FAT/NTFS partitions)
    - When I try to install grub by booting to live CD and I type $root (hd0,3), it shows unknown partition 0xf. Even if I use tabs to do autocomplete, I get this
    grub legacy numbers partitions from 0 , wherein (hd0,3) corresponds to /dev/sda4 (the extended partition in your disk). IN your case you should try (hd0,2) for /dev/sda3 (after changing the part type code to 0x83)
    God  knows why it shows partition number 7 as ext2fs. I cannot choose either 8 or 3 partition
    grub> root (hd0,3)
    Filesystem type unknown, partition type 0xf
    grub> root (hd0,8)
    Filesystem type unknown, partition type 0x82
    (hd0,7) == /dev/sda8 == ext4
    (hd0,3) == /dev/sda4 == extended part
    (hd0,8) == /dev/sda9 == linux swap
    Also, I need to install grub on /dev/sda3 (my arch linux partition) which is currently on UBUNTU's partition so its also not able to find any boot files if I try to mount arch partition and do $root-install --root-directory=/mnt/myarchmounted --recheck /dev/sda.
    So, how should I proceed?
    TL/DR: I want a way to
    - Format ubuntu partition and remove it completely (including its own grub)
    - Install GRUB on Arch's partition, so that I can boot it after ubuntu's partition is removed.
    Your question is not clear. But you can boot into Arch, install its grub2 package (recommended over grub legacy), install grub2 to /boot in Arch, and finally format ubuntu completely. Follow the Archwiki GRUB2 page. It explains everything.

  • Can i install linux on a external HD

    i have the 2012 MBP (not retina)
    & an WD 1To External hard drive
    can i install ubuntu-like linux distribution on it ?

    what about the boot (i mean if the DH mounted i get the grub but if not it open the OS X ? )
    @etresoft thx but as @edex67 just said
    1/ there is same softwares that dont work on mac
    2/ wine is much better on linux
    3/ i prefere using wine+linux than windows+ parallels (let's face it : only 4Go RAM )

  • Problems with partitioning and install Grub. Fresh install

    All,
    First post here. I appreciate any help you can offer.
    I am having some problems when installing Arch Linux.
    I am installing Arch on a brand new (3 days old) Toshiba SatelliteC655D-S5300 Laptop.
    Hot sheet can be found at http://cdgenp01.csd.toshiba.com/content … -S5300.pdf.
    I was initially installing from 2011.08.19 x86_64 Core CD but someone suggested using the latest version.
    Now I am installing from 2011.11.13 x86_64 CD burned at 4x (the slowest my burner can go).
    I am able to complete all steps up to installing GRUB, but it fails to install.
    During partitioning I receive a few errors and I believe this is contributing to the issue.
    At first I tried automatic partitioning with 100mb boot, 1024mb swap, 10,000mb / and the rest of 320g for /home. Each partition is ext3 except /boot which is ext2.
    During the automatic partitioning an error briefly occured: /usr/lib/aif/core/libs/lib-blockdevices-filesystems.sh: line 355: !((partition_flag)): command not found.
    After speaking with a friend they suggested manually partitioning and using UUIDs instead.
    1) So far I have removed all partitions, rebooted.
    2) Partitioned using cFdisk. Bootable 100mb parition, 1024mb swap, 15,000mb primary (/), 3000mb logical (/var), and the rest 300949mb logical (/home).
    3) Once I write the changes and quit I reboot.
    4)I go back into the installer and complete steps 1-3.
    5) Go to step 4 and and then manually configure block devices, file systems, or mount points.
    6) I choose the option for uuid and hit ok.
    At this point 3 error messages appear at the bottom:
    /usr/lib/aif/core/libs/lib-ui-interactive.sh: line 602: local: 'part,' : not a valid identifier
    /usr/lib/aif/core/libs/lib-ui-interactive.sh: line 602: local: 'type,' : not a valid identifier
    /usr/lib/aif/core/libs/lib-ui-interactive.sh: line 602: local: 'label,' : not a valid identifier
    (Screenshot: http://i.imgur.com/OHRKo.jpg)
    7) Next it prompts me to add the mount points for each partition set.
    8) Select the partition, the mount point, it asks me for label and any additional opts for mkfs.ext3.
    9) I leave the label and opts field blank. After selecting ok to the opts field I get the same 3 errors as above:
    /usr/lib/aif/core/libs/lib-ui-interactive.sh: line 602: local: 'part,' : not a valid identifier
    /usr/lib/aif/core/libs/lib-ui-interactive.sh: line 602: local: 'type,' : not a valid identifier
    /usr/lib/aif/core/libs/lib-ui-interactive.sh: line 602: local: 'label,' : not a valid identifier
    (Screenshot: http://i.imgur.com/QqkSP.jpg)
    I am able to successfully set a mount point and format each partition. But I receive the same set of 3 errors occur for each partition.
    10) Once I complete the formatting I proceed to step 8, install bootloader.
    It says Generating Grub device map.. This could take a while. Please be patient.
    I receivieve the following error on this screen: /usr/lib/aif/core/libs/lib-blockdevices-filesystems.sh: line 355: !((partition_flag)): command not found.
    (Screenshot: http://i.imgur.com/B5j4K.jpg)
    11) After the error displays it goes to the next screen, before installing grub you must review config file. etc.
    12) I hit ok and then :q the config file. Is there a critical change in the config file that I'm missing?
    13) After closing the file I select which the boot device where the GRUB bootloader will be installed. My only option is /dev/sda. I hit ok
    Then I get the following 2 errors:
    /usr/lib/aif/core/libs/lib-blockdevices-filesystems.sh: line 355: !((partition_flag)): command not found
    /usr/lib/aif/core/libs/lib-blockdevices-filesystems.sh: line 355: !((partition_flag)): command not found
    (Screenshot: http://i.imgur.com/ol840.jpg)
    13) Error installing GRUB. See /dev/tty7 for output. Ok
    14) GRUB was NOT successfully installed. Ok
    I checked out TTY7.
    It shows the installer issuing the following commands in GRUB.
    1) device (hd0,) /dev/sda
         Error 12: Invalid device requested
    2) root (hd0,0)
         Filesystem type is extf2, partition type 0x83
    3) setup (hd0,)
    Checking if "/boot/grub/stage1" exists... no
    Checking if "/grub/stage1" exists... yes
    Checking if "/grub/stage2" exists... yes
    Checking if "/grub/e2fs_stage1_5" exists... yes
    Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
    Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
    Running "install /grub/stage1 (hd0,0) /grub/stage2 p /grub/menu.lst "... succeeded
    Done.
    4) quit
    I have tried rebooting from here and using the Arch CD to boot into the existing OS but it does not work.
    I tried grub-install /dev/sda
    I get Probing devices to check BIOS drives. This may take a long time.
    /dev/mapper../dm-0 does not have any corresponding BIOS drive.
    I have tried going into grub and issuing the same commands the install script did.
    Same errors.
    I'm afraid I don't have network access at the moment so I can't get a successful /arc/report-issues to run.
    I hope I've included enough information to start the troubleshooting.
    Let me know if I've missed anything!
    Thanks in advance,
    -Jason
    Last edited by username17 (2011-11-17 22:37:56)

    username17 wrote:I get Probing devices to check BIOS drives. This may take a long time.
    /dev/mapper../dm-0 does not have any corresponding BIOS drive.
    Your drive does not have an MBR to install grub to as it is a GPT disk - which is also not supported under the old GRUB.
    You need to create a small partition at the very beginning of the drive (8MB is plenty) and set the "bios_grub" flag. ie the "BIOS drive" your error refers to.
    You will then need to install the grub2-bios package following the chroot instructions on the grub2 wiki page here: https://wiki.archlinux.org/index.php/GRUB2#Installation
    ** Please note that I found the chroot mounts to be outdated - replace "/tmp/install" with "/mnt" **
    Your alternative solution is to boot a gparted liveCD and prepare your disk as MBR - this will (most likely) destroy all existing data on the disk.

  • [SOLVED]Unable to install grub "couldn't find /mnt/boot/grub/menu.lst"

    Ok so I was trying to install windows after I had arch installed, used an ubuntu cd to use gparted to create a partition, tried to go to the windows installation but it would endlessly send me back to restart the installation even after succesfully writting all files...
    So now I decided to not install it, went back into ubuntu/gparted, deleted the partition and rejoined the space with my main arch partition and then selected the "boot" flag to boot...
    Cannot boot, grub its still on /boot/ but the MBR its obviously tempered with by windows ( which coincidentally couldn't even find itself after writing mbr to its liking....*sigh* ).
    So I try to use my arch install cd to reinstall grub but i get this:
    "couldn't find /mnt/boot/grub/menu.lst is grub installed?"
    I tried to use the select packages thing to make sure the cd is mounted and mounts fine but it keeps getting me that error message. I managed to boot to my system just fine with arch root=/dev/sda1 but obviosly the kernell does not has my nvidia module which means I can't get into x which means i am using links and since my grub is not loaded i can't even get framebuffer so this is rather inconvenient.
    Im sure im missing a very simple and stupid thing but im so annoyed my brain must be saying "ok im done somebody else figure it out". I still have a backup copy of my grub menu.lst I made before. Do I just delete /bood/grub/ and try again? Am I missing something on the install procedure to be able to rewrite grub? Can I just do it from the command line or with pacman? Any help appreciate it thanks.
    Last edited by Misanthrope (2008-06-01 17:22:32)

    If you can get into your arch and cli then you should just be able to reinstall grub with
    install-grub /dev/sda
    or reinstall grub with
    pacman -S grub
    if the package is messed up or missing.

  • Dual booting win 7 and arch: cannot install grub to partition

    I have read the arch wiki page on dual booting and several other sources on line, but I am still struggling to get this to work.
    I am trying to dual boot arch and windows 7 on my lenovo ideapad s205. the machine comes with windows 7 pre-installed.
    I shrank the win 7 partition and added an extended partition with 3 logical partions for /boot, swap, and /.
    I am able to install and run arch by installing grub to the mbr. when I do this, though, I cannot boot windows. (the windows section of grub menu.lst is uncommented and points toward hda0,0. I have tried hda 0,1 as well).
    I have also tried to use the windows boot loader to load arch, as described in the arch wiki page on dual booting. The problem here is that, taking this approach, I should install grub to my /boot partition, but when I try to do this, the installer only allows me to install grub to sda or sdb (the usb stick).
    I have read that grub should be able to boot linux from a logical partition. Is this so?
    Is there something wrong with the arch installer that it is not giving me the option of installing to a partition rather than the mbr, or is this  a problem with my partition scheme, or something else?
    I am tempted to remove lenovo's recovery system, but on the other hand, I have already needed to use it several times while monkeying around with installing arch.
    Thanks for any help.
    UPDATE:
    I now have the laptop dual-booting win 7 and arch. My solution ( adapted from here: http://helms-deep.cable.nu/~rwh/blog/?p=177) was to:
    1. installed arch on the partitions I had created for it, but skipped the "install bootloader" stage.
    2. in win 7, I downloaded and installed EasyBCD and made an entry for arch in it. I checked the option to "Use EasyBCD's copy of GRUB"
    3. When I restarted, I got a grub error because the entry in grub's menu.lst was pointing at the wrong partitions for the kernel and root.
    4. So I went back into the arch live disk, mounted the boot partition and edited menu.lst.
    Now when I start the laptop, the windows boot loader starts and I can choose between win  7 and arch. when I select arch, grub4dos starts and gives me the option to start arch. this is not particularly elegant (nor is it fast), so I think this solution is less than ideal, but it does work.
    I'd be interestd in any thoughts about what went wrong and what a better solution would be.
    thanks.
    Last edited by ratchet (2011-10-10 19:09:16)

    ratchet wrote:II am able to install and run arch by installing grub to the mbr. when I do this, though, I cannot boot windows. (the windows section of grub menu.lst is uncommented and points toward hda0,0. I have tried hda 0,1 as well).
    Is this a typo in your post or how it was in menu.lst? Surely it should be hd0,0 and not hda0,0? The entry I have in my menu.lst is as follows:
    # (2) Windows
    title Windows
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    What was yours?
    Last edited by JHeaton (2011-10-10 20:18:22)

  • [SOLVED] Chromebook: help partitioning /dev/sda7 to install GRUB

    My goal is to dual boot Arch and Chrome OS on an Acer C720. I repartitioned the drive using the Chrubuntu script. Following the Wiki, I created the file system for Arch on /dev/sda7.
    The next step in the Wiki reads
    Following the instructions for installing GRUB on GPT, use gdisk to create a 1007kb partition and set the type to EF02.
    I don't understand what to do. Do I really make another partition on sda? I've read that if you change the partitioning, it will not boot into Chrome OS.
    Can someone please help me understand how to create the 1007kb partition for GRUB? Thanks!!
    Last edited by Watney (2015-05-10 00:32:05)

    There aren't details of what you've done, think of what we can comment here.
    What says
    # parted -l /dev/sdX ### could be /dev/sda
    Or even better what's your actual partitioning  scheme and how the partitions are laid out.
    The note is clear (for me) and the link in it will show more details. The real point is to have the Post-MBR gap where GRUB will use to write its files.
    If you don't have that  Post-MBR gap then you need to shrink the first partition from the beginning to leave that Mb gap.

  • Can't install grub2 with presence of ufs2 partitions [Solved]

    I'm trying FreeBSD in lieu of OpenBSD.  OpenBSD works fine on MBR, but FreeBSD is picky and generally wants GPT.  Was able to get FreeBSD working as long as it's protective MBR is used.  Then when I want back into Arch, I have to put syslinux gptmbr.bin back into the MBR, but FreeBSD doesn't like the dd method.  FreeBSD protects the MBR from being overwritten.  This is GPT/BIOS not GPT/UEFI.  The GPT conversion went without a hitch just fine.  I can't even emulate Arch inside FreeBSD because of the MBR bootcode.  I can however emulate FreeBSD inside Arch and even mount read-only the ufs2 partition with the following sequence:
    mount -t ufs -o ufstype=ufs2 -o ro /dev/sdaxx /mnt
    When I do grub-install /dev/sda from Arch I get the following message:
    Installing for i386-pc platform.
    grub-install: error: hostdisk//dev/sda appears to contain a ufs2 filesystem which isn't known to reserve space for DOS-style boot. Installing GRUB there could result in FILESYSTEM DESTRUCTION if valuable data is overwritten by grub-setup (--skip-fs-probe disables this check, use at your own risk).
    Then when I do grub-install /dev/sda --skip-fs-probe I get:
    Installing for i386-pc platform.
    grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
    grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
    grub-install: error: will not proceed with blocklists.
    Booting from freebsd-boot reboots the computer and trying to boot from freebsd-ufs just sits there.  I also think it sort of hard on the MBR to rewrite it each time I need to switch back and forth.  I am currently using syslinux which is fine for linux (linux didn't even notice the difference between MBR and GPT), but nothing I put in syslinux.cfg will boot FreeBSD.  FreeBSD doesn't like my wifi card (b43), but OpenBSD uses it until performance degrades to nothing. 
    Adding a line to my grub.cfg for FreeBSD would be like this:
    menuentry "FreeBSD" {
    set root="(hd0,msdos1,bsd1)"
    kfreebsd /boot/loader
    I don't have that line in there yet, but I doubt it would take it.
    Even setting aside a BIOS boot partition (ef02) or extlinux doesn't even get noticed by grub.
    Last edited by nomorewindows (2014-01-21 18:31:45)

    I dd'd FreeBSD's protective MBR, and saved into a file.  I ran qemu -kernel memdisk -initrd freebsd.mbr /dev/sda and it booted.  So then how do I get it into syslinux?  I already had a chainload from OpenBSD, so I modified it slightly to use the FreeBSD's MBR from the file.
    LABEL FreeBSD
    MENU LABEL FreeBSD
    COM32 chain.c32
    APPEND file=../freebsd.mbr
    Marking this as a new workaround to GPT/BIOS/FreeBSD with syslinux.

Maybe you are looking for