Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently running Ubuntu and Slackware on my system. After just installing Slackware, with everything appearing to work fine, I boot into GRUB only to see an "error: no such disk" or something of another when I try to load Slackware. Does anyone know why this is the case?


I first installed Slackware with a full install on one of my partitions, a swap included. During this time I chose not to install LILO. After this, I then proceeded to install Ubuntu just so I could have something which would work when I needed it to. This is when I installed GRUB2, and when Slackware just refused to work.

Should I reinstall it with LILO this time? If I do this, will it scrap my Ubuntu or should I still be able to use it?

update 2

I think this is the problem:

menuentry "Slackware Linux (Slackware 13.37.0) (on /dev/sda8)" --class gnu-linux --class g      nu --class os {
       insmod part_gpt
       insmod ext2
       set root='(/dev/sda,gpt8)'
       search --no-floppy --fs-uuid --set=root 89ba52ea-8afa-4d93-adac-e4a9258a2aae
       linux /boot/vmlinuz root=/dev/sda8

I don't know much about grub.cfg, but from it seems like (and from what I've been reading of the ubuntu documentation), this appears to be correct. I think the uuid isn't being found, however. Should I replace the uuid with the partition it's located on?

share|improve this question
Grub2 or legacy? Can you provide some details on how you added Slackware to the grub menu? – jasonwryan Sep 23 '11 at 2:08
Updated. Thanks for the help. – Holland Sep 23 '11 at 2:21
Create a custom menu entry in Grub2 for Slackware: help.ubuntu.com/community/Grub2#Creating_the_Custom_Menu – jasonwryan Sep 23 '11 at 2:26
There already is a menu entry for Slackware though. Are you saying that a custom menu entry might actually make it work, as opposed to the one that is already there? – Holland Sep 23 '11 at 3:15

If Slackware is on sda8, then your /etc/grub.d/40_custom file should look like:

exec tail -n +3 $0

menuentry "Slackware" {
set root=(hd0,8)
linux /boot/vmlinuz root=/dev/sda8 ro quiet

You can use UUIDs, which would then look something like:

exec tail -n +3 $0

menuentry "Slackware"{
set root=(hd0,8)
search --no-floppy --fs-uuid --set cf984a2a-8892-4d79-a0dc-2fc81ee04edb
linux /boot/vmlinuz root=/dev/disk/by-uuid/cf984a2a-8892-4d79-a0dc-2fc81ee04edb ro vga=872

Make sure that you run update-grub as root to apply the changes...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.