Can't install Salix on separate HDD

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
Letrix
Posts: 3
Joined: 28. Oct 2017, 09:17

Can't install Salix on separate HDD

Post by Letrix »

Hi All.

I am trying to install Salix Openbox 14.1 CD ISO (i486 & i686, 32-bit) from USB key on my working PC.
I have Windows XP installed on SATA HDD. So I physically unplugged it and install Salix on second PATA HDD. Then I plugged HDD with Windows again.
The idea is to change boot priority of HDDs in BIOS and this way to chose between two OSs. So there are two separate HDDs with two different MBRs, bootloaders and OSs.
I successfully used this scheme on this computer with Win XP + Debian and currently using on my home PC with Win 7 + Manjaro.

But the problem is that after installation Salix works with unplugged Windows HDD and doesn't boot when I plug it (see picture).
After this PC is just freezes with Caps Lock and Scroll Lock lights blinking on the keyboard.

Any ideas? Is it because Salix uses LILO but Debian and Manjaro use GRUB?

P.S. Yes I know I can use one bootloader for both OSs but I want them to be separate.

Image
DidierSpaier
Posts: 518
Joined: 20. Jun 2016, 20:15

Re: Can't install Salix on separate HDD

Post by DidierSpaier »

This is probably because when you plug a hdd the devices names change, e.g. /dev/sda become /dev/sdb.

The way to avoid that is to name your partitions by UUID instead of by name:
  • boot Salix
  • in a terminal type

    Code: Select all

    lsblk -o name,uuid
  • in /etc/fstab replace the first field of the root partition with UUID=<value given by lsblk>
For instance here:

Code: Select all

didier[~]$ lsblk -o name,uuid
NAME   UUID
sda    
└─sda3 53ea8679-197e-437c-bdcb-61c55c509a2f
sdb    
├─sdb1 60CA-18FA
├─sdb2 446e4302-60ee-4bb8-b404-b06ef1a76057
├─sdb3 b585ad05-c49a-4cb4-a016-c074c8ff8b8e
└─sdb4 68787abd-c4fe-43f1-a148-f186e61b8ff2
sr0    
didier[~]$
So, in /etc/fstab I would replace this line:

Code: Select all

/dev/sdb2  / ext4 defaults 1 1
by this one:

Code: Select all

UUID=446e4302-60ee-4bb8-b404-b06ef1a76057 / ext4 defaults 1 1
And so on for the other partitions.

To know more: man fstab
Letrix
Posts: 3
Joined: 28. Oct 2017, 09:17

Re: Can't install Salix on separate HDD

Post by Letrix »

Thank you.
I will try it.
Letrix
Posts: 3
Joined: 28. Oct 2017, 09:17

Re: Can't install Salix on separate HDD

Post by Letrix »

I tried it today but the result is very similar (see pic 1).
I edited /etc/fstab as it shown on pic 2.
Could you please check if I did it correctly?

Image
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Can't install Salix on separate HDD

Post by gapan »

You should probably use the UUID in lilo.conf too:
https://docs.slackware.com/howtos:slack ... g#liloconf
Image
Image
Post Reply