고쳐 쓰다

고쳐 쓰다

최근에 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


귀하의 상황과 버그 리포트의 상황에는 차이가 있습니다.

  • 귀하의 경우에는 스왑 파티션을 사용하고 있습니다
  • 버그 보고서의 경우 스왑 파일이 사용됩니다(따라서 스왑 파티션이 없다는 점에 유의해야 합니다).

관련 정보