SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do you set vol-IDs & uuids during OS installation, is it possible? Or can you only do this manually? Does the MBR ever use vol-IDs & uuids or are they too big? Or does this go into what you mentioned as GPT a new version of labeling partition tables?
How do you set vol-IDs & uuids during OS installation, is it possible? Or can you only do this manually? Does the MBR ever use vol-IDs & uuids or are they too big? Or does this go into what you mentioned as GPT a new version of labeling partition tables?
The IDs/UUIDs are generated and set when the partitions are created (I am not sure if formatting changes them, I do not think it does). I am also not really sure what you are calling vol-ID, that may be a GPT thing.
You can get the ID or UUID during installation, after formatting, using blkid or by simply ls -l /dev/disk/by-{id,uuid}.
The MBR will only have an ID, /dev/disk/by-id/... value as far as I know.
Volume ID of Disk
bash-4.2# lilo -T vol-ID
BIOS Volume ID MY NOTATIONs
0x80 89CA89CA -WD Caviar 250GB sda
0x81 B90DB90D -Seagate Baracuda 320GB sdb
0x82 1549F232 -Hatachi sdc
Volume ID's are all unique. Think these show up in my Scrolling Bios... At least I think that is where I've seen them also in fdisk -l
Have to look again and make a note of where I see these vol-IDs the actual HDD ID like sda before adding a partition?
Question the MBR is not "Human Readable" is it? I'm also googling & referencing unix, linux, slackware books I have. Now that you have helped me understand what I'm looking at more comprehensively I can read about it too.[COLOR="Silver"]
Last edited by NightSky; 06-21-2015 at 12:41 PM.
Reason: "Deleted Error" dble post auto generated?
Volume ID of Disk
bash-4.2# lilo -T vol-ID
BIOS Volume ID MY NOTATIONs
0x80 89CA89CA -WD Caviar 250GB sda
0x81 B90DB90D -Seagate Baracuda 320GB sdb
0x82 1549F232 -Hatachi sdc
Volume ID's are all unique. Think these show up in my Scrolling Bios... At least I think that is where I've seen them also in fdisk -l
Have to look again and make a note of where I see these vol-IDs the actual HDD ID like sda before adding a partition?
Question the MBR is not "Human Readable" is it? I'm also googling & referencing unix, linux, slackware books I have. Now that you have helped me understand what I'm looking at more comprehensively I can read about it too.[COLOR="Silver"]
Ah! I have not used the volume ID for anything since... forever... forgot that was even there.
According to man lilo, the vol-ID is four bytes in the MBR and can be written. I recall that fdisk has an option for setting the volume ID too. I suspect you could do it with tune2fs as well, but again I have not done so in recent memory (the only memory I have left!).
However, I don't know how you can use volume ID to reference drives in lilo or fstab.
I have used volume LABELs in fstab entries but swithced to UUIDs because all partitions will have UUIDs whereas LABELs must be explicitly set. Also, UUIDs are inherently tied to their partitions, whereas you may inadvertantly reuse a LABEL and further confuse yourself - I did! Although they are more human readable, I found the labels more tedious to manage in the end - YMMV.
In lilo configs, the boot device and image and initrd paths must reachable when lilo is run. The boot parameter would be the only one for which vol-ID might be applicable, but I am not sure how you might specify that as a device "path".
You could use /dev/disk/by-label/ for those that are set and assuming it is supported by your kernel (probably is).
I use UUIDs and IDs for my own configs, but if labels or vol-IDs work better for you then use them instead. The main point to remember is to NOT use the /dev/sdx paths as these are dependent on drive ordering, among other things, and subject to change - the source of much confusion and boot failure!
Last edited by astrogeek; 06-21-2015 at 01:57 PM.
Reason: typos
@astrogreek, roflmao recent memory is my wisenheimer, visits briefly if I don't engage it in repetition. I learn well but if I don't use it on a regular basis I forget.
I'm in the process of switching stuff on Slackware over to UUID & am excited over it now. Also tried a live cd for the 1st time, of linuxmint mate. Been downloading & burning DVDs got one out of 3 that works-mate 64-17.1
Cinnamon is 2 for 0. Downloading Cinnamon 64-17.2 see if I have better luck with that one. Live CD wows me
@astrogreek, roflmao recent memory is my wisenheimer, visits briefly if I don't engage it in repetition. I learn well but if I don't use it on a regular basis I forget.
I'd laugh too, but I don't remember what the joke was...
Quote:
Originally Posted by NightSky
I'm in the process of switching stuff on Slackware over to UUID & am excited over it now. Also tried a live cd for the 1st time, of linuxmint mate. Been downloading & burning DVDs got one out of 3 that works-mate 64-17.1
Cinnamon is 2 for 0. Downloading Cinnamon 64-17.2 see if I have better luck with that one. Live CD wows me
I never had much luck with Live distros, but that is probably more related to the fact that I have not always had a working optical drive available. Similarly for booting from USB devices - I have been plagued with hardware that simply doesn't support it! In the last couple of years I have been able to get some newer hardware but now I dont have much interest in trying new distros - I am pretty much Slackware and FreeBSD only these days.
Let me know when you get Slackware converted to UUIDs and safely booting, and play with a bit to build your confidence - it will become second nature. Then move on to the next one! Before long you should have a full load of distros and disks easily booting from Lilo.
Just a vote for using LABEL-ing as opposed to UUID-ing. I've not run into any problems and the human readability, and instant recognition in any file manager, not to mention WAY shorter designations has served me well. I already voted for LILO above GRUB but will reiterate because it is just so simple and good and manual. I find most automation to be like a doting butler, far more often underfoot than a real help.
Just a vote for using LABEL-ing as opposed to UUID-ing.
I use both; UUID for internal disks that won't normally change, and LABELS for external disks that are mounted and unmounted semi-frequently.
The external disks are mostly backup devices so I can run scripts that read the external drive disk LABEL to control the script logic.
The disk LABEL correlates to the physical printed "label" glued on the outside of the external disk case which makes it easier to transfer between server locations and bank safety deposit boxes.
Last edited by TracyTiger; 06-22-2015 at 12:20 AM.
Hi astrogeek, Started trying to use the uuid in lilo. Got the following
Code:
#image = /boot/vmlinuz
# root = /dev/sda8
# label = Linux
# read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config begins use uuid
image = /boot/vmlinuz
root = b652b778-7dc7-4d2a-af62-d67b4154f7e1
label = Slackware
read-only # Partitions should be mounted read-only for checking
#Linux bootable partition config ends
wrote /etc/lilo.conf, 51 lines, 1676 chars
bash-4.2# /sbin/lilo
Warning: LBA32 addressing assumed
Added Linux *
Fatal: Illegal 'root=' specification: b652b778-7dc7-4d2a-af62-d67b4154f7e1
Is it required that the /etc/fstab file be in place before switching settings in lilo.conf
Have recheck syntax for using uuid in lilo.conf.
Also found 'lilo-uuid-diskid' tool - you know it?
Hi astrogeek, Started trying to use the uuid in lilo. Got the following
Code:
#image = /boot/vmlinuz
# root = /dev/sda8
# label = Linux
# read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config begins use uuid
image = /boot/vmlinuz
root = b652b778-7dc7-4d2a-af62-d67b4154f7e1
label = Slackware
read-only # Partitions should be mounted read-only for checking
#Linux bootable partition config ends
wrote /etc/lilo.conf, 51 lines, 1676 chars
bash-4.2# /sbin/lilo
Warning: LBA32 addressing assumed
Added Linux *
Fatal: Illegal 'root=' specification: b652b778-7dc7-4d2a-af62-d67b4154f7e1
Is it required that the /etc/fstab file be in place before switching settings in lilo.conf
Have recheck syntax for using uuid in lilo.conf.
Also found 'lilo-uuid-diskid' tool - you know it?
1. No, fstab and lilo don't know anything about each other, you could use different path methods for each - but why would you?
2. The root spec in lilo needs to be quoted and spec'd like this...
The IDs/UUIDs are generated and set when the partitions are created (I am not sure if formatting changes them, I do not think it does). I am also not really sure what you are calling vol-ID, that may be a GPT thing.
I am pretty sure the UUID is regenerated every time you run a mkfs (at least with ext4, but I'd imagine it is the same with most *nix filesystems). You can specify a specific UUID, if desired, with mkfs.ext4 -U UUID /dev/sda (or change one later using tunefs -U UUID /dev/sda). I did this on a drive when I repurposed it a few months ago so I could just change the mount point on the fstab rather than getting the new UUID (lazy, I know).
@astrogeek it's a script in /usr/bin came across reference to it & checked man lilo-uuid-diskid. BTW I have extra hardware you are welcome to if you like. Older CPUs breaks my heart to just throw away. lol
Update space saver: Boot failure, so I'm in Live CD of LinuxMint-Mate. During Slackware boot I was asked to "Please append a correct "root=" boot option... it wasn't sufficient to just change from /dev/sda8 to UUID ..
the /boot = sda option had to change too???
Thought I could change lilo from live cd but my root passwrd isn't working for access.
Last edited by NightSky; 06-24-2015 at 12:43 PM.
Reason: Slackware Boot Failure - Stuck in Live LinuxMint-Mate
You need it to read root = "UUID=your-uuid" and you can't refer to the boot as a UUID since it is not a partition and doesn't have a UUID. You need to reference that by the disk-id (using astrogeek's example since I'm at work and can't grab mine easily): boot = /dev/disk/by-id/ata-WDC_WD3200AAJB-00J3A0_WD-WCAV2C573625
It'd be best to post your /etc/lilo.conf file so we can look over it and, if necessary, correct any mistakes. It's a lot easier than just guessing what your values are
Got back in with Slackware install dvd. Seems there is a lot more to switching to UUID than just changing /dev/sdx to UUIDs?
Hi again NightSky! Sorry I was not here much yesterday...
No, it really is as easy as changing the references to IDs/UUIDs - you just have to use the right syntax and values. You can use my earlier example for syntax - it is actually working - and replace with your own values.
As bassmadrigal points out, the boot and root options are two different things and must use differing syntax as well.
Code:
boot = /... must be a reachable path to the target device at lilo runtime
root = {/dev/sdx path | "UUID=xxxxxxxx" identifier} unambiguous reference at boot-time
image = /... must be absolute file path reachable at lilo runtime
initrd = /... optional file path relative to image reachable at boot-time
Pretty easy - take a deep breath and try again! ;-)
If you are trying to install Slackware lilo from Live Mint boot, remember that the boot, image and initrd must be mounted and reachable, and will have same UUID but probably different paths from Mint!
I would suggest creating two lilo stanzas - the original with /dev/sdx refs, and the new with UUIDs. If you break the UUIDs you can simply reboot to Slackware with the original and not have to worry about alternate mount paths.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.