LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2016, 04:16 PM   #1
ArthurFontolan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Slackware64 14.2: Question about initrd.


Hi everybody,

I searched but can't find anything about.

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.
 
Old 07-30-2016, 04:23 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I don't do hibernation, so I've never tried that, but I have successfully used -r "UUID=xxxxxxx" in my mkinitrd commands before.
 
Old 07-30-2016, 08:40 PM   #3
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
Instead of "/dev/sdXX", try "/dev/disk/by-uuid/your-disk-uuid-here".
 
Old 07-31-2016, 09:25 AM   #4
ArthurFontolan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Hangaber View Post
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 View Post
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.
 
Old 07-31-2016, 10:29 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by ArthurFontolan View Post
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.
 
Old 07-31-2016, 10:33 AM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by ArthurFontolan View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Why root now has a password set in /etc/shadow in slackware64-current/isolinux/initrd.img? Didier Spaier Slackware 4 02-24-2016 09:36 AM
[SOLVED] Slackware64-14.1 multlib AM2 to X99 upgrade generic kernel + initrd fails to load kingbeowulf Slackware 15 09-10-2015 12:36 AM
Slackware64 14.1 initrd for generic kernel can't find RAID1 root partition octetstream Slackware 2 12-21-2013 07:28 AM
Slackware64-13.0 multilib can not build valid initrd for kernels 2.6.30 sid77 Slackware 11 03-03-2010 03:32 AM
Question Regarding initrd bunnie1 Linux - Software 2 05-27-2009 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration