Page 1 of 1

Can't install Salix on separate HDD

Posted: 28. Oct 2017, 09:47
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

Re: Can't install Salix on separate HDD

Posted: 28. Oct 2017, 11:38
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

Re: Can't install Salix on separate HDD

Posted: 28. Oct 2017, 12:10
by Letrix
Thank you.
I will try it.

Re: Can't install Salix on separate HDD

Posted: 4. Nov 2017, 11:37
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

Re: Can't install Salix on separate HDD

Posted: 4. Nov 2017, 17:38
by gapan
You should probably use the UUID in lilo.conf too:
https://docs.slackware.com/howtos:slack ... g#liloconf