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.
Can I use UUID when I am creating the initrd? Like "-r UUID=xxxxxx -h UUID=xxxxxx"
Because even using UUID in my fstab, the script mkintrd suggest /dev/sda2 to root and /dev/sda5 and to resume/swap it shows the UUID of partition but it can't find the partition.
Instead of "/dev/sdXX", try "/dev/disk/by-uuid/your-disk-uuid-here".
I guess which it shouldn't be necessary because both mkinitr and mkinitrd_command_generator can understand when we use UUID.
Quote:
Originally Posted by bassmadrigal
I don't do hibernation, so I've never tried that, but I have successfully used -r "UUID=xxxxxxx" in my mkinitrd commands before.
I was reading both scripts and what I can imagine:
- mkinitrd_command_generator and mkinitrd understand UUID when it's used to root partition BUT mkinitrd_command_generator only use UUID to translate from UUID to /dev/sdx
- mkinitrd_command_generator doesn't understand UUID to swap partition because it ask what is your swap device.
- mkinitrd work flawlessly with UUID. It uses UUID to find the block devices.
But against about what's on change log of 06/08/2016, there is nothing in both scripts about UUID be used to resume partitions. I can't found.
Last edited by ArthurFontolan; 07-31-2016 at 09:26 AM.
But against about what's on change log of 06/08/2016, there is nothing in both scripts about UUID be used to resume partitions. I can't found.
You can still use /dev/disk/by-uuid/XXXXX to reference devices as it is just a symlink to /dev/sdX. If the script doesn't have support for UUIDs or labels, it just means you can't use "UUID=XXXXXX" and have to use the location /dev/disk/by-uuid/XXXXXX.
But against about what's on change log of 06/08/2016, there is nothing in both scripts about UUID be used to resume partitions. I can't found.
You can still use /dev/disk/by-uuid/XXXXX to reference devices as it is just a symlink to /dev/sdX. If something doesn't have proper support for UUIDs or labels, it just means you can't use "UUID=XXXXXX" and have to use the full location... /dev/disk/by-uuid/XXXXXX.
Basically, anywhere you see /dev/sdX, you can safely replace it with /dev/disk/by{id,uuid,label}/XXXXXX.
Last edited by bassmadrigal; 07-31-2016 at 10:34 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.