You are not logged in.

#1 2013-09-08 21:59:20

Samy
Member
Registered: 2013-09-01
Posts: 9

[SOLVED] arch wont boot after triple boot experiment

Hi,

I cannot boot into arch anymore after installing ubuntu to another partition on my hard drive.

I used grub to dual boot arch and windows, but i need to use ROS and there are no working packages for arch so i tried to install ubuntu on another partition and triple boot.
Somhow my arch got broken by the ubuntu setup.
Windows still boots fine.

I already chrooted (to arch) from a live cd and reinstalled grub and did

grub-mkconfig -o /boot/grub/grub.cfg

, after that ubuntu appeared in the grub selection menu but arch still wont boot.

Arch boot hangs after checking /dev/sda6 for errors (arch partition), i cannot type or ctrl+shift+fx to another terminal

Anybody has an idea what got broken by ubuntu and how i can repair arch?

thanks!
samy

Last edited by Samy (2013-09-09 11:27:09)

Offline

#2 2013-09-08 22:35:27

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] arch wont boot after triple boot experiment

Unless you can find a way to get more information, this is not really very much to go on.  You are going to have to see about getting into your logs (the journal) to see if you can find some useful clues.

I think the very first thing you should do is remove the 'quiet' from your kernel command line so that you can see where in the process it might be stalling.  Then go looking in the journal for more info. 

You might try just booting to the rescue.target (or emergency.target) and see if you can't get basic access to your system from there.

Start digging!

Offline

#3 2013-09-09 00:46:21

Samy
Member
Registered: 2013-09-01
Posts: 9

Re: [SOLVED] arch wont boot after triple boot experiment

Hey so i chroot again following this artikle: https://wiki.archlinux.org/index.php/Change_Root
then i did

 pacman -Syyu mkinitcpio linux udev

and restarted

I tried starting arch again and it seemed to still not work, this time i gave it some more time and it actually booted.
It took very long though (more then 3 minutes or so)
in journalctl if found those lines:

Sep 09 04:20:00 meanarchy kernel: USB Video Class driver (1.1.1)
Sep 09 04:21:25 meanarchy systemd[1]: Job dev-disk-by\x2duuid-12027d8a\x2dd4b0\x2d4559\x2daa1c\x2de3ea5ca8f5bb.device/start timed out.
Sep 09 04:21:25 meanarchy systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-12027d8a\x2dd4b0\x2d4559\x2daa1c\x2de3ea5ca8f5bb.device.
Sep 09 04:21:25 meanarchy systemd[1]: Dependency failed for /dev/disk/by-uuid/12027d8a-d4b0-4559-aa1c-e3ea5ca8f5bb.
Sep 09 04:21:25 meanarchy systemd[1]: Starting Swap.

so it seems boot is searching for some disk device 1:25 minutes before it fails.

I think i know the reason: I resized the Partition of arch while installing ubuntu this changes the uuid of the partition, now something is waiting for this disk to become ready because it still has the old uuid written somwhere.

UUIDs really suck, they are not human readable and always have problems with them if i touch my partitions.

Last edited by Samy (2013-09-09 11:27:45)

Offline

#4 2013-09-09 00:58:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] arch wont boot after triple boot experiment

Did you update fstab?

You could consider using disk labels rather than uuids.

EDIT: Also: Please use code tags and edit your post so it is easier to read. Thanks.

Last edited by cfr (2013-09-09 00:59:44)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-09-09 01:06:17

Samy
Member
Registered: 2013-09-01
Posts: 9

Re: [SOLVED] arch wont boot after triple boot experiment

Ok intresting it seems the failing device is my Swap partition. which is strange because i didn't change it.
the problem seems to be that there is a uuid entry in my fstab file but the swap partition no longer has any uuid?
I'm going to change the fstab entry for my swap from uuid to block and see if it boots faster.

Offline

#6 2013-09-09 01:10:31

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] arch wont boot after triple boot experiment

The Ubuntu installer reformatted your swap partition and changed its UUID. Debian does this too. You can get the new UUID using "sudo blkid" or just switch to labels or /dev/sdXY in your fstab.

Last edited by 2ManyDogs (2013-09-09 01:11:37)

Offline

#7 2013-09-09 01:53:07

Samy
Member
Registered: 2013-09-01
Posts: 9

Re: [SOLVED] arch wont boot after triple boot experiment

Well i switched to label for the swap file in fstab which resulted in arch not booting at all now because the uuid of the arch partition magicly changed too??
Then i edited fstab to only use labels but it wont help because something in the boot process is ignoring fstab and still looking for the wrong uuids.
I'm going to sleep now and try to fix this tomorrow.

thanks for the help though,  gn8

Offline

#8 2013-09-09 01:53:25

rufus
Banned
From: san francisco
Registered: 2013-04-20
Posts: 153

Re: [SOLVED] arch wont boot after triple boot experiment

just another reason why swap partitions are more trouble than theyre worth
   swap files rule!


end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest  decision and effort
        evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'.         -me

Offline

#9 2013-09-09 02:44:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] arch wont boot after triple boot experiment

I agree that swap files are the better bet.  You get worse performance from a swap file, but really if your machine is swapping, you are probably having some lag anyway.

You should be aware the filesystem labels are incredibly convenient, and mkswap allows you to name the swap partition as if it were a normal filesystem.  Using filesystem labels should make things much easier than relying on UUIDs.

Human readable, FTW!

Offline

#10 2013-09-09 11:26:15

Samy
Member
Registered: 2013-09-01
Posts: 9

Re: [SOLVED] arch wont boot after triple boot experiment

Hey, so i was able to fix it, i don't really know how i did it but after a lot of tinkering with

grub-mkconfig -o /boot/grub/grub.cfg

both in (chroote and normal) arch and ubuntu and disabeling cryptswap in ubuntu , my triple boot finnaly works without delays. :-)

I will now change all the uuids to labels to prevent future confusions when changing my partition table.

Last edited by Samy (2013-09-09 11:28:48)

Offline

#11 2013-09-09 13:30:22

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] arch wont boot after triple boot experiment

My guess is that you now have both Arch and Ubuntu trying to control the configuration of grub.  Since our packages tend to be so damn bleeding edge, it is likely that we are ahead of the ubuntu version, so you are having one version of bootloader in the boot sector (MBR) and a whole other version (and distribution) that is trying to manage the config.

So when you wrote out a new config with grub-mkconfig, you just happened to then get the two elements to match up again.  Just a guess though.  I don't have enough info to actually prove that.  But FWIW, that is one of the reasons that I don't rely on grub2 as my primary bootloader.

Offline

#12 2013-09-09 14:00:19

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: [SOLVED] arch wont boot after triple boot experiment

Having grub-legacy grub folder on a small partition (named say 'grb') with grub embedded in mbr makes things really easy. You can install any OS on a partition (without its bootloader) and then add an entry in the menu.lst file (in grub folder of grb partition).

Offline

Board footer

Powered by FluxBB