LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-31-2023, 08:38 AM   #1
JinxsDad
Member
 
Registered: Apr 2023
Location: Fort Walton Beach, FL
Distribution: Slackwareb15
Posts: 271

Rep: Reputation: 23
systemctl - where is it?


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

https://unix.stackexchange.com/quest...eload-of-fstab

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).

Thanks
 
Old 10-31-2023, 08:45 AM   #2
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 644

Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490
Code:
# mount -av
is one way to do it in SysVinit there are other similar commands also... but systemctl is for systemd systems...

Last edited by rizitis; 10-31-2023 at 08:47 AM.
 
1 members found this post helpful.
Old 10-31-2023, 08:48 AM   #3
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326
Quote:
Originally Posted by JinxsDad View Post
Anyways, where is systemctl?
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!

Last edited by LuckyCyborg; 10-31-2023 at 08:55 AM.
 
1 members found this post helpful.
Old 10-31-2023, 08:49 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,879

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
Quote:
Originally Posted by JinxsDad View Post
-su: systemctl: command not found
-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.
 
1 members found this post helpful.
Old 10-31-2023, 08:52 AM   #5
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326Reputation: 3326
Quote:
Originally Posted by pan64 View Post
-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.
 
1 members found this post helpful.
Old 10-31-2023, 09:02 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,879

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
Quote:
Originally Posted by LuckyCyborg View Post
NOT in Slackware! This systemctl simply does NOT exists here.
yes, that's what I wrote
 
1 members found this post helpful.
Old 10-31-2023, 09:07 AM   #7
JinxsDad
Member
 
Registered: Apr 2023
Location: Fort Walton Beach, FL
Distribution: Slackwareb15
Posts: 271

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by LuckyCyborg View Post
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?

Thanks
 
Old 10-31-2023, 09:12 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
I'm surprised that you have UUIDs in your fstab. AFAIR slackware still uses old-fashioned device names.
 
Old 10-31-2023, 09:13 AM   #9
JinxsDad
Member
 
Registered: Apr 2023
Location: Fort Walton Beach, FL
Distribution: Slackwareb15
Posts: 271

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by LuckyCyborg View Post
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.

Thanks
 
Old 10-31-2023, 09:16 AM   #10
JinxsDad
Member
 
Registered: Apr 2023
Location: Fort Walton Beach, FL
Distribution: Slackwareb15
Posts: 271

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by hazel View Post
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.

Thanks
 
Old 10-31-2023, 09:35 AM   #11
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 644

Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490
Quote:
Originally Posted by JinxsDad View Post
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?

Thanks
If command mount -av is not working then, from the link you gave: https://unix.stackexchange.com/a/671664
 
1 members found this post helpful.
Old 10-31-2023, 09:41 AM   #12
JinxsDad
Member
 
Registered: Apr 2023
Location: Fort Walton Beach, FL
Distribution: Slackwareb15
Posts: 271

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by rizitis View Post
If command mount -av is not working then, from the link you gave: https://unix.stackexchange.com/a/671664
Thanks. Hopefully that will solve it. Just sitting down to breakfast now, but will try later.

Thanks
 
1 members found this post helpful.
Old 10-31-2023, 11:58 AM   #13
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 644

Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490
... wrong post
 
Old 10-31-2023, 03:06 PM   #14
JinxsDad
Member
 
Registered: Apr 2023
Location: Fort Walton Beach, FL
Distribution: Slackwareb15
Posts: 271

Original Poster
Rep: Reputation: 23
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.

Edit: FOUR 4 TB drives, not three:

1) Media
2) Media (mirror)
3) /home
4) /backups

Last edited by JinxsDad; 10-31-2023 at 03:18 PM.
 
  


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] Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or grounddolphin Linux - Newbie 11 06-09-2023 05:34 PM
Restart systemctl*daemon​ - systemctl command not found cjosephl Linux - Newbie 7 11-11-2017 04:53 PM
sshd : redirecting to systemctl mohamed makhyoun Linux - Software 5 01-16-2012 12:25 AM
Fedora 15 - systemctl failures punt Fedora 5 05-31-2011 03:01 PM
Upgraded to Fedora 15 now OpenVPN doesn't work ... systemctl issue? Hanse42 Linux - Newbie 10 05-29-2011 10:32 AM

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

All times are GMT -5. The time now is 05:24 PM.

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