
최근에 SSD를 더 큰 SSD로 교체했습니다. 나는 사용했다클론질라기존 디스크를 새 디스크로 복제합니다. 그 후 나는GParted 라이브기존 파티션의 크기를 조정하려면 스왑 파티션을 디스크 끝으로 밀어넣습니다. 또한 Ubuntu 16.04에서 18.04로 업데이트했습니다.
위의 단계를 성공적으로 마친 후부팅시간이 많이 길어졌습니다. 나는 몇 가지 유사한 스레드(아래 링크)를 발견하고 거기에 제안된 것을 시도했습니다. 그러나 부팅 시간은 디스크 변경 전 수준으로 줄어들지 않았습니다.
내 원본은 다음과 같습니다 /etc/fstab
.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=e15b2ef7-c32d-46f5-a3a8-4bdc60285b4e / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=3a0c2581-52f2-4c92-9c4a-09d3f0258c05 none swap sw 0 0
/dev/disk/by-id/usb-Generic_USB_Flash_Disk-0:0 /mnt/usb-Generic_USB_Flash_Disk-0:0 auto nosuid,nodev,nofail,x-gvfs-show 0 0
이미 파티션을 살펴보며 파티션 UUID
을 교체했습니다.swap
블키드명령 출력:
/dev/sda1: UUID="e15b2ef7-c32d-46f5-a3a8-4bdc60285b4e" TYPE="ext4" PARTUUID="000d7e8b-01"
/dev/sda5: LABEL="swap" UUID="839f9d78-77b2-491d-808d-8cd551a9eeef" TYPE="swap" PARTUUID="000d7e8b-05"
/dev/disk/by-id/usb-..
나는 또한 이것이 내가 GParted Live를 부팅한 USB 스틱이라고 믿기 때문에 주석을 달았습니다 . 왜 아직도 거기에 정의되어 있는지 모르겠습니다.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=e15b2ef7-c32d-46f5-a3a8-4bdc60285b4e / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
# UUID=3a0c2581-52f2-4c92-9c4a-09d3f0258c05 none swap sw 0 0
UUID=839f9d78-77b2-491d-808d-8cd551a9eeef none swap sw 0 0
# /dev/disk/by-id/usb-Generic_USB_Flash_Disk-0:0 /mnt/usb-Generic_USB_Flash_Disk-0:0 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/var/log/boot.log
다음을 보여줍니다 .
Starting Tell Plymouth To Write Out Runtime Data...
[ OK ] Started Braille Device Support.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Starting Load/Save RF Kill Switch Status...
[ OK ] Started Braille Device Support.
[ OK ] Started Load/Save RF Kill Switch Status.
[ OK ] Reached target Sound Card.
[ OK ] Started Braille Device Support.
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
[ OK ] Started Raise network interfaces.
[ TIME ] Timed out waiting for device dev-disk-by\x2did-usb\x2dGeneric_USB_Flash_Disk\x2d0:0.device.
[DEPEND] Dependency failed for /mnt/usb-Generic_USB_Flash_Disk-0:0.
[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-3a0c2581\x2d52f2\x2d4c92\x2d9c4a\x2d09d3f0258c05.device.
[DEPEND] Dependency failed for /dev/disk/by-uuid/3a0c2581-52f2-4c92-9c4a-09d3f0258c05.
[DEPEND] Dependency failed for Swap.
[ OK ] Reached target System Initialization.
[ OK ] Listening on UUID daemon activation socket.
[ OK ] Listening on PC/SC Smart Card Daemon Activation Socket.
[ OK ] Started Daily apt download activities.
...
그만큼시스템 분석명령은 다음과 같이 알려줍니다.
Startup finished in 36.037s (kernel) + 10.847s (userspace) = 46.885s
graphical.target reached after 10.835s in userspace
부팅 시간을 개선하려면 어떻게 해야 합니까?
업데이트
오늘 다시 조사한 결과 /var/log/boot.log
이 결과를 찾았습니다.타임아웃장치를 검색할 때!:
Starting Tell Plymouth To Write Out Runtime Data...
[ OK ] Started Braille Device Support.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Starting Load/Save RF Kill Switch Status...
[ OK ] Started Braille Device Support.
[ OK ] Started Load/Save RF Kill Switch Status.
[ OK ] Reached target Sound Card.
[ OK ] Started Braille Device Support.
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
[ OK ] Started Raise network interfaces.
[* ] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[** ] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[*** ] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[ *** ] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[ *** ] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[ ***] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[ **] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[ *] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[ **] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[ ***] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[ *** ] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[ *** ] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[*** ] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[** ] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[* ] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
[** ] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[*** ] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[ *** ] (2 of 2) A start job is running for dev-disk-by\x2duuid-3a0c2581\x2d5
[ *** ] (1 of 2) A start job is running for dev-disk-by\x2did-usb\x2dGeneric_
...
[ TIME ] Timed out waiting for device dev-disk-by\x2did-usb\x2dGeneric_USB_Flash_Disk\x2d0:0.device.
[DEPEND] Dependency failed for /mnt/usb-Generic_USB_Flash_Disk-0:0.
[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-3a0c2581\x2d52f2\x2d4c92\x2d9c4a\x2d09d3f0258c05.device.
[DEPEND] Dependency failed for /dev/disk/by-uuid/3a0c2581-52f2-4c92-9c4a-09d3f0258c05.
[DEPEND] Dependency failed for Swap.
[ OK ] Reached target System Initialization.
[ OK ] Listening on UUID daemon activation socket.
[ OK ] Listening on PC/SC Smart Card Daemon Activation Socket.
...
관련된
답변1
'이력서' 파일이 있는 것 같아요
/etc/initramfs-tools/conf.d/resume
더 이상 찾을 수 없는 UUID를 가리킵니다. 스왑 파티션의 올바른 UUID를 가리키도록 해당 파일을 수정하고 다음을 실행할 수 있습니다.
sudo update-initramfs -u
버그 보고서에 대한 다음 링크의 의견 #16 및 #17을 참조하세요.
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1763611
귀하의 사례와 버그 리포트의 사례에는 차이가 있습니다.
- 귀하의 경우에는 스왑 파티션을 사용하고 있습니다
- 버그 보고서의 경우 스왑 파일이 사용됩니다(따라서 가리켜야 하는 스왑 파티션이 없습니다).