Mouting disk in fstab per UUID fails: special device does ..

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Mouting disk in fstab per UUID fails: special device does ..

Post by gilthanaz »

"Special device does not exist".

[Problem]

After installing a new disk, partitioning it and mkfs.whatever it, you edit the /etc/fstab file to automount the disk on reboot per UUID. You get the UUID per command 'blkid', enter the syntax correctly, but only get the error message "Special device ... does not exist".


[Solution]
Basically there is two ways. The Kernel is not aware of the UUID because it was created post-boot, after it's read the partition tables into memory (correct me if iam wrong here), so often a reboot fixed the problem once all of the above config has been done.

The second option is the command 'partprobe', which - according to its manpage, forces the kernel to re-read the partition tables (and thus, blkid's)

Yay!
Post Reply