[SOLVED]SYSLINUX - dual bot arch and gento - fail

Hi
I am experimenting with gentoo (well not just yet and i can not boot the gentoo kernel. Gentoo is on partition /dev/sda6 and doesn't have a boot flag. Partitinon /dev/sda1 has a boot flag. I don't have a separate boot partition. Gentoo kernel was compiled with genkernel. When i choose gentoo from syslinux menu nothing happens. Menu just refreshes. If i press ESC and write down gentoo then it complains about not finding image ...
I didn't install syslinux on gentoo.
Here is my syslinux.cfg:
LABEL arch
MENU LABEL Arch Linux
LINUX ../vmlinuz-linux
APPEND root=UUID=9f8eadcf-69e5-4786-869c-94cafcfff567 ro
INITRD ../initramfs-linux.img
LABEL gentoo
MENU LABEL gentoo
LINUX /boot/kernel-genkernel-x86-3.8.13-gentoo
APPEND root=UUID=9ea3ac89-3b72-458a-95fc-61095ea52cc4 ro
INITRD /boot/initramfs-genkernel-x86-3.8.13-gentoo
I have also followed arch wiki about chainloading and this is my syslinux.cfg from gentoo partition:
timeout 10
ui menu.c32
label gentoo
linux /boot/kernel-genkernel-x86-3.8.13-gentoo
initrd /boot/initramfs-genkernel-x86-3.8.13-gentoo
append root=UUID=9ea3ac89-3b72-458a-95fc-61095ea52cc4 ro quiet
label MAIN
com32 chain.c32
append hd0 0
EDIT:
SOLVED by this config changes:
syslinux.cfg on /dev/sda1 (arch)
LABEL gentoo
MENU LABEL gentoo
COM32 chain.c32
APPEND hd0 6
syslinux.cfg on /dev/sda6 (gentoo):
TIMEOUT 10
UI menu.c32
LABEL gentoo
MENU LABEL gentoo
LINUX /boot/kernel-genkernel-x86-3.8.13-gentoo
INITRD /boot/initramfs-genkernel-x86-3.8.13-gentoo
APPEND root=UUID=9ea3ac89-3b72-458a-95fc-61095ea52cc4 ro quiet
LABEL MAIN
COM32 chain.c32
APPEND hd0 0
Any ideas?
Last edited by Shark (2013-06-16 19:37:45)

Sorry, I actually just fixed it on my own, it turns out my BIOS settings were a bit... weird. For some reason I didn't have my windows drive listed and it tried to boot a USB drive I had plugged into my computer. I just had to fix the drive order and it worked fine. Sorry about starting a fairly useless discussion.

Similar Messages

  • [Success] Dual Booting Arch and Windows 7 [Advice / Confirmation]

    So I have been trying to get Starcraft II to work with wine and no luck.
    I have decided to install windows back on my computer, besides it might come in handy since I'm heading back to school soon.
    Anyways I have tried dual booting arch and windows in the past, and my results have never been stable.
    Today I will try using the program gparted.
    Let me give you my thoughts on how I plan to go through this and please give me some advice so I don't loose everything I have worked for on my linux box
    1.Currently I have two hard drives, one for all my main programs and one for my media files (mounting usb, dvd, etc, and it actually has no files in it xD).
       I plan to use gparted to re-size my second harddrive (media drive), create an extended partition, and a logical ntfs partition within it.
    2.I pop in my windows cd that I recieved with my laptop and install it on the space I have partitioned for windows.
    3. If my grub gets wiped out my windows (which I hope it doesn't not sure how the MBR stuff works) I insert a Ubuntu live cd and do
    sudo grub
    > root (hd0,0)
    > setup (hd0)
    > exit
    4.Configure grub to boot windows 7.
    5.Be happy with no headache.
    SO....
    If someone with past experience with dual booting windows and arch could please give me some advice, as I do not want to lose all my data, start over, and have another headache.
    I know I must learn to backup arch, which I will before september.
    But if anyone has any protips, or sees a flaw in my plan please point it out!!!
    Thank you very much for taking the time to read this and even more if advice has been given to boost my confidence!
    For now I will wait
    Thank you fellow archies.
    Last edited by Jabrick (2011-07-03 01:29:36)

    satanselbow wrote:
    1) Windows must be installed to a primary partition - attempting to install it to an logical partition will result in an epic fail
    2) Physically disconnect the harddrive you do not want windows on as windows typically installs the bootloader on the 1st hardisk (ie /sda) regardless of installation drive (ie /sdb)
    3 / 4) Complete the windows installation then reattached your Arch drive and edit /boot/grub/menu.lst (as root) pointing the W7 entry to (hd1,0) - no need to reinstall grub
    5) Hey it's windows - anything could happen
    If you create an NTFS partition right at the beginning of the the drive before you start the W7 install you can prevent it greedily using up 2 of you 4 primary partitions - I would also completely update you new W7 installation past SP1 before reattaching the other drive to further prevent W7 going mental
    satanselbow thank you so much!
    Everything works great I had no stumbles, and I hope no problems in the future!!
    I will post exactly what I did in case someone has the same issue.
    1. Partition you're secondary harddrive as primary ntfs with gparted
    2. Reboot, and if you get a file system check error, check you're udev rules. (For my case in particular I had to change the udev rules I got for auto mounting usb, ext harddrive, etc.
    3.Power off your computer and physically remove the harddrive that contains all your linux goodies
    4. Plug in your windows cd and install in the partition you created
    5. Update your windows OS
    6. Plug in Ubuntu live CD and reboot
    7. Use commands to get grub to overwrite the windows boot loader (In my case I put grub everyone hd0,0 hd0,1 just to be sure, but you might want to do things cleaner)
    8. Reboot and see if grub loads up
    9. Use Ubuntu live CD again and launch Gparted, select the boot to your extra linux space (if you had one, not sure if this is needed)
    10. Plug in your linux harddrive and reconfigure /boot/grub/menu.lst and your good to go
    Once again shout outs to satanselbow!!! For without him I might've failed brutally!
    Cheers!

  • Dual booting Arch and Ubuntu

    Hi, I would like to dual boot Arch and Ubuntu using GRUB2.
    I already have Arch, set up as it's described in the Beginner's Guide, with GRUB2 installed. How would I go about dual booting Ubuntu, preferably without overwriting the existing bootloader?
    I haven't tried anything yet, but the problem that I can see is resizing my /home; is this possible on the Ubuntu liveDVD? If not, would I be able to resize /home with my gParted liveCD?
    Unfortunately, I have no backup media to use, so I wouldn't be able to transfer anything away as a backup.
    Here is my partition table:
    %lsblk
    NAME   MAJ:MIN RM   SIZE       RO TYPE      MOUNTPOINT
    sda      8:0       0        931.5G   0    disk
    ├─sda1   8:1    0        30G        0    part       /
    ├─sda2   8:2    0        12G        0    part       [SWAP]
    ├─sda3   8:3    0        5M          0    part
    └─sda4   8:4    0        889.5G   0    part       /home
    sda1 is my root partition, sda2 is swap, sda3 is GRUB's boot partition, which I was told that I needed in the guide, and sda4 (/home) occupies the "rest of the disk".
    I am using a GPT-partitioned drive, as I read this has many advantages and I do not plan to triple-boot Windows.
    So, can someone tell me what I do if I want to dual boot Ubuntu? I'm very sorry if this should have been posted on the Ubuntu forums, but I'm just more familiar with Arch, and I already have it installed. Please ask if you need any other files like my fstab. I have my Ubuntu liveDVD, GParted live CD (and Arch CD) at hand.
    Thanks in advance, rberyl.
    (Also, does anyone else think it's a bit of a backwards thing to put the output of "date -u +%W$(uname)|sha256sum|sed 's/\W//g'" as a sign-up question? )
    Last edited by rberyl (2012-12-29 11:45:23)

    Hi rberyl,
    You can change your partitions using an inbuilt tool like cfdisk, or if you'd prefer a GUI gparted can be installed from the Arch repos. This will allow you to shrink sda4, and set up the new partitions for your Ubuntu OS. Although this shouldn't cause any data loss, its best practice to back up just in case.
    When installing Ubuntu, be sure to opt-out of bootloader creation. I think you have to use the alternate installation media to get this option. You can add your Ubuntu partition to the existing bootloader by running osprober (available from the repos) and then running grub-mkconfig -o /boot/grub/grub.cfg . Alternatively, you can manually edit your GRUB config. See https://wiki.archlinux.org/index.php/GR … NU.2FLinux for instructions.
    Good luck!
    Last edited by smazza (2012-12-29 16:04:08)

  • [Solved]Dual booting Arch and Fedora

    i was hoping to partition like this:
    /boot (same for both)
    /root (arch)
    /swap (same for both)
    /root (fedora)
    /home (same for both)
    this doing is according to: bbs.archlinux.org/viewtopic.php?id=97121
    as both are using grub2, i don't think having same /boot would coz any trouble
    and about /home, having uid and gid 500 for both arch and fedora would not cause any trouble,eh?
    how do i change uid and gid from 100 to 500 on first boot in arch?
    thnz in advnc 
    Last edited by eric17 (2012-05-25 18:25:04)

    eric17 wrote:guys!..ran into a new one
    now that, i have gpt table(want to try it for the first time), so bootloader doesn't install in MBR, so how to install it on /dev/sda1(no seperate for boot)?
    there is no method to change the location from sda to sda1(as installer discourages it)
    if it is so important to have it in MBR, then how do I force it while 'Install bootloader'?
    first i created bios_grub(1mb) on /sda1 through fedora installation(as without it, after installing arch, fedora was showing error that there is no boot storage device 1 or somethin like that)
    then, through Gparted:
    /root /sda2   fedora
    /root /sda3   arch
    /swap           both
    simple ext4 data partion (later i would create folders in it and bind them to each distro's home
    then installed arch without bootloader in end....after that fedora and it installed grub 1.99 on /sda
    now, both are booting fine
    thnx to every one

  • Dual boot Arch and Windows XP (arch installed first) [solved]

    I recently moved over to arch from Ubuntu, and would like to install Windows XP so that I can dual-boot between the two. However, my arch install created four partitions on my disk, and I can not create another one.
    I would rather not have to reinstall arch, as setting it back up would take days on my current network connection. Is this possible? While I have installed XP over Ubuntu in the past (and am more than able to reform the MBR after the XP install) I have absolutely no experience with disk-partitioning, so concise instructions would be very much appreciated.
    errata: my laptop has 4 gigs of RAM, so I don't think I need the SWAP partition. I am hesitant to delete it outright however.
    this is a Gparted screenshot, running off of a Ubuntu live CD. The 60 gigs of unallocated space is where I was hoping to install windows.
    Last edited by spotdart (2009-02-05 17:13:55)

    What's on /dev/sda4?  If you can blow away the last partition, turn the whole thing into an extended partition and then you can set up as many logical partitions as you want inside the extended partition.  I suppose Arch is probably on sda4 and if that is the case you could move arch to sda3 first--there are lots of posts in the forum about how to move an installation of arch from one place to another.
    Edit: Beat to the punch again.  Yeah like he said you might want to delete the swap partition and then incorporate it into the 1st or third partitions so you can free up that last one.
    Last edited by bgc1954 (2009-02-05 15:27:21)

  • [Solved] Toxic won't open and makepkg fails to reinstall it

    Hi there, this is my first time posting in these forums and I hope I'm in the right place.
    I use the CLI tox client Toxic as a method for secure communication with friends etc. and I haven't encountered a problem with it before today. I'm not sure what happened but when I tried to run in it my terminal I received this error:
    toxic: error while loading shared libraries: libsodium.so.10: cannot open shared object file: No such file or directory
    I figured it was a problem with libsodium so I decided to reinstall it, but I still had the same problem. I replaced libsodium with libsodium-git and still the error persists.
    The next course of action I tried was to reinstall Toxic from the AUR. I use the git package so I typed:
    yaourt -S toxic-git
    The package didn't install however and I received this error when the machine tried to build the package:
    Makefile:56: recipe for target 'global_commands.o' failed
    make: *** [global_commands.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build toxic-git.
    ==> Restart building toxic-git ? [y/N]
    ==> ----------------------------------
    Restarting the build returns the same error, and the regular toxic package also will not build.
    I've been using Arch for a few months now, but I've never encountered a problem like this before. Does anyone know what I can do to get Toxic working again? Any help would be greatly appreciated, thanks!
    Last edited by handles (2014-08-28 21:07:49)

    Lone_Wolf wrote:libsodium was upgraded to version 0.7 on 2014-08-27 , and there appears to have been a so-name bump to libsodium.so.13 .
    I did a quick check on my system and it would seem that the required libsodium.so.10 is missing, but libsodium.so.13 is present.
    pkgfile -l libsodium
    community/libsodium /usr/lib/
    community/libsodium /usr/lib/libsodium.so
    community/libsodium /usr/lib/libsodium.so.13
    community/libsodium /usr/lib/libsodium.so.13.0.0
    Thanks for letting me about the version change.
    Lone_Wolf wrote:You'll have to rebuild everything from aur that uses libsodium against the new version.
    I've never had to rebuild a package against a new version of a library before, so I'm going to use this as a good learning opportunity. I spent a good hour and a half searching various Arch wiki pages and forums, but I don't know how to do this. Do I need to edit something in the PKGBUILD file when I go to download the package from the AUR?
    The PKGBUILD file looks for toxic-git looks like this:
    # Maintainer: Florian Hahn <[email protected]>
    pkgname=toxic-git
    pkgdesc='CLI client for tox, a Skype replacement that respects your privacy'
    license=('GPL3')
    pkgver=0.r1134.efe61e3
    pkgrel=1
    depends=('tox-git' 'ncurses' 'libconfig')
    makedepends=('git')
    conflicts=('toxic')
    provides=('toxic')
    arch=('i686' 'x86_64')
    url=('http://tox.im')
    source=('git+https://github.com/Tox/toxic.git')
    md5sums=('SKIP')
    optdepends=(
    'openal: audio notifications'
    'freealut: audio notifications'
    _gitname=toxic
    pkgver() {
    cd "${srcdir}/${_gitname}"
    printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    build() {
    cd "${srcdir}/${_gitname}/build"
    make PREFIX=/usr
    package() {
    cd "${srcdir}/${_gitname}/build"
    make PREFIX=/usr DESTDIR="${pkgdir}" install
    PKGBUILD (END)
    I don't see any references to libsodium within this file though, so I'm not really certain what I should be doing to get to compile against the new libsodium v0.7.0 .
    If anyone could point me in the right direction, I would really greatly appreciate it.
    Last edited by handles (2014-08-28 20:57:56)

  • Dual Boot Arch and Windows 8 from Windows Boot

    I tried doing some research before posting but haven't had too much luck. I just upgraded to Windows 8, but after having a nice experience with Arch previously on VirtualBox, I thought I would dual boot this time... and this is my first post.
    I followed the Beginners Installation Guide and the Win Arch Dual Boot and then did some reading on setting up the BCD manager in Windows following from the link in the Arch Wiki.
    My setup is as follows
    /dev/sda1 = Windows (>150 GB)
    /dev/sda2 = /boot (100 MB)
    /dev/sda3 = / (15 GB)
    /dev/sda5 = /var (8 GB)
    /dev/sda6 = /home (~65 GB)
    The linux portions are all ext4, but after reading the above article on the BCD Manager, I realized I left out the FAT32 partition so Windows can see it (note... if I get this to work, I will try and update the wiki to mention that).
    So the problem is I used up all my hard drive space and need to make room for the FAT32 section. I was wondering
    a) how to resize the /home partition to make room for the FAT32 partition
    or
    b)if I were to delete the /home entirely and just add an sda4 (FAT32) and sda6 (/home) (since I forgot to use sda4), do I need to go through the pacstrap process again, or generate an fstab again, or just edit the fstab manually?
    or
    c) there is a possibility that I missed something where I shouldn't need to have an FAT32 section.
    Thanks for the help!

    Thanks for the help!
    I was able to use GParted to add that extra partition and was able to generate the proper file for Windows to see, and then copy over to the C: drive (which is what's missing from the Wiki).
    I unfortunately had some issues that kept me starting in emergency mode, so after some time spent in the fstab section and setting the right filesystems, I was able to get it to work!

  • Dual boot: Arch and another Linux (GRUB issue)

    Hi, everybody,
    I've got two SATA hard drives: sda and sdb. There is a Linux on sdb, and the GRUB in it's MBR. Here's /boot/grub/menu.lst (sdb):
    timeout 10
    color black/cyan yellow/cyan
    gfxmenu (hd0,0)/usr/share/gfxboot/themes/pclinuxos/boot/message
    default 0
    title linux 2.6.22.15.tex2
    kernel (hd0,0)/boot/vmlinuz-2.6.22.15.tex2 BOOT_IMAGE=2.6.22.15.tex2 root=/dev/sdb1 acpi=on resume=/dev/sdb2 splash=silent vga=788
    initrd (hd0,0)/boot/initrd-2.6.22.15.tex2.img
    title linux old kernel
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/sdb1 acpi=on resume=/dev/sdb2 splash=silent vga=788
    initrd (hd0,0)/boot/initrd.img
    title linux-nonfb
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=/dev/sdb1 acpi=on resume=/dev/sdb2
    initrd (hd0,0)/boot/initrd.img
    title failsafe
    kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=/dev/sdb1 failsafe acpi=on resume=/dev/sdb2
    initrd (hd0,0)/boot/initrd.img
    title Arch Linux
    root (hd1,4)
    kernel /boot/vmlinuz26 root=/dev/sda5 ro
    initrd /boot/kernel26.img
    chainloader +1
    #title FreeBSD
    #rootnoverify (hd1,0,a)
    #kernel /boot/loader
    #chainloader +1
    #title windows
    #root (hd1,0)
    #makeactive
    #chainloader +1
    The Arch entry won't work: GRUB Error 13: - something wrong with the kernel image...
    I tried to install the Arch's own GRUB into the sda MBR; now Arch is booting successfully from it's own GRUB - provided the sda is first in the BIOS boot order. Now I have to change the BIOS boot order depending on what system I want to boot, which is less then a satisfactory arrangement .
    /boot/grub/menu.lst (sda, Arch's own):
    # Config file for GRUB - The GNU GRand Unified Bootloader
    # /boot/grub/menu.lst
    # DEVICE NAME CONVERSIONS
    # Linux Grub
    # /dev/fd0 (fd0)
    # /dev/hda (hd0)
    # /dev/hdb2 (hd1,1)
    # /dev/hda3 (hd0,2)
    # FRAMEBUFFER RESOLUTION SETTINGS
    # +-------------------------------------------------+
    # | 640x480 800x600 1024x768 1280x1024
    # ----+--------------------------------------------
    # 256 | 0x301=769 0x303=771 0x305=773 0x307=775
    # 32K | 0x310=784 0x313=787 0x316=790 0x319=793
    # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
    # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
    # +-------------------------------------------------+
    # general configuration:
    timeout 5
    default 0
    color light-blue/black light-cyan/blue
    # boot sections follow
    # each is implicitly numbered from 0 in the order of appearance below
    # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
    # (0) Arch Linux
    title Arch Linux
    root (hd0,4)
    kernel /boot/vmlinuz26 root=/dev/sda5 ro
    initrd /boot/kernel26.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,4)
    kernel /boot/vmlinuz26 root=/dev/sda5 ro
    initrd /boot/kernel26-fallback.img
    # (1) Windows
    #title Windows
    #rootnoverify (hd0,0)
    #makeactive
    #chainloader +1
    I'd be happy to boot into Arch from sdb; what am I to change in the /boot/grub/menu.lst (sdb)?

    See this for chainloading to another MBR:
    http://www.gnu.org/software/grub/manual … 02fWindows
    OK right.
    PCLOS grub=MBR of sdb (hd1)
    ARCH grub=MBR of sda (hd0)
    You'll want something like this in PCLOS grub:
    title Arch Linux
    unhide (hd0)
    hide (hd1)
    rootnoverify (hd0)
    chainloader +1
    makeactive
    If that doesn't work then its just a case of swapping the ones and zeroes around (i hope).
    Then something like this in arch grub (as long as the kernel is in the fifth partition of the first hard drive). Typo first time round, (hd1,4) should be (hd0,4):
    # (0) Arch Linux
    title Arch Linux
    root (hd0,4)
    kernel /boot/vmlinuz26 root=/dev/sda5 ro
    initrd /boot/kernel26.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,4)
    kernel /boot/vmlinuz26 root=/dev/sda5 ro
    initrd /boot/kernel26-fallback.img
    Last edited by dyscoria (2008-04-07 11:07:17)

  • Dual boot Arch and Fedora

    Hi, I just bought a new laptop and I want to install Arch + Fedora + Windows (the lap comes with BIOS)
    The laptop comes with 120 GB SSD + 750 GB HDD.
    How I plan to do the partitions are:
    In the SSD:
    - Some gigs for Windows.
    - /boot
    - / for Arch
    - / for Fedora
    - SWAP (shared for both)
    In the HDD:
    - Some gigs in ntfs for windows
    - A partition in ext4 for all my data.
    The question I have is: how can I manage grub to detect both linux distros? Should I make two separate /boot partitions (one for each distro)? Or can I install grub just in one /boot and let both distros to modify it? or what is the best recommendation on doing this?
    thanks a lot!

    Thanks all for replying (:
    shulamy wrote:
    i do it from fedora because it's kernel name changes
    evry update and arch's doesn't.
    ezik
    So what you did was first installing arch with /boot in a separate partition, and then installed fedora replacing the arch /boot with the new fedora /boot? or you just told fedora to use the arch /boot as its /boot ?
    thanks

  • Dual booting Arch and Vista w/ recovery partition and a swap question.

    I have a bit of a problem. The problem is, on a machine, you can only have 4 primary partitions. sda1 and sda2 are my Vista and Recovery partitions respectively, which eliminates two of my primary partitions already. I myself have never used logical partitions, and was wondering if any of the partitions the Beginner's Guide recommends (/, swap, /var, and /home) could be made logical, and if I even need a swap partition. Thanks in advance for your replies and suggestions.

    The /boot/ directory needs to reside in a primary partition. Everything else can be in a logical partition.
    Then again all you really need is / and swap.

  • [SOLVE] Dual Boot Windows and ArchLinux with Syslinux

    Ok, i installed ArchLinux on my laptop with Windows XP (syslinux) and I cannot find get Windows to boot or mount it. I have tried to do what i can to do this but cannot. I Installed XP first like a should and something i think might be needed to know is after i created the partitions scheme (10Gb (boot partition), 50GB (XP), 80GB(was unallocated)). The installation disk formated both 2 partitions in NTFS but i installed XP on the second and Windows reported them as C and D drives. Windows being D. Thought that was bit werid thinking Windows installed the mbr on that partition. When I installed ArchLinux, it did have the boot flag set on 10GB (or C drive).
    Since I installed ArchLinux, I have been unable to find a solution to mounting/booting to Windows. Installed NTFS-3G and that didn't work when i tried mount /dev/sda3 windows and i did created a folder named windows but got ...
    mount: wrong fs type, bad option, bad superblock on /dev/sda3,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so.
    Tried dmesg | tail and got
    [ 76.524133] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
    [ 179.468499] ACPI: \_SB_.PCI0.LPC0.ACAD: ACPI_NOTIFY_DEVICE_CHECK event: unsupported
    [ 705.472330] 8139too 0000:02:03.0 enp2s3: link down
    [ 717.380879] 8139too 0000:02:03.0 enp2s3: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 726.447184] 8139too 0000:02:03.0 enp2s3: link down
    [ 727.596128] ACPI: \_SB_.PCI0.LPC0.ACAD: ACPI_NOTIFY_BUS_CHECK event: unsupported
    [ 732.616138] 8139too 0000:02:03.0 enp2s3: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 733.848832] 8139too 0000:02:03.0 enp2s3: link down
    [ 834.062062] 8139too 0000:02:03.0 enp2s3: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 2131.449211] perf samples too long (2534 > 2500), lowering kernel.perf_event_max_sample_rate to 50100
    This is when i run sudo lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 149.1G 0 disk
    |-sda1 8:1 0 9.8G 0 part /boot
    |-sda2 8:2 0 1K 0 part
    |-sda3 8:3 0 53.6G 0 part
    `-sda5 8:5 0 85.7G 0 part /
    sr0 11:0 1 1024M 0 rom
    My syslinux is
    LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda5 rw
    INITRD ../initramfs-linux.img
    LABEL windows
    MENU LABEL Windows
    COM32 chain.c32
    APPEND hd0 3
    NOTE: chain is in the same directory with syslinux
    I really think Windows got corrupted but not sure. Thought about repairing the mbr on windows and booting to it then reinstall syslinux but really don't want too.
    Thanks in advance
    Last edited by jag-ster (2014-11-27 02:12:12)

    Here is the partition table:
    /dev/sda1 one HUGE linux /boot primary partition (assuming ext4)
    /dev/sda2 "name" of the extended partition
    /dev/sda3 primary Windows partition (assuming NTFS)
    /dev/sda5 logical Linux root partition (assuming ext4)
    /dev/sda1 to /dev/sda4 are either all primary, or three primary and one extended. After /dev/sda4 all partitions are logical. If you're still wondering why is there no /dev/sda4, it's because you have 2 primary and one extended, so /dev/sda4 is reserved for another primary partition.
    Windows problem:
    The /dev/sda1 which Windows named C: is Windows equivalent of linux /boot. When you told linux to place its /boot on /dev/sda1 it formated boot files of Windows. Now you have Windows OS with no kernel. In other words there is no way to boot Windows if you don't reinstall it. Actually there is a way, but you would than screw up Arch.
    Mounting problem:
    You can never mount extended partition, only logical (an extended partition is made of logical partitions). You want to do:
    sudo mount /dev/sda3 -t NTFS-3g -o rw,uid=YourUserName /path/where/you/want/this/partition/mounted
    EDIT:
    Try it this way:
    - Backup all your data
    - Delete every partition
    - Start Windows installation
    - Make only one partition (c:/ for Windows)
    - Let Windows make another partition
    - Make one more so you could have a data partition, which does not need to be formated to reinstall Windows
    - Start Arch installation
    - Get to partitioning
        =Partitioning=
        - /dev/sda4 extended (take the rest of the drive)
        - /dev/sda5 logical /boot 512MiB
        - /dev/sda6 logical /          20GiB
        - /dev/sda7 logical /home (the rest)
    Making a separate /home partition will come in handy when reinstalling Arch (any linux distribution), or switching between distros, because it is the equivalent of D:/ in Windows. Also consider LVM.
    Last edited by bstaletic (2014-02-28 23:25:33)

  • Dual Booting Windows and Arch (SOLVED!)

    Hello all, I'm having trouble getting a windows partition activated again. (Windows was on here for many years, then I installed arch on a separate partition.)
    Here is the layout of fdisk -l:
    Disk /dev/sda: 100.0 GB, 100030242816 bytes
    255 heads, 63 sectors/track, 12161 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        7833    62918541    7  HPFS/NTFS
    /dev/sda2            7834       12039    33784695   83  Linux
    /dev/sda3           12040       12161      979965   82  Linux swap / Solaris
    sda1 is the windows partition, and sda2 is the arch partition. The linux partition SHOULD be primary bootable (have the * next to it),but all my attempts to do this have failed. (I've used "testdisk" to change the flags, but for some reason it keeps reverting back to setting sda 1 as primary bootable after a reboot or 2).
    This is the pertinent section of /boot/grub/menu.lst:
    title  Arch Linux
    root   (hd0,1)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/f3be3baa-3b62-460c-8801-64b0b1cca$
    initrd /boot/kernel26.img
    # (1) Arch Linux
    title  Arch Linux Fallback
    root   (hd0,1)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/f3be3baa-3b62-460c-8801-64b0b1cca$
    initrd /boot/kernel26-fallback.img
    # (1) Windows
    title Windows XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    I have a . . . modified . . . copy of XP Professional, which comes with a recovery console to reinstall the MBR if it's necessary.
    From what I've researched, I somehow need to reinstall grub to the second partition, make the second partition primary bootable, then rewrite the MBR on the first partition, and correct any command errors in menu.lst, but I haven't really figure out a way to do it.
    Thanks in advance for your help!
    Last edited by mongoose088 (2008-12-20 21:48:18)

    I read up on some documentation of installing GRUB to the MBR.
    So far, I went into ArchLive (from the cd) and did the following
    grub> root (hd0,1)
    grub> setup (hd0)
    The installation reports success with no errors, but the problem persists. Arch linux will boot fine, but when I select XP it flashes my configuration, like so:
    title Windows XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    then kicks me back to the OS select GRUB screen. Did I install it to the wrong place?
    EDIT:
    I decided to issue this command:
    grub> setup(hd0,1)
    It reported some errors, then arch couldn't mount the ntfs partition because of possible MFT cluster errors.
    Using testdisk, I repaired the boot sector and MFT clusters, then using ArchLive reinstalled grub with grub>(hd0)
    Arch and Arch Fallback will boot correctly, but now the windows side shows an error:
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    Loading stage2Read Error (or something to this extent)
    I wonder if this error brings me closer or farther to a solution?
    Thanks for the replies so far!
    Last edited by mongoose088 (2008-12-20 05:41:43)

  • [SOLVED] Lenovo T530 UEFI Arch/Ubuntu Dual boot - Arch fails to boot.

    Hi All,
    I have installed Arch to my Lenovo T530 to dual boot with Ubuntu using UEFI and Grub.
    After installation, Arch is presented to me as an option when my laptop fires up. However, if I select it, the loader goes to a purple screen and then hangs.
    I have attached here the bootloader scripts for my Arch installation (not working), my Ubuntu installation (working) and the output from sudo lsblk -o name,mountpoint,label,size,uuid.
    Please let me know if there is more useful information I can provide. (I have output from Bootinfoscript available but it is quite extensive).
    I am hoping to find out if there is an easily fixable error in the booting scripts used by Grub. If not, I have seen the section on dual booting with Arch in the wiki. My worry is that if I resort to it, UEFI looks to be temperamental at best and I risk breaking my currently working Ubuntu installation.
    Thanks and regards,
    Simon
    Arch boot script (not working):
    setparams 'Arch (on /dev/sda4)'
    insmod part-gpt
    insmod ext2
    set root= 'hd0,gpt4'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 -\
    -hint-efi=hd0,gpt4 -hint-baremetal=ahci0,gpt4 729b5164-22c4-4c21-8212-\
    66038d60943e
    else
    search --no-floppy --fs-uuid --set=root 729b5164-22c4-4c21-821\
    2-66038d60943e
    fi
    linux /boot/vmlinuz root=UUID=ad4103fa-d940-47ca-8506-301d\
    8071d467 rw quiet
    initrd /boot/initramfs-linux.img
    Ubuntu boot script (working)
    setparams 'Ubuntu, with Linux 3.13.0-24-generic'
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part-gpt
    insmod ext2
    set root= 'hd0,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd\
    0,gpt2 --hint-efi=hd0,gpt2 -hint-baremetal=ahci0,gpt2 542bf27c-0fd5-42\
    4a-b4d8-107f7cf97b75
    else
    search --no-floppy --fs-uuid --set=root 542bf27c-0fd5-\
    424a-b4d8-107f7cf97b75
    fi
    echo 'Loading Linux 3.13.0-24-generic ...'
    linux /boot/vmlinuz-3.13.0-24-generic root=UUID=5\
    42bf27c-0fd5-424a-b4d8-107f7cf97b75 ro quiet spash $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.13.0-24-generic
    Output from sudo lsblk -o name,mountpoint,label,size,uuid
    NAME MOUNTPOINT LABEL SIZE UUID
    sda 119.2G
    ├─sda1 /boot/efi BOOTLOADER 524M 9360-2939
    ├─sda2 / Linux_Ubuntu 34.6G 542bf27c-0fd5-424a-b4d8-107f7cf97b75
    ├─sda3 [SWAP] Swap 9.8G 7768ae01-6e37-450b-bf0c-d873e3fd06a1
    ├─sda4 Linux_Arch 32.7G 729b5164-22c4-4c21-8212-66038d60943e
    ├─sda5 /media/Data Data 33.2G 5a971a77-685b-43d5-a8e6-c7b407a4c2ff
    └─sda6 Misc_Data 8.5G b165990d-bd25-458f-b2d6-63fae28d0870
    sdb 1T
    └─sdb1 1024G a1ee2f60-007a-4292-982b-7d5f8375fc7e
    sr0 1024M
    Last edited by simon_sjw (2015-03-22 10:43:03)

    linux /boot/vmlinuz root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 rw quiet
    Change the UUID here. Where did that come from?
    EDIT: curiously, if you DuckDuckGo search this exact UUID, it comes up a bunch of times and has caused people headaches before. If you fix that you should be okay. If anyone knows why this same exact UUID would incorrectly be created on multiple systems, I'd love to know. Seems like some kind of issue with dual/triple booting and OS-prober.
    2nd EDIT: this UUID is in the default in grub.cfg. For some reason, it sometimes won't be replaced by grub-mkconfig... Maybe the user didn't run grub-mkconfig, but edited the file him or herself? simon_sjw?
    Last edited by nullified (2015-03-22 03:12:36)

  • [Solved] Boot process hangs for installed Arch and installation usb

    Hi. I've been using Arch Linux for around 6 months now and I'm in love with it. It is now my primary OS. However, I might have done something or performed some update, and I can no longer boot into Arch. The boot process hangs right before it should show the login screen (I'm using Gnome 3.6 with GDM). I see the following messages on the screen:
    Loading Linux core repo kernel ...
    Loading initial ramdisk ...
    /dev/sda3: recovering journal
    /dev/sda3: clean, 330610/1749664 files, 5585671/6996827 blocks
    And then it hangs right there. I have to hard-reboot after this.
    I then tried to boot using the Arch Linux Installation USB (archlinux-2012.12.01-dual.img), which also hangs at a particular point, before it should show me the prompt. I took a picture of the screen where it hangs: Screen Capture. This is an issue with just my laptop, because the USB boots just fine on another laptop I tried.
    I also have Windows 7 and Ubuntu 12.10 installed on my system, and I'm able to boot into both of them.
    I have 2 hard drives: /dev/sda is a 120GB SSD, and /dev/sdb is a 500GB hard disk. My partitions are as follows:
    sda1 - Windows 7 100MB System Reserved Partition (boot flag enabled)
    sda2 - Windows 7 OS
    sda3 - ArchLinux (boot flag enabled)
    sdb1 - Ubuntu 12.10 (boot flag enabled)
    sdb2 - Just data
    I ran bootinfoscript and below is the output:
    Boot Info Script 0.61 [1 April 2012]
    ============================= Boot Info Summary: ===============================
    => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 99 for .
    => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 99 for .
    sda1: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /bootmgr /Boot/BCD
    sda2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows 7
    Boot files: /Windows/System32/winload.exe
    sda3: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Mounting failed: mount: /dev/sda3 already mounted or sda3 busy
    sdb1: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 12.10
    Boot files: /boot/grub/grub.cfg /etc/fstab
    sdb2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files:
    ============================ Drive/Partition Info: =============================
    Drive: sda _____________________________________________________________________
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
    /dev/sda2 206,848 178,466,084 178,259,237 7 NTFS / exFAT / HPFS
    /dev/sda3 * 178,466,085 234,440,703 55,974,619 83 Linux
    Drive: sdb _____________________________________________________________________
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sdb1 * 63 20,948,759 20,948,697 83 Linux
    /dev/sdb2 20,964,824 976,771,071 955,806,248 7 NTFS / exFAT / HPFS
    "blkid" output: ________________________________________________________________
    Device UUID TYPE LABEL
    /dev/mmcblk0p1 6665-3162 vfat
    /dev/sda1 CA6A20CC6A20B75B ntfs System Reserved
    /dev/sda2 1EE242D5E242B137 ntfs
    /dev/sda3 65db0c59-9f04-46f1-975d-8a4c28132137 ext4
    /dev/sdb1 bb9818db-ce7c-43a4-8ad5-8d3702001aed ext4
    /dev/sdb2 3C2E3A4E2E3A0206 ntfs
    ================================ Mount points: =================================
    Device Mount_Point Type Options
    /dev/mmcblk0p1 /media/dhaval/6665-3162 vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
    /dev/sdb1 / ext4 (rw,errors=remount-ro)
    =========================== sdb1/boot/grub/grub.cfg: ===========================
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    set have_grubenv=true
    load_env
    fi
    set default="0"
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function recordfail {
    set recordfail=1
    if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    if background_color 13,37,73; then
    clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
    set vt_handoff=vt.handoff=7
    else
    set vt_handoff=
    fi
    if [ "${recordfail}" != 1 ]; then
    if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
    if [ ${match} = 0 ]; then
    set linux_gfx_mode=keep
    else
    set linux_gfx_mode=text
    fi
    else
    set linux_gfx_mode=text
    fi
    else
    set linux_gfx_mode=keep
    fi
    else
    set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    initrd /boot/initrd.img-3.5.0-21-generic
    submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    menuentry 'Ubuntu, with Linux 3.5.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.5.0-21-generic ...'
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.5.0-21-generic
    menuentry 'Ubuntu, with Linux 3.5.0-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-recovery-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.5.0-21-generic ...'
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro recovery nomodeset
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.5.0-21-generic
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-29-generic-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.2.0-29-generic ...'
    linux /boot/vmlinuz-3.2.0-29-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.2.0-29-generic
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-29-generic-recovery-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.2.0-29-generic ...'
    linux /boot/vmlinuz-3.2.0-29-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro recovery nomodeset
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.2.0-29-generic
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux16 /boot/memtest86+.bin
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    ### END /etc/grub.d/20_memtest86+ ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CA6A20CC6A20B75B' {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 CA6A20CC6A20B75B
    else
    search --no-floppy --fs-uuid --set=root CA6A20CC6A20B75B
    fi
    chainloader +1
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    =============================== sdb1/etc/fstab: ================================
    # /etc/fstab: static file system information.
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc nodev,noexec,nosuid 0 0
    # / was on /dev/sdb1 during installation
    UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed / ext4 errors=remount-ro 0 1
    =================== sdb1: Location of files loaded by Grub: ====================
    GiB - GB File Fragment(s)
    4.564525127 = 4.901121536 boot/grub/grub.cfg 1
    5.130507946 = 5.508840960 boot/initrd.img-3.2.0-29-generic 2
    5.851592541 = 6.283099648 boot/initrd.img-3.5.0-21-generic 2
    6.317649364 = 6.783524352 boot/vmlinuz-3.2.0-29-generic 1
    4.965751171 = 5.331934720 boot/vmlinuz-3.5.0-21-generic 2
    5.851592541 = 6.283099648 initrd.img 2
    5.851592541 = 6.283099648 initrd.img.old 2
    4.965751171 = 5.331934720 vmlinuz 2
    4.965751171 = 5.331934720 vmlinuz.old 2
    I tried adding nomodeset and acpi=off to the boot parameters, but the boot process still hangs. Please let me know if I should provide any other information.
    Last edited by dhavalparmar (2012-12-30 11:45:25)

    Ok.. So my Arch Linux randomly decided to work. I'm sure I didn't do anything between my last "not working" state and my current "working" state. Below are a few things I tried:
    I thought of trying an earlier build of ArchLinux, and downloaded archlinux-2012.11.01-dual.iso and made a bootable USB out of it. It still hung.
    I was getting error messages during Arch boot that the last access time for the disks was at a future date. I found out that Ubuntu was using localtime instead of UTC and screwing up my hardware clock. I fixed it, and thought maybe the time issues were causing the boot problem. But fixing time didn't solve my problem.
    I chrooted into Arch from my Ubuntu install, ran 'sudo pacman -Syyu' and updated my Arch install.
    I thought maybe GDM isn't starting up. I re-enabled the service using 'systemctl enable gdm.service'.
    I removed OpenNTPd and installed NTPd. Enabled the daemon using 'systemctl enable ntpd'
    None of the above solved the problem, and rebooting to Arch still hung the system. So I stopped fiddling with it yesterday. Today, as usual, I just tried logging into Arch.. And it just worked out of the blue. The solution to me is as mysterious as the problem.
    I told this to my friend who introduced me to Arch, and this is what he said:
    Damn it computers, you were supposed to be deterministic!

  • [solved] Can't set up dual boot Arch + Win 7 on separated disks

    Hello everybody,
    I'm new to this amazing project as I installed Arch just two days ago (and everything works like a charm in linux).
    Anyway I have a problem and I'm very sorry to bother you with another question such this, but I tried everything and I accurately read the wiki.
    The problem is that I can't manage to create a dual boot in grub with Arch on the first sata disk and Windows 7 on the second disk.
    Before trying Arch I used ubuntu 10.10 dual boot with the same Windows 7 on the same secondary disk (the pc is a dell XPS L702X 17' laptop with, of course, dual disk bay) using GRUB2 which was automatically installed during ubuntu installation.
    I tried to chainload windows disk in grub using map command to let windows think it's on the primary disk and not on second one.
    At start I just had "BOOTMGR missing" error, then I put windows disk as primary removing arch disk and I repaired its bootloader: windows could boot then.
    When I substituted disks and tried to boot, Windows 7 loading screen appeared and immediately I had a blue screen of death (or something similar) which anyway disappeared in less than a second (I was not able to read anything from that screen)
    Now, when I try to boot windows either with grub or trying to enable boot straight from second hard drive in BIOS, I receive an error stating that it is necessary to use the windows repair disk to fix problems.
    My question is: how can I finally fix this situation?
    It would be quite important, for me, to not format neither of the disks, and I could even accept to renounce booting windows from grub as it would be ok even changing BIOS priority every time I need to use windows 7.
    I really apologize for my annoying question but I really tried everything I could find without success; sorry for my poor english, too.
    Anyway, this distribution seems just amazing to me! Thanks for your time.
    Luca
    Last edited by enigmatichus (2011-12-27 02:05:14)

    It worked!!! Actually I don't know what changed, I proceeded removing the first disk (arch) WITHOUT, this time, changing the position of the windows disk. I used windows 7 DVD to repair the second disk. It tooks several attempts since it failed without specifying the problem. Eventually, I was able to boot windows 7, everything worked. Then, I plugged the primary linux hard drive and booted into arch, where I used "grub-install /dev/sda" as root. It executed without errors, but when I checked menu.lst file, surprisingly I discovered that it was not changed at all by grub-install.
    Anyway it must have detected windows on /dev/sdb, since I am now able to boot both arch and windows without problems.
    It was a weird situation, but anyway it worked well!! Thank you for the support, I really appreciate!
    Luca

Maybe you are looking for

  • How can I import ALL of my files from my iPod Touch to iTunes?

    My laptop recently caught a virus and I had to reformat the hardive meaning losing my iTunes library.  I still have everthing on my iPod and an external hard drive.  I've already tried the transfer purchases button which did just that, transfer my do

  • Migration from BO Edge to BO enterprise

    Hello Everyone, Is there any possibility of migration from BO Edge Series to BO enterprise solution? Will appreciate If you could please help me with some document / details on 1. Quick difference between Edge and Enterprise Series 2. Migration path

  • Cannot start managed via NodeManager in vanilla BEA 9.2 MP3 install

    We've installed BEA WebLogic 9.2 MP3, created a single domain with a AdminServer and a Single Managed Server that runs on a Machine. We also installed the NodeManager as a Windows Service (windows 2000 server). The AdminServer runs without issue and

  • Still having problems playing MP3s on Mac OS 10.5

    Hi everyone, I was never able to solve this issue, and moved on to other things, but I'm stumbling over it again. I believe that I have everything set up properly; I put the jmf and mp3 plugin jars in my /Library/Java/Extensions folder, but I am gett

  • JTable Print to Adobe Acrobat Error

    I'm having trouble printing a jTable using Java 1.5.0_03 to Adobe Acrobat (6.0). Whenever I call print using (assuming proper try/catch statements) either jTable.print();or printJob.setPrintable(jTable.getPrintable(JTable.PrintMode.FIT_WIDTH, new Mes