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.
Coming from CentOS distro that used UUIDs for fstab, I looked into fstab in slackware and noticed no UUIDs and simply /dev/sda , are there any drawbacks to this? I never saw the purpose for UUIDs myself, to me it makes more of a pain as if I swap out the main drive (like recovering from a backup or something, i never do this though) I need to use Livecd or something else to get the UUID first or else the system wont boot...idk if that is true that is just what I see.
I always use UUIDs as they solve several problems...
They make the fstab mounts and lilo boot references independent of drive ordering which solves most problems that arise from adding or removing drives from the system and booting with USB thumb drives plugged in.
So on a fresh Slackware install a first order of config business for me is to change lilo and fstab to equivalent UUIDs.
The /dev/sdx identifiers are are assigned by the booting kernel and are not always the same across different boots. UUIDs are persistent.
Adding or removing a SCSI disk changes the disk device name but not the filesystem volume label nor its UUID.
So for a removable device like e.g. an USB drive if you use a device name like /dev/sdb1 for / (the root partition) and that next time it is named /dev/sdc1 instead, the root file system won't be mounted so your system will not start.
Naming the root partition by label or by UUID avoids that.
UUIDs solve a lot of problems, but not all - even create some.
If you image a partition for backup and want to mount it to recover some file(s), you can't.
If you dual boot Linux's, you'll often find the latter installer(s) run a mkswap - changes the UUID. I always have swap as device name in fstab, as this is something I see all the time.
Or - you could use a combination - I have a couple of laptops & I let the original slackware install create the fstab.
I also have a 3TB Western Digital USB Drive that I pass between them for backup purposes. Then because I got a good deal on them and they fit easily in the laptop cases, each laptop has its own personal 2TB USB Drive (one Western Digital, one Seagate), in case I feel in a Belt & Suspenders mood while travelling. So, both laptops have 6 fstab entries included, in case I want to simply get some files off a USB Drive. (both laptops dual-boot to W7, so I've partitioned each USB Drive to have an ext4 and an ntfs partition. All the USB fstab entries use UUID.
I stopped using devices (except md devices, which do their own recognition) and uuid (which solve more issues than they create) in favor of labels.
I come from a DR and data security background, and there are significant advantages to using a label that you set and control. The uuid can change, or you can replicate and replace the device, but if the label is correct and the format matches, it just works.
I believe I have mentioned before, I really like 'just works'. A lot!
Coming from CentOS distro that used UUIDs for fstab, I looked into fstab in slackware and noticed no UUIDs and simply /dev/sda , are there any drawbacks to this? I never saw the purpose for UUIDs myself, to me it makes more of a pain as if I swap out the main drive (like recovering from a backup or something, i never do this though) I need to use Livecd or something else to get the UUID first or else the system wont boot...idk if that is true that is just what I see.
There's an in-depth explanation in Brian Ward's excellent book "How Linux Works" (No Starch Press). Check out chapter 4, disks and filesystems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.