So, here's the problem: I have an antix installation on /dev/sda8, which was working flawlessly with 3.7 kernel and with debian stable apt sources. After upgrading to debian testing (jessie) AND installing the latest liquorix kernel (3.13.11 I think), the devices get renamed, and though it boots (due to UUID name), it cannon mount other partitions I have in fstab. Actually, /dev/sda --> /dev/sdc , /dev/sdb --> /dev/sdd and two other USB disks get the names of /dev/sda & /dev/sdb. Now, thiw problem I've encountered also in a debian testing installation I have on a USB disk, on a different laptop, but why does it appear here, on an ACER Aspire laptop, when antix had the right device names before? Is this a bug in Debian testing? Since I use a grub2 /boot/grub/grub.cfg file built from a manjaro installation, I'll have to manually edit it, but since it changes every time the manjaro kernel is upgraded, I'll end up changing this every day (so to say). The /boot/grub/device.map and /boot/grub/menu.lst in antix is ok (or so it seems, since it shows the right number of partitions per device). What could possibly be the reason for this?
The problem DOESN'T OCCUR when i boot with the antix 3.7.10 kernel.
I've installed the 64bit antix 13.2 iso and then changed the sources from debian stable to jessie, and then installed the liquorix kernel. It seems a bug in liquorix kernel, but before going there, is there any way to find a solution here?
6 posts
• Page 1 of 1
-
Posts: 17
- Joined: 28 Sep 2013
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#2
It is due to how new kernels and udev now work. Basically it is no longer reliable to use device partions eg /dev/sda1 in the boot menu or fstab since the kernel now sets them randomly ie the quickest gets sda etc.
Solution is to use uuid and/or labels in both as they do not change,
To get uuid, use type blkid in a root terminal.
You can also use gparted to set labels for each partition/device.
As an example here is my fstab
Solution is to use uuid and/or labels in both as they do not change,
To get uuid, use type blkid in a root terminal.
You can also use gparted to set labels for each partition/device.
As an example here is my fstab
Code: Select all
# Pluggable devices are handled by uDev, they are not in fstab
UUID=3b6c6562-2de0-4f14-993d-8af446a6bf57 / ext4 defaults,noatime 1 1
#LABEL="antiX-64" / ext4 defaults,noatime 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
#UUID=c0c16fbc-1e5a-46a8-9ecd-d064800b1dca swap swap sw, 0 0
LABEL="swap" swap swap sw, 0 0
#UUID=8fa6aecc-c2ee-48c5-9dd8-2e4027187922 /media/sda1 ext4 noauto,users,exec,relatime 0 0
LABEL="antiX-32" /media/antiX-32 ext4 noauto,users,exec,relatime 0 0
#UUID=2c53bf5a-8caa-4534-beb1-f5aa04050918 /media/sda3 ext3 auto,users,exec,relatime 0 0
LABEL="Torrents" /media/Torrents ext3 auto,users,exec,relatime 0 0
#UUID=f56325d7-99bc-4d6d-b84d-b81554a404dd /media/sdb3 ext3 auto,users,exec,relatime 0 0
LABEL="Data" /media/Data ext3 auto,users,exec,relatime 0 0
#UUID=d5b1c53b-8c62-4731-8492-021f22c45b69 /media/sdb5 btrfs auto,users,exec,relatime 0 0
LABEL="Docs" /media/Docs btrfs auto,users,exec,relatime 0 0
#UUID=8fa6aecc-c2ee-48c5-9dd8-2e4027187922 /media/sdb6 ext4 noauto,users,exec,relatime 0 0
LABEL="MX-14" /media/MX-14 ext4 noauto,users,exec,relatime 0 0
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#3
Oh and you would probably need to create the labelled folders in /media
-
Posts: 17
- Joined: 28 Sep 2013
#4
@anticapitalista
Thank you for your prompt reply.
Thanks again.
Thank you for your prompt reply.
This is exactly what I did to circumvent the issue. Now it boots ok. Due to the fact that I'm using another grub2 bootmanager, I had to edit the 3.13-11 kernel part of antix there, to reflect the new device it sees as the root partition.Solution is to use uuid and/or labels in both as they do not change
I have edited fstab to reflect my own kind of mounting the partitions, eg the ntfs partitions go to /win, the other linux distros on the same disk go to /dis, so I didn't create the labelled folders in /media, but next time I'll see if it is better to keep the antix way and just symlink the folders to the names of my preference.Oh and you would probably need to create the labelled folders in /media
Thanks again.
-
Posts: 17
- Joined: 28 Sep 2013
#5
What I cannot figure out is why this is only present in Debian testing at the moment. I've not encountered the problem in any other distro. But the interaction of kernel and udev must be a complex matter and jessie is"testing" after all. Anyway, the"UUID=..." way works ok, and I hope that next time I'll generate a new /boot/grub/grub.cfg from manjaro won't have to edit it again. Thanks once more.
-
Posts: 667
- Joined: 01 Nov 2013
#6
Another bit of info that is starting to pop up. Motherboard manufacturers are slowly beginning to incorporate the use of"UUID" in their BIOS codes to standardize labeling. Even BIOS updates on older boards still supported may add this coding.