Why does systemd wait for a disk not present in `fstab`?
up vote
1
down vote
favorite
My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:
(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.
This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?
I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.
boot systemd fstab uuid ecryptfs
add a comment |
up vote
1
down vote
favorite
My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:
(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.
This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?
I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.
boot systemd fstab uuid ecryptfs
Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Doesgrep -r 6bbb4ed8 /etcfind anything? Maybe the problem goes away if you rebuild the initrd. Perhapssystemd-analyze critical-chaingives you information where to find the reference.
– Hauke Laging
Oct 29 '17 at 11:39
@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:
(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.
This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?
I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.
boot systemd fstab uuid ecryptfs
My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:
(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.
This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?
I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.
boot systemd fstab uuid ecryptfs
boot systemd fstab uuid ecryptfs
edited Oct 29 '17 at 20:26
asked Oct 29 '17 at 11:15
emu
1064
1064
Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Doesgrep -r 6bbb4ed8 /etcfind anything? Maybe the problem goes away if you rebuild the initrd. Perhapssystemd-analyze critical-chaingives you information where to find the reference.
– Hauke Laging
Oct 29 '17 at 11:39
@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10
add a comment |
Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Doesgrep -r 6bbb4ed8 /etcfind anything? Maybe the problem goes away if you rebuild the initrd. Perhapssystemd-analyze critical-chaingives you information where to find the reference.
– Hauke Laging
Oct 29 '17 at 11:39
@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10
Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does
grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.– Hauke Laging
Oct 29 '17 at 11:39
Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does
grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.– Hauke Laging
Oct 29 '17 at 11:39
@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10
@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10
add a comment |
3 Answers
3
active
oldest
votes
up vote
1
down vote
Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).
add a comment |
up vote
0
down vote
accepted
The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:
cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Originally I had disabled this swap partition in fstab only, which is not enough.
Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.
Did you read thesystemd-cryptsetup(8)man page?
– Ignacio Vazquez-Abrams
Nov 7 '17 at 18:19
add a comment |
up vote
0
down vote
In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.
grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.
I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).
Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).
add a comment |
up vote
1
down vote
Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).
add a comment |
up vote
1
down vote
up vote
1
down vote
Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).
Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).
answered Oct 29 '17 at 20:19
Hauke Laging
55.1k1283130
55.1k1283130
add a comment |
add a comment |
up vote
0
down vote
accepted
The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:
cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Originally I had disabled this swap partition in fstab only, which is not enough.
Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.
Did you read thesystemd-cryptsetup(8)man page?
– Ignacio Vazquez-Abrams
Nov 7 '17 at 18:19
add a comment |
up vote
0
down vote
accepted
The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:
cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Originally I had disabled this swap partition in fstab only, which is not enough.
Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.
Did you read thesystemd-cryptsetup(8)man page?
– Ignacio Vazquez-Abrams
Nov 7 '17 at 18:19
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:
cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Originally I had disabled this swap partition in fstab only, which is not enough.
Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.
The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:
cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Originally I had disabled this swap partition in fstab only, which is not enough.
Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.
edited Nov 7 '17 at 18:14
answered Oct 29 '17 at 20:19
emu
1064
1064
Did you read thesystemd-cryptsetup(8)man page?
– Ignacio Vazquez-Abrams
Nov 7 '17 at 18:19
add a comment |
Did you read thesystemd-cryptsetup(8)man page?
– Ignacio Vazquez-Abrams
Nov 7 '17 at 18:19
Did you read the
systemd-cryptsetup(8) man page?– Ignacio Vazquez-Abrams
Nov 7 '17 at 18:19
Did you read the
systemd-cryptsetup(8) man page?– Ignacio Vazquez-Abrams
Nov 7 '17 at 18:19
add a comment |
up vote
0
down vote
In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.
grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.
I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).
Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.
grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.
I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).
Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
up vote
0
down vote
In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.
grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.
I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).
Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.
grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.
I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).
Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Nov 22 at 9:39
Alessandro.S
1
1
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401198%2fwhy-does-systemd-wait-for-a-disk-not-present-in-fstab%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does
grep -r 6bbb4ed8 /etcfind anything? Maybe the problem goes away if you rebuild the initrd. Perhapssystemd-analyze critical-chaingives you information where to find the reference.– Hauke Laging
Oct 29 '17 at 11:39
@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10