Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't use UUID of my partitions in fstab
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Nilangshu
n00b
n00b


Joined: 27 Feb 2021
Posts: 6

PostPosted: Tue May 04, 2021 12:06 pm    Post subject: Can't use UUID of my partitions in fstab Reply with quote

I have a strange problem. I have working gentoo system but when I define partitions in FSTAB (Filesystem tab), it fails to boot as depend phase timeout while looking for partitions. But when I use device nodes such as /dev/sdaX then it work without any problem. Is my hard disk is failing :roll: :roll: that is the reason? Please help.
Back to top
View user's profile Send private message
alamahant
Veteran
Veteran


Joined: 23 Mar 2019
Posts: 1064

PostPosted: Tue May 04, 2021 12:15 pm    Post subject: Reply with quote

Hi if you need uuid naming for "/" then please use an initrd.
I think this happens because getting uuid names requires blkid or some other userspace utility which is impossible before mounting "/"
_________________
:)
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2796
Location: Frankfurt, Germany

PostPosted: Tue May 04, 2021 12:26 pm    Post subject: Reply with quote

If alamahant's answer doesn't help, then post your /etc/fstab and the output of 'blkid', please.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48147
Location: 56N 3W

PostPosted: Tue May 04, 2021 2:06 pm    Post subject: Reply with quote

Nilangshu,

Check your fstab format.
Code:
UUID=8d5d5691-ceb7-4e58-bed3-28803cb88bfe  /home                    ext4  noatime         1 2
works for my /home.

blkid:
/dev/sde1: UUID="c400b18c-0210-4338-a0fd-f437ecbaaf99" BLOCK_SIZE="1024" TYPE="ext4" PARTLABEL="ext4" PARTUUID="150e6ef1-7ba8-409c-9c3f-dbdecdc9f18b"

Don't mix up the UUID, whicd is a property of the filesystem with the PARTUUID= which is a property of the partition holding the filesystem.

fstab can work with either.

As fstab cannot be read until after root is mounted, is safe to use either for root in fstab.
On the kernel command line, the device or root=PARTUUID= works but root=UUID needs an initrd to dig the UUIDs of of the filesystems.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum