Installing Salix in a multi-disk environment

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Installing Salix in a multi-disk environment

Post by thenktor »

And don't forget to edit your fstab. This is mandatory!
This command helps to identify your device names:
ls -l /dev/disk/by-id/
This commands shows the UUID:
ls -l /dev/disk/by-uuid/
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
NickC
Posts: 32
Joined: 12. Feb 2012, 17:18

Re: Installing Salix in a multi-disk environment

Post by NickC »

Ok booted SalixLive CD and mounted root of installed system:

Code: Select all

su
mkdir /mnt/myroot
mount /dev/sda3 /mnt/myroot
cd /mnt/myroot
nano fstab
But I can't edit the file due to lack of permissions. Any suggestions.

Edit:
Ignore that just rebooted, tried again and now able to edit fstab. Not sure what I did wrong the first time around.
NickC
Posts: 32
Joined: 12. Feb 2012, 17:18

Re: Installing Salix in a multi-disk environment

Post by NickC »

Despite doing a new GUI install which wrote uuid to lilo.conf and editing fstab to use uuids , system still will not boot.
fstab

Code: Select all

devpts              /dev/pts            devpts         gid=5,mode=620      0         0
proc                /proc               proc           defaults            0         0
tmpfs               /dev/shm            tmpfs          defaults            0         0
UUID=0f0a95fe-8559-4d7f-9443-b7c11c210d05           swap                swap           defaults            0         0
UUID=2968dfff-650e-46ac-9c13-2bb44c1a0892           /                   ext4           noatime,defaults    1         1
UUID=df1c0c0f-e3ff-4df4-b14c-f82cecb4adbd           /boot               ext2           noatime,defaults    1         2
UUID=1fd83c61-3dba-4c89-9bb3-9a9b34a2513b           /home               ext4           noatime,defaults    1         2
blkid:

Code: Select all

/dev/loop0: TYPE="squashfs" 
/dev/loop1: TYPE="squashfs" 
/dev/loop2: TYPE="squashfs" 
/dev/loop3: TYPE="squashfs" 
/dev/loop4: TYPE="squashfs" 
/dev/loop5: TYPE="squashfs" 
/dev/sda1: UUID="482C2E412C2E2B00" TYPE="ntfs" 
/dev/sda2: LABEL="Spare Primary" UUID="5AE0DE6AE0DE4C3F" TYPE="ntfs" 
/dev/sda5: LABEL="xxxx" UUID="0E58FB8E58FB72B7" TYPE="ntfs" 
/dev/sda6: LABEL="xxxx" UUID="96C00EF0C00ED681" TYPE="ntfs" 
/dev/sda7: LABEL="xxxx" UUID="965C21105C20ECA5" TYPE="ntfs" 
/dev/sdb1: UUID="AEF8953EF895062D" TYPE="ntfs" 
/dev/sdb2: LABEL="boot" UUID="81165ee6-65a7-4b22-8d77-2c2752cac123" TYPE="ext2" 
/dev/sdb3: UUID="74d1d68d-8135-491c-9c4e-9dcca7cd1af8" TYPE="swap" 
/dev/sdb4: LABEL="root" UUID="cb95cd92-b626-418b-a4f8-3d86260ac2aa" TYPE="ext4" 
/dev/sdc1: UUID="df1c0c0f-e3ff-4df4-b14c-f82cecb4adbd" TYPE="ext2" 
/dev/sdc2: UUID="0f0a95fe-8559-4d7f-9443-b7c11c210d05" TYPE="swap" 
/dev/sdc3: UUID="2968dfff-650e-46ac-9c13-2bb44c1a0892" TYPE="ext4" 
/dev/sdc4: UUID="1fd83c61-3dba-4c89-9bb3-9a9b34a2513b" TYPE="ext4" 
Can anyone see what I have done wrong?
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Installing Salix in a multi-disk environment

Post by gapan »

What does "will not boot" mean?
Image
Image
NickC
Posts: 32
Joined: 12. Feb 2012, 17:18

Re: Installing Salix in a multi-disk environment

Post by NickC »

gapan wrote:What does "will not boot" mean?
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Installing Salix in a multi-disk environment

Post by Shador »

You need to pass root=/dev/disk/by-uuid/... or root=UUID=... (not sure whether the UUID= one works) to the kernel. Also make sure you built and load an initrd with udev (-u) included. Important!!! Don't use the lilo root= option. Put root=/dev/disk/by-uuid/... into an append or addappend list!!!
Akuna wrote:If you can't access Salix anymore you could boot with SalixLive and execute LiloSetup who will setup UUIDs correctly for you and give you back access to all the OSs that are on your machine.
Sorry, but that seems to my knowledge about lilosetup impossible. You would have to generate an initrd (with udev), modify the fstab and change the lilo.conf to load that initrd. If you specify the root, boot lilo options with UUIDs it's only used at install time. Lilo resolves it to major/minor, I guess, which is effectively /dev/sdXY. But it definitely looses the uuids for boot-time that way. If you were correctly specifying the uuids so they're used at boot-time, any system without an initrd (with udev) would be broken.
Image
User avatar
Uohk
Posts: 1
Joined: 6. Mar 2012, 10:01

Re: Installing Salix in a multi-disk environment

Post by Uohk »

I used grub; installed it and used the terminal to run it. I have multiple operating systems on my PC and tonight installed Salix OS. Grub showed my other operating systems on each partition where as prior to running grub I could only see Salix and Vista. All of the partitions with each operating system showed up with grub; but not with the default boot loader.

I installed grub2 and sg2conf to get my other partitions installed with the new grub boot loader..
Zino HD Nettop. Salix, Archbang, Debian, Xubuntu. Openbox, Fvwm and Fluxbox WM.
Post Reply