Triple boot

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
hidd
Posts: 4
Joined: 20. Apr 2014, 22:08

Triple boot

Post by hidd »

Hello,
Two days ago I decided to install a lubuntu and salix along windows in my pc to make a tripleboot. So I installed lubuntu first (it was working well) and then i installed salix. But at bootstart i had only salix and windows but not lubuntu :/
Then i ran liloconfig (simple mode), as i did during salix installation but it remains the same thing. I tried the expert mode and miracle, i had a lubuntu entry. So i could boot from salix and windows but not from lubuntu.
Finally now, what I have: Windows and Salix entries who work well + a Lubuntu entry.
This Lubuntu entry prompts a problem "couldn't mount because of unsupported optional features (240)". If I boot from lubuntu, the desktop appears but the system freezes and is unusable: the mouse cursor does not work and I have to reboot the pc.
How can I solve this problem?

I join some informations concerning /etc/fstab, /etc/lilo.conf and a fsdisk -l output that the excellent slxmpp suggested me to show you.
Thank you very much for any answer :)

/etc/fstab
(I noticed the was no /dev/sda4 and /dev/sdb4 partitions, which are lubuntu's ones :/)

Code: Select all

/dev/sdb2        swap             swap        defaults         0   0
/dev/sdb5        swap             swap        defaults         0   0
/dev/sda3        /                xfs         defaults         1   1
/dev/sdb6        /home            xfs         defaults         1   2
/dev/sda1        /media/Windows   ntfs-3g     fmask=133,dmask=022 1   0
/dev/sda2        /media/Donnees   ntfs-3g     fmask=111,dmask=000 1   0
/dev/sdb3        /media/Igzz      ntfs-3g     fmask=111,dmask=000 1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,users,rw,umask=00 0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0

/etc/lilo.conf

Code: Select all

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda

compact

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/salix.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,20,255,20,255,20
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 15,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,6,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Append any additional kernel parameters:
append="quiet  vt.default_utf8=1"
prompt
#timeout = 300
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda3
  label = Salix
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda4
  label = Lubuntu
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends

fsdisk -l command:

Code: Select all

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d12b6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   136316927    68157440    7  HPFS/NTFS/exFAT
/dev/sda2       136316928   583198719   223440896    7  HPFS/NTFS/exFAT
/dev/sda3   *   583198720   599975935     8388608   83  Linux
/dev/sda4   *   599975936   625141759    12582912   83  Linux

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e3815

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048    83888127    41943040    5  Extended
/dev/sdb2        83888128    85985279     1048576   82  Linux swap
/dev/sdb3       174739456   390721535   107991040    7  HPFS/NTFS/exFAT
/dev/sdb4        85985280   174739455    44377088   83  Linux
/dev/sdb5            4096     2101247     1048576   82  Linux swap
/dev/sdb6         2103296    83886079    40891392   83  Linux
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Triple boot

Post by mimosa »

The lilo entry for Lubuntu isn't specifying the correct kernel. This is probably normal with liloconfig. You need to edit the image line in the relevant section so it points at the right kernel. To find out what that is, inside Salix, mount the lubuntu partition and look in its /boot. You can do this from the comamnd line, or using thunar (file manager). It's also possible lubuntu boots with an initrd ... Please post the contents of the /boot in sda4, from the comamnd line,

Code: Select all

ls -la /path/to/where/sda4/boot
Alternatively, just install grub, which should resolve everything automatically. First you need to install grub2 from the Slaix repositories, using Gslapt.

I'm not very familair with grub, but I think this is as simple as doing:

Code: Select all

sudo update-grub
sudo grub-install /dev/sda
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Triple boot

Post by laprjns »

Code: Select all

    # Linux bootable partition config begins
    image = /boot/vmlinuz
      root = /dev/sda4
      label = Lubuntu
      read-only  # Partitions should be mounted read-only for checking
    # Linux bootable partition config ends
Assuming that the information you provided (fstab, lilo.conf, and fdisk -l) is from your Salix install, then your problem is that your are booting the Salix kernel (image=/boot/vmlinuz) with your Lubuntu root file system (root=/dev/sda4). To fix this you need to mount your Lubuntu partition (sda4), correct the lilo.conf file with the proper path to the Lubuntu kernel and rerun lilo. Here's what I suggest you do:
Mount the sda4 partitions.

Code: Select all

sudo mkdir /mnt/lubuntu
sudo mount /dev/sda4 /mnt/lunbuntu
Now get the complete path to the Lubuntu kernel

Code: Select all

ls /mnt/lubuntu/boot
I believe the Lubuntu uses vmlinuz as symbolic link, but you will have to check this. Let assume that it does use vmlinuz, so the path that you need to change lilo.conf to is:

Code: Select all

/mnt/lubuntu/boot/vmlinuz
Now make the corrections in lilo.conf:

Code: Select all

sudo leafpad /etc/lilo.conf
Edit the "image" line in this section

Code: Select all

# Linux bootable partition config begins
    image = /boot/vmlinuz
      root = /dev/sda4
      label = Lubuntu
      read-only  # Partitions should be mounted read-only for checking
    # Linux bootable partition config ends
to read :

Code: Select all

# Linux bootable partition config begins
    image = /mnt/lubuntu/boot/vmlinuz
      root = /dev/sda4
      label = Lubuntu
      read-only  # Partitions should be mounted read-only for checking
    # Linux bootable partition config ends
Save the file and then run lilo

Code: Select all

sudo lilo -v -v
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
hidd
Posts: 4
Joined: 20. Apr 2014, 22:08

Re: Triple boot

Post by hidd »

Hi all,
sorry to answer so late but i had some exams :)

i tried what laprjns said concernnig the edition of lilo.conf but the thing is: when i select lubuntu at bootscreen, nothing happens and, the pc does not react and the screen monitor remains black.

I paste you my new fstab that i edited to have partitions automatically mounted at startup in order to load wmlinuz: see below the change at the end of lilo.conf file.

Code: Select all

/dev/sdb2        swap             	swap        defaults        		0   0
/dev/sdb5        swap             	swap        defaults         		0   0
/dev/sda3        /                	xfs         defaults         		1   1
/dev/sdb6        /home            	xfs         defaults         		1   2
/dev/sda1        /media/Windows   	ntfs-3g     fmask=133,dmask=022 	1   0
/dev/sda4        /media/Lubuntu_root  	ext4        defaults         		1   1
#note: fmask=133,dmask=022 1 2  (default for /dev/sda4)
/dev/sda2        /media/Donnees   	ntfs-3g     fmask=111,dmask=000 	1   0
/dev/sdb3        /media/Igzz      	ntfs-3g     fmask=111,dmask=000 	1   0
/dev/sdb4        /media/Lubuntu_home   	ext4        defaults         		1   2
#/dev/cdrom      /mnt/cdrom       	auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      	auto        noauto,users,rw,umask=00 	0   0
devpts           /dev/pts         	devpts      gid=5,mode=620   		0   0
proc             /proc            	proc        defaults         		0   0
tmpfs            /dev/shm         	tmpfs       defaults         		0   0

Code: Select all

hidd[~]$ ls /media/Lubuntu_root/boot/
System.map-3.2.0-58-generic  initrd.img-3.2.0-58-generic
abi-3.2.0-58-generic	     memtest86+.bin
config-3.2.0-58-generic      memtest86+_multiboot.bin
grub			     vmlinuz-3.2.0-58-generic

Code: Select all

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda

compact
lba32

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/salix.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,20,255,20,255,20
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 15,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,6,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Append any additional kernel parameters:
append="quiet  vt.default_utf8=1"
prompt
#timeout = 300
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends

# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda3
  label = Salix
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends

# Linux bootable partition config begins
image = /media/Lubuntu_root/boot/vmlinuz-3.2.0-58-generic #/boot/vmlinuz
  initrd = /media/Lubuntu_root/boot/initrd.img-3.2.0-58-generic
  root = /dev/sda4 
  label = Lubuntu
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Thanks for any answer ;)
Last edited by hidd on 24. May 2014, 12:57, edited 1 time in total.
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Triple boot

Post by djemos »

I suppose you use salix 14.1 version.
So boot on salix (your wrote you can do this)
then

Code: Select all

sudo slapt-get -i grub os-prober
sudo grubconfig
You will see the installer probe and find all os you have installed
reboot and but in salix or lubuntu

if you want smaller text before run grubconfig edit /etc/default/grub and find the line #GRUB_FONT=/usr/share/grub/unicode.pf2
remove the # character and save the file. Then run grubconfig.
hidd
Posts: 4
Joined: 20. Apr 2014, 22:08

Re: Triple boot

Post by hidd »

djemos wrote:I suppose you use salix 14.1 version.
So boot on salix (your wrote you can do this)
then

Code: Select all

sudo slapt-get -i grub os-prober
sudo grubconfig
You will see the installer probe and find all os you have installed
reboot and but in salix or lubuntu

if you want smaller text before run grubconfig edit /etc/default/grub and find the line #GRUB_FONT=/usr/share/grub/unicode.pf2
remove the # character and save the file. Then run grubconfig.
Of course i could install grub to simplify this processus, but i'd like to stay with the default lilo.
But, can i use grub whereas lilo is installed? Will grub all rewrite? Can i uninstall lilo?
Thank you.
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Triple boot

Post by djemos »

grubconfig will install grub in MBR and is used instead of lilo.
You can uninstall lilo from MBR
e.g. sudo lilo -u /dev/sda
User avatar
jefboyardee
Posts: 1
Joined: 5. Jun 2014, 06:43

Re: Triple boot

Post by jefboyardee »

I also have two distros installed and use this handy code I found at http://www.noobslab.com/2012/05/install ... er-in.html

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Triple boot

Post by mimosa »

That might work in *buntu but not in Salix. I recommend following the advice above from laprjns (for lilo) or djemos (for grub).
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Triple boot

Post by djemos »

grub-customizer do exactly what grubconfig and grub-update with the addition of rearrange what os will boot first as default.
You can install grub-customizer in salix from here i486 or x86_64
Post Reply