Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #224228
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Cannot get systemd to forget about swap space on a failed disk |
| Date | 2020-06-30 09:20 +0200 |
| Message-ID | <AniIF-77N-1@gated-at.bofh.it> (permalink) |
| References | <Ani5Y-6Fh-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Bob McGowan wrote: > Please see thread with subject "Be careful when editing /etc/fstab" for > a bit of background. > > My computer had two swap partitions, on two different disks, when one of > them started to generate CRC errors, seek errors, etc. > > Once I determined which of the two it was, I commented out the > /etc/fstab entry for it, halted the system, removed the faulty disk and > rebooted. I got dumped into the "emergency rescue" single user mode, > after waiting several minutes for various "start jobs" to time out. > > Given the above referenced email, and the info in the links it > references, I would have thought that rebooting, with the modified fstab > file, should have worked just fine. > > However, as noted, it did not, so I must assume systemd has a unit (is > this the right term?) defining my original swap setup. > > I did find in man pages, that if both fstab and a systemd unit define > the same thing, systemd wins. > > That just reinforces the idea that somewhere, systemd knows the swap > disk devices. > > But I cannot figure out where this might be, or even if this is the > correct interpretation. > > Any suggestions on next steps greatly appreciated. > > Bob If you are using LVM - check LVM. If you keep the disk in the machine - remove the swap partition. Repeat the test. # find /lib/systemd/ | grep swap /lib/systemd/system/swap.target also # grep -i swap -r /lib/systemd/ Binary file /lib/systemd/systemd-udevd matches /lib/systemd/system/sysinit.target:Wants=local-fs.target swap.target /lib/systemd/system/sysinit.target:After=local-fs.target swap.target emergency.service emergency.target /lib/systemd/system/swap.target:Description=Swap /lib/systemd/system/systemd-journald-dev-log.socket:# Mount and swap units need this. If this socket unit is removed by an /lib/systemd/system/systemd-journald-dev-log.socket:# isolate request the mount and swap units would be removed too, /lib/systemd/system/systemd-journald.socket:# Mount and swap units need this. If this socket unit is removed by an /lib/systemd/system/systemd-journald.socket:# isolate request the mount and swap units would be removed too,
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Cannot get systemd to forget about swap space on a failed disk Bob McGowan <ramjr0915@gmail.com> - 2020-06-30 08:40 +0200
Re: Cannot get systemd to forget about swap space on a failed disk Reco <recoverym4n@enotuniq.net> - 2020-06-30 09:00 +0200
Re: Cannot get systemd to forget about swap space on a failed disk Bob McGowan <ramjr0915@gmail.com> - 2020-07-01 07:30 +0200
Re: Cannot get systemd to forget about swap space on a failed disk David Wright <deblis@lionunicorn.co.uk> - 2020-07-02 03:30 +0200
Re: Cannot get systemd to forget about swap space on a failed disk deloptes <deloptes@gmail.com> - 2020-06-30 09:20 +0200
csiph-web