차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | |||
temporary [2024/04/15 10:23] – baecy | temporary [2024/04/19 17:11] (현재) – baecy | ||
---|---|---|---|
줄 22: | 줄 22: | ||
=== Readline Colored Completion === | === Readline Colored Completion === | ||
[[https:// | [[https:// | ||
+ | |||
+ | === grub PARTUUID === | ||
+ | [[https:// | ||
+ | This is a 5 year old thread. But still it is imho not fully answered. There' | ||
+ | |||
+ | In this example: | ||
+ | |||
+ | /dev/sda3 = / | ||
+ | /dev/sda2 = swap | ||
+ | ...using a GPT partition. With MBR (dos partition) the PARTUUID' | ||
+ | |||
+ | get the PARTUUID' | ||
+ | <code cmdout=2,4 user=root> | ||
+ | blkid -s PARTUUID -o value /dev/sda3 # root | ||
+ | 77fd7830-faa2-4e99-a48b-337ad9eded28 | ||
+ | blkid -s PARTUUID -o value /dev/sda2 # swap | ||
+ | 5b63167a-6fd2-4e72-948c-90832372956c</ | ||
+ | / | ||
+ | <code lang=bash> | ||
+ | search --no-floppy --part-uuid --set=root 77fd7830-faa2-4e99-a48b-337ad9eded28 | ||
+ | |||
+ | menuentry " | ||
+ | linux / | ||
+ | }</ | ||
+ | / | ||
+ | <code lang=bash> | ||
+ | PARTUUID=77fd7830-faa2-4e99-a48b-337ad9eded28 / ext4 noatime, | ||
+ | PARTUUID=5b63167a-6fd2-4e72-948c-90832372956c swap swap pri=1 0 0</ | ||
+ | This is known to WORK with lfs8.1 (kernel 4.12.7) But i think it should work with most other kernels too (olders and newers...) |