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.
I remember using a command to force the system to re-read /etc/fstab after edits to it:
"systemctl daemon-reload".
I remember using this when switching USB drives from using block devices to UUIDs for mounting, and I remember it working. Not sure if it was on THIS install of slackware or one of the other distros that I was testing (and not liking, thus back to Slackware). And after forgetting to save this to a file in ~/systems, I found it again at
Anyways, where is systemctl? The system is refusing to see updates to
/etc/fstab without it, but as root, I get
-su: systemctl: command not found
And why am I suddenly seeing this -su: crap that I've never seen before? Yes, I have a password for root, and no, I don't use it for ANYTHING that doesn't absolutely require root, especially if I'll be doing more than one command. I've known better for decades ... simple mistakes can result in immediate disaster.
If I run "zsh -l" (login shell), it goes away, but it still doesn't find systemctl.
Anyways, if not "systemctl daemon-reload", how do you force the system to reload /etc/fstab without restarting? I just restored a long-dead 4 TB drive (was as simple as lsblk, fdisk, and mkfs) and lost another one (same process fails).
-su means you are currently used su to change to root (to open a shell).
systemctl should be available in your PATH, so either it is set incorrectly or the command does not exist at all.
-su means you are currently used su to change to root (to open a shell).
systemctl should be available in your PATH, so either it is set incorrectly or the command does not exist at all.
NOT in Slackware! This systemctl simply does NOT exists here.
NOT in Slackware! This systemctl simply does NOT exists here.
Yeah, got that. :-) Ok, so how DO I force a re-read of /etc/fstab without a restart? For some unknown reason, the newly restored 4 TB drive's UUID changed (confirmed by blkid). and while I corrected it in fstab, the system is still trying to mount the one that no longer exists.
I'm not about to restart just to force the system to update its view of fstab. That creates far too much stuff to restore (tiled tabs in Firefox that, while session manager is SUPPOSED to restore those, it doesn't. VLC windows for media in one virtual desktop, for music in the next one, re-starting pcloud (trivial, but yet another thing to do), and so on. The tiled tabs in Firefox are the major PITA to restore, but great once it's done.
So now the only question is, how do I get the system to re-read the actual file, /etc/fstab, instead of its version in memory?
Guess what? Slackware does NOT use systemd, so there is no systemctl for you.
Yes, I know, I know. You learned Slackware, you learned Linux. BUT that was 30 years ago. Go figure!
30 years ago? Yeah, that's about right. :-) 1992, to be exact.
But it wasn't Slackware for me, it was my own custom-build BSD 4.2 Linux (using bits and pieces from sunsite.org). Was a screamer on the old 486 I'd loaded it on ... but then, Linux has always been resource friendly.
I'm surprised that you have UUIDs in your fstab. AFAIR slackware still uses old-fashioned device names.
I was advised, in this forum, to use UUIDs, and they're FAR better than device names. No more ... ummm, where is this drive mounted this time, where's this one mounted, and so on. They just mount correctly and that's that.
Yeah, got that. :-) Ok, so how DO I force a re-read of /etc/fstab without a restart? For some unknown reason, the newly restored 4 TB drive's UUID changed (confirmed by blkid). and while I corrected it in fstab, the system is still trying to mount the one that no longer exists.
I'm not about to restart just to force the system to update its view of fstab. That creates far too much stuff to restore (tiled tabs in Firefox that, while session manager is SUPPOSED to restore those, it doesn't. VLC windows for media in one virtual desktop, for music in the next one, re-starting pcloud (trivial, but yet another thing to do), and so on. The tiled tabs in Firefox are the major PITA to restore, but great once it's done.
So now the only question is, how do I get the system to re-read the actual file, /etc/fstab, instead of its version in memory?
Ok, I got the new drive mounted. And the old 4 TB drive is mounted, too (error in fstab---somehow, "defaults" got clobbered with a few letters in the middle of it, and my cancer tumor/surgery/chemo damaged left occipital lobe ignored it for weeks until just a minute ago when it finally let me see it. And hen I did see that, the solution for that drive was obvious...remove the noise. No idea how it got there, but it's cleaned up now.
Now all three 4 TB drives are mounted using their UUIDs (and the newly-repaired drive is using its second UUID after changing somehoe from its first one)..
Thanks everyone for the assistance in getting this all working again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.