You are not logged in.
Pages: 1
Hello,
I've just installed an other distro (kali) next to my archlinux, using a live USB for kali.
To do this I have resized my /home partition (I had / partition, /boot, and a /home partition) removing 100GB from it for my new linux.
I did this with gparted, and I actually have this scheme :
http://img15.hostingpics.net/pics/94249 … 222919.png
Kali linux is installed, but now archlinux doesn't boot : kernel panic not syncing vfs unable to mount root fs on unknown-block(0,0)
I suspect grub not to link correctly each system with each partition, but I don't see why, because partitions have not moved (just one partition more for kali at the end, sda6)
I have my grub.cfg file too on pastebin, I tried to reinstall my archlinux kernel from an archlinux live usb, but the problem is still here.
http://pastebin.com/W8FUbJEQ
Thx a lot for your help, I don't know what to do ![]()
Last edited by almandin (2015-01-16 21:52:21)
Offline
Boot at Kali and on a terminal give us the output of 'ls -l /dev/disk/by-uuid/'
Last edited by alex.theoto (2015-01-17 17:54:39)
Offline
ls -l /dev/disk/by-uuid
lrwxrwxrwx 1 root root 10 janv. 17 18:52 09b42b35-f475-43bb-95de-a1a047fed02f -> ../../sda2
lrwxrwxrwx 1 root root 10 janv. 17 18:52 481c8df4-71dd-4d7b-afd2-952d549b51a0 -> ../../sda5
lrwxrwxrwx 1 root root 10 janv. 17 18:52 aaf3ce21-9385-4d92-a994-47482c681b1d -> ../../sda6
lrwxrwxrwx 1 root root 10 janv. 17 18:52 b5ee746e-2376-4dbc-8ec2-d4407c0ec168 -> ../../sda3
lrwxrwxrwx 1 root root 10 janv. 17 18:52 d173cffb-2ca4-42bf-9e39-2a7f1a8dbd8c -> ../../sda1
thx
Offline
The grub.cfg is identifying /dev/sda1 as your Arch root partition when it should be /dev/sda3 (?):
menuentry "Arch Linux (on /dev/sda3)" --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 ***set root='(hd0,msdos1)'*** search --no-floppy --fs-uuid --set=root d173cffb-2ca4-42bf-9e39-2a7f1a8dbd8c linux /vmlinuz-linux root=UUID=b5ee746e-2376-4dbc-8ec2-d4407c0ec168 rw acpi_osi=Linux acpi_backlight=vendor quiet initrd /intel-ucode.img }
Try changing it to '(hd0,msdos3)', or wherever your Arch root is (and also change the UUID on the next line to the correct one).
Or you could re-install GRUB from Arch and see if that does a better job of it.
EDIT: No, sorry that's wrong -- I missed the bit where you said you have a separate /boot for Arch as well ![]()
Try my second suggestion then...
Are you sharing the same /boot between Arch & Kali?
Last edited by Head_on_a_Stick (2015-01-17 18:06:39)
Jin, Jîyan, Azadî
Offline
I have the same /boot for kali and for arch, (/dev/sda1 is my /boot partition)
I have already tried to change msdos1 into msdos3, and the uuid, and it did nothing ![]()
I'll try to reinstall grub so, I just hope that will not mess up my kali too ^^"
Last edited by almandin (2015-01-17 18:22:36)
Offline
I remember something similar to your problem when I used encrypted /. When I used two distros with encrypted / and with a single /boot partition I had the same problem.
To solve the problem, I created two /boot partitions, one for each one.
One solution is to create a second /boot partition and config each distro to use one of them.
Another solution [and easier] is to do not use separate /boot partition. Just merge it on your / partition.
As for the config, use their live cd to create grub menu. Don't forget to use 'os-prober' at Arch.
Last edited by alex.theoto (2015-01-17 19:23:49)
Offline
I agree with @alex.theoto -- I use GRUB in my Debian system to boot my laptop in non-EFI mode and because I have shared /boot (ESP) between Arch & Debian it makes a total mess of it (entries to boot Arch with the Debian kernel & vice-versa) and I always have to manually re-write the grub.cfg ![]()
Jin, Jîyan, Azadî
Offline
If I use this partition scheme :
one partition for kali (/boot included)
one partition for arch (/boot included)
one partition for my /home
I don't understand how the system know what /boot use (if both partitions for kali and arch are *boot* flagged), if I have two grubs installed :x (I'm maybe saying sh*t)
I don't understand how it can works if there are two grub.cfg files ^^"
Can I install grub only once, while installing two different Linux ?
I guess yes ^^
Last edited by almandin (2015-01-18 14:56:10)
Offline
Can I install grub only once, while installing two different Linux ?
I guess yes ^^
That's what I usually do -- just install new distributions without bootloaders and then run `grub-mkconfig` from the original system afterwards (or write my own entry for stuff like Android that doesn't register in os-prober).
The last `grub-install` that was performed is the "active" version: this is the one that occupies the MBR (or BIOS boot partition, or active NVRAM entry) and hence controls the booting process.
Last edited by Head_on_a_Stick (2015-01-18 17:58:54)
Jin, Jîyan, Azadî
Offline
Expanding on Head_on_a_Stick's post...
But, the kernel has to have a different name. Also, if you use an initrd, then the names of the images have to be different as well.
This system currently has Arch, Arch Falback, Gentoo, Windows 7 and FreeDOS. Based on what H_o_a_S wrote in another thread, mayhaps that Gentoo partition will turn to an Android partition later today ![]()
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Online
okay okay thx a lot, I understand now, where the problem comes from, I installed my second linux with grub too into a /boot partition where grub was already here, that's the problem I think.
I now have all I need to do a clean dual boot for my laptop.
thx for your help, I'll let this post there and reinstall all I need ![]()
edit:: i'm sorry for my poor english btw, I know I make a lot of mistakes but i'm learning ^^"
Last edited by almandin (2015-01-18 22:10:44)
Offline
Pages: 1