You are not logged in.

#1 2013-09-07 09:17:07

JcGNeon
Member
Registered: 2013-09-07
Posts: 5

[Solved] Installing Arch to an external HDD, but can't get it to boot.

After playing around with Arch in virtual boxes I decided to install it on my PC.  On my internal HDD I have Linux Mint installed ATM with the grub bootloader. I managed to install everything in Arch onto my 2TB external HDD (I don't intend to use it with multiple computers) with syslinux as the bootloader. However, when I reboot my PC it boots straight to Linux Mint. I set my computer's BIOS to boot from USB before the internal HDD, but it still boots into Mint. After some time tampering with stuff I'm not sure what the problem is.

External HDD looks like this:
/dev/sdb (GPT)
~/dev/sdb1 1.8TB [ext4] (/, /home, /boot)
~/dev/sdb2 2G [SWAP]

mkinitcpio.conf:

HOOKS="base udev block autodetect modconf filesystems keyboard fsck keymap"

syslinux.cfg:

LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sdb1 rw
    INITRD ../initramfs-linux.img

LABEL archfallback
    MENU LABEL Arch Linux Fallback
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sdb1 rw
    INITRD ../initramfs-linux-fallback.img

I have my files backed up and am willing to purge Mint if necessary. Thanks in advance.

Edit: solved the problem. I did a fresh install and partitioned with fdisk and booted with grub. Worked like a charm. Cheers.

Last edited by JcGNeon (2013-09-23 09:05:36)

Offline

#2 2013-09-07 10:09:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

Would it be possible to boot Arch Linux from your grub?
https://wiki.archlinux.org/index.php/Gr … NU.2FLinux

Last edited by karol (2013-09-07 10:12:31)

Offline

#3 2013-09-07 12:16:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,548
Website

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

Did you install the syslinux MBR code and mark the partition as bootable?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2013-09-08 07:32:26

JcGNeon
Member
Registered: 2013-09-07
Posts: 5

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

karol wrote:

Would it be possible to boot Arch Linux from your grub?
https://wiki.archlinux.org/index.php/Gr … NU.2FLinux

Added this to the grub.cfg with no change.

menuentry "Arch Linux" {
  set root=(hd1,1)
  linux /boot/vmlinuz-linux
  initrd /boot/initramfs-linux.img
}
### END /etc/grub.d/10_linux ###

Trilby wrote:

Did you install the syslinux MBR code and mark the partition as bootable?

Yes, both with the syslinux-install_update -i -a -m and the sgdisk /dev/sdb --attributes=1:set:2 commands.


As I was browsing around I noticed something about my Mint / and my Arch Linux virtualbox / that was different from the external HDD's /.

Mint / had initrd.img, initrd.img.old, and vmlinuz

The virtualbox / had initramfs-linux.img, initramfs-linux-fallback.img, and vmlinuz-linux.

My Arch installation on the external HDD does not have these files in /, only in the /boot folder. Is this of any significance?

Offline

#5 2013-09-08 08:05:28

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

Try specifying the full path , and maybe you can replace LINUX with KERNEL ( in your syslinux.cfg ).

Offline

#6 2013-09-08 09:00:07

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

I would use UUID instead of device name, might have more chance of system booting external drive


Mr Green

Offline

#7 2013-09-08 09:43:38

JcGNeon
Member
Registered: 2013-09-07
Posts: 5

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

r0b0t wrote:

Try specifying the full path , and maybe you can replace LINUX with KERNEL ( in your syslinux.cfg ).

Tried (both LINUX and KERNEL), but nothing changed:

LABEL arch
        MENU LABEL Arch Linux
        KERNEL /dev/sdb1/boot/vmlinuz-linux
        APPEND root=/dev/sdb1 rw
        INITRD /dev/sdb1/boot/initramfs-linux.img

LABEL archfallback
        MENU LABEL Arch Linux Fallback
        KERNEL /dev/sdb1/boot/vmlinuz-linux
        APPEND root=/dev/sdb1 rw
        INITRD /dev/sdb1/boot/initramfs-linux-fallback.img

Mr Green wrote:

I would use UUID instead of device name, might have more chance of system booting external drive

I already tried multiple times with UUID, but saw no change.


I've also tried to install Arch on my internal HDD, but it doesn't boot there either.

Last edited by JcGNeon (2013-09-08 09:45:46)

Offline

#8 2013-09-08 11:36:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,548
Website

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

Is this a uefi system?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2013-09-08 15:15:03

JcGNeon
Member
Registered: 2013-09-07
Posts: 5

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

Trilby wrote:

Is this a uefi system?

Nope.

Offline

#10 2013-09-10 14:14:57

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: [Solved] Installing Arch to an external HDD, but can't get it to boot.

Another way is use device lable

LABEL arch
	MENU LABEL Arch Linux
	LINUX ../vmlinuz-linux
	APPEND root=UUID=ARCHUSB rw
	INITRD ../initramfs-linux.img

I have just tested syslinux on a usb drive (key type) and works fine


Mr Green

Offline

Board footer

Powered by FluxBB