Slack partition invisible at boot time after install Debian
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slack partition invisible at boot time after install Debian
I have Debian 6 _86 installed on sda4 and on sda5 Slackware ( Slackware has installed LILO on the beginning of sda5). Where and what to add so I can see Slack option at the boot time ( at the moment when system starts there is only Debian and I cannot enter in Slack)?
============================= Boot Info Summary: ===============================
=> Grub2 (v1.97-1.98) 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 3 for (,msdos3)/boot/grub.
--------------------------------------------------------------------------------
#
# 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
load_env
fi
set default="0"
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
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 59c85737-6c62-4617-8e2c-2540cb2878e3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 59c85737-6c62-4617-8e2c-2540cb2878e3
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 59c85737-6c62-4617-8e2c-2540cb2878e3
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 59c85737-6c62-4617-8e2c-2540cb2878e3
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=59c85737-6c62-4617-8e2c-2540cb2878e3 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set 59c85737-6c62-4617-8e2c-2540cb2878e3
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=59c85737-6c62-4617-8e2c-2540cb2878e3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### 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 $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# /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 defaults 0 0
# / was on /dev/sda3 during installation
UUID=59c85737-6c62-4617-8e2c-2540cb2878e3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=843a3129-60e9-48ea-bf13-f2d0c66b5267 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
--------------------------------------------------------------------------------
=================== sda3: Location of files loaded by Grub: ====================
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
The boot info script output does not agree with your statement of what is installed where.
You have 3 primary partitions; sda1 appears to be a MS boot sector, sda2 appears related to sda1, sda3 has Debian installed on it.
You then have an extended partition, sda4. Within it you have 2 logical partitions; sda5 with something identified as Linux, sda6 which is /swap.
Now, assuming that sda5 is the slackware install, the first thing for you to do is to pull up a terminal in Debian and, as root, run;
Code:
update-grub
This should pick up that install. I do not think that using Lilo should stop that but I am not sure. It is the first thing to try anyway.
There should be output in terminal saying that it found thus and so OS's.
Then to make sure what happened, again as root, run on a full screen terminal;
Code:
grub-mkconfig
This should print out your entire /boot/grub/grub.cfg file. This is where your screen menu comes from. There are sections in that file. What you want is the section that says'
Quote:
### BEGIN /etc/grub.d/30_os-prober ###
Will have a similar comment at the end of the section starting with "END". That is where the menu entry, if any, will be for that other install.
If it is not there then we will have to do something else.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Quote:
Originally Posted by syg00
Looks suspiciously like the Slack install has been blown away - bootinfoscript looks for lilo.
OK, I give up, where does it look for lilo?
I realize it is not listed there, unless of coarse I missed it.
It does, however, recognize some installation which seems to indicate a kernel anyway.
What I am thinking is to let grub look for a bootloader. If one is not found then there will have to be one installed by chroot or some other method. Not sure what the options are with slack as I have never fooled with it.
At least I found it interesting because I really like custom menus. I have some on file for a number of different OS's but not one for slackware so I am pretty happy to have it.
It's a script, easy enough to read. It checks for lots of things (Windows, MSDOS, Solaris ...), including lilo.conf, and lilo in the partition boot record.
It only outputs what it finds - else the listing would go for pages.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
I am pretty familiar with the script. Try to keep an up to date copy on here even. I have a lot of installs and it comes in handy.
There have been, however, some glitches recently in it. They are being corrected. Haven't kept up with exactly what is and is not effected.
Figured that running update-grub will run os-prober in a different environment, perhaps with better result. It is rather touchy at times too.
This is why you sometimes do not get all OS's listed when you install. update-grub is run, true, but it is run from "dpkg-configure grub-pc grub-common" and thus the install script rather than straight from grub itself. That is why most of the time simply running that command corrects the problem once you are in the new install.
update-grub is Debian derived. In (classic) grub it was Debian (and derivatives) specific - not part of the (upstream) grub project at all.
As such it (and bootinfoscript) make some assumptions about where things exist that they shouldn't make. Especially now they are generally available.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.