Wed 13:29
Unless it's just an example for the question here, cp over sshfs can almost certainly be more efficiently handled with either scp or rsync. And you won't get the side-effect (bug?) you're describing here
 
Jun 30 10:22
When you say you tried write myuser pts/0, did you actually use the six characters myuser or was it really write vtian pts/0?
 

 /dev/chat

General discussion for unix.stackexchange.com. If you have a q...
Jun 16 15:32
:-)
Jun 16 15:31
@JeffSchaller thank you - much more polite and intentional now!
Jun 16 14:57
Thanks Jeff. unix.stackexchange.com/questions/797050/… the second sentence is supposed to read "If you stop creating local accounts…"
Jun 16 07:22
@Kusalananda are you and the other mods able to edit comments? If so could you fix one of mine for me please? I'm not ready to delete it but there are a couple of autocorrect typos I'd really rather weren't there
Feb 24 22:51
@ilkkachu thank you for editing the shift. I must have copied and pasted an ancient piece of code to have left my original in there!
Jan 10 18:18
Not convinced that Different dollars! is a duplicate. To my mind the question being asked shows that the OP doesn't even realise that $1 is a command argument. But I can't just vote for a reopen as I (think I've) got enough privileges simply to hammer it open again. @StephenKitt?
Jul 24, 2024 11:35
Interesting - I don't see many dependency problems with Debian. I mostly run servers, mind. I do have a couple of desktop-focussed systems that have Backports included, and those can get really upset when upgrading to the next major version
Jul 24, 2024 10:11
I've been on Debian since I switched from (IIRC) Pink Hat Linux after getting fed up with rpm dependency hell (there was no yum, but there was apt-get)
Jul 23, 2024 17:06
Official - Arch, Debian, Ubuntu, Kali, Fedora, Alpine
Jul 23, 2024 17:01
There's Debian and Ubuntu, so we do have alternatives to punt people towards
Jul 23, 2024 16:59
@terdon Looks like there's network enabled in WSL Kali by default, yes. No raw access to network interfaces, so I'm not entirely sure what use Kali is in this situation
 
Jul 16, 2024 10:52
Useful references
- [Set systemd service to execute after fstab mount](https://unix.stackexchange.com/q/246935/100397)
- [How to properly replace a package's service unit file by a custom version](https://unix.stackexchange.com/q/575157/100397)
Jul 16, 2024 10:40
READ THE INSTRUCTIONS IN THE FILE. Add these next two lines to the blank space near the top, write out the file, and reboot:

[Unit]
After=syslogs.mount
Jul 16, 2024 10:34
Using your favourite editor (I like setting export EDITOR=vi but you may prefer something different, such as the default), run systemctl edit rsyslog.service
Jul 16, 2024 10:33
We need to change rsyslog.service so that it is dependent on syslogs.mount
Jul 16, 2024 10:32
If you run systemctl list-dependencies you'll see two relevant entries, one for rsyslog and one for your filesystem mount, something like syslogs.mount
Jul 16, 2024 10:30
When you're back to a point where the files are in the right place and you've disk space available on / once more, you can continue...
Jul 16, 2024 10:30
systemctl stop rsyslog; systemctl disable rsyslog
Jul 16, 2024 10:29
Stop and disable the syslogger, rsyslog and repeat everything we've done here. Then we'll need to change the dependency so that the logger doesn't start until your disk is mounted
Jul 15, 2024 07:38
In that case I would say that whatever is logging is starting before you mount the separate filesystem on /syslogs. You need to fix that dependency
Jul 10, 2024 21:44
@Beckyboo any progress?
Jul 9, 2024 15:41
Remember that telnet isn't the same as ssh. Did you start the ssh server on a different port, or perhaps it's firewalled off? Have you told Azure that it's to allow inbound ssh traffic?
Jul 9, 2024 13:20
OK. You can log in to the serial console?
Jul 9, 2024 12:59
Sure. You've got a recipe now in my answer (with /mnt and /mnt/root) to check underneath the /syslogs mount point to ensure nothing's being written there unexpectedly
Jul 9, 2024 12:58
Unfortunately I'm not sure enough about the interactions inside systemd to be able to advise you how to do that. It might be sufficient just to have /syslogs in your /etc/fstab and systemd will do the right thing. But I don't know
Jul 9, 2024 12:57
You need to get /syslogs mounted before rsyslogd starts
Jul 9, 2024 12:56
You've got rsyslog configured to write its log files to /syslogs. That's fine. But I think it's starting before you've mounted your extra disk on /syslogs, so it's writing to what are now hidden files on the / filesystem instead of visible files in the /syslog filesystem
Jul 9, 2024 12:55
This may have fixed it properly, or it may have only fixed it temporarily. Here's my theory ...
Jul 9, 2024 12:55
Last things then: cd / and then umount /lost+found
Jul 9, 2024 12:55
Is that good or bad?
Jul 9, 2024 12:54
Yay! You've got your disk space back
Jul 9, 2024 12:52
Now df -h / again please
Jul 9, 2024 12:52
OK. So please run `killall -HUP rsyslogd` This won't kill `rsyslogd`, rather it will send a signal to tell it to reopen its files
`
Jul 9, 2024 12:44
Great. That's good news. So there's nothing anymore in there. But you're saying that df -h / is still showing 100% used, so we need to look elsewhere. Please try lsof |awk '/deleted/ {print $1}' | sort -u | xargs and include the output here.
Jul 9, 2024 12:34
What do you get from running du -hxs /lost+found/syslogs
Jul 9, 2024 12:33
You're trying to kill the grep command - look at the output - which of course has already finished by the time you get round to trying to kill it
Jul 9, 2024 10:16
OK. Has the disk space on / reduced at all? (run df -h /)
Jul 9, 2024 09:55
you want to save, copy, or delete files from /lost+found/syslogs NOT from /syslogs
Jul 9, 2024 09:47
Careful. You're in your real /syslogs directory there. That's presumably where you DON'T want to delete things
Jul 9, 2024 09:11
Yes. Because it's hidden by your //logs.windows.net/sys mount on /syslogs
Jul 9, 2024 09:10
No worries. Call me back with @chrisdavies when you're done
Jul 9, 2024 09:08
The target is to have /lost+found/syslogs empty
Jul 9, 2024 09:08
OK. So having exposed the original /syslogs as /lost+found/syslogs you can access the files and move them out of there or delete them. That will reduce the disk used on /
Jul 9, 2024 09:05
Still with me?
Jul 9, 2024 09:05
However, /syslogs is not mounted on /lost+found/syslogs so we can see the files that it's hiding
Jul 9, 2024 09:04
I chose (b), and suggested originally you put it at /mnt/root. You couldn't do that so we have temporarily repurposed a different directory, /lost+found. So now the filesystem on / is ** the same ** filesystem that's mounted on /lost+found.
Jul 9, 2024 09:03
OK. So I reckoned you have a load of files in the hidden /syslogs, and it's these that are taking up your disk space. But we can't get to them directly. At this point we have two options: (a) unmount /syslogs so we can see if there are (still) files there, and (b) create a "bind mount" that reproduces / at a different point, but without the additionally mounted filesystems
Jul 9, 2024 08:58
This means that you cannot see what's on the root filesystem (/) under its own /syslogs - you can only see what's in the filesystem that is currently mounted on /syslogs. Yes?