차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
temporary [2024/04/14 08:29] – baecy | temporary [2024/04/19 17:11] (현재) – baecy | ||
---|---|---|---|
줄 1: | 줄 1: | ||
=== chroot 상태 확인 ==== | === chroot 상태 확인 ==== | ||
- | PS1 설정에 사용할것 \\ | ||
from [[https:// | from [[https:// | ||
<code lang=bash> | <code lang=bash> | ||
## stat - Display file or file system status. | ## stat - Display file or file system status. | ||
- | ## | + | |
## -c --format=FORMAT | ## -c --format=FORMAT | ||
## output a newline after each use of FORMAT | ## output a newline after each use of FORMAT | ||
- | ## | + | |
## The valid format sequences for files (without --file-system): | ## The valid format sequences for files (without --file-system): | ||
## %d | ## %d | ||
## %i inode number | ## %i inode number | ||
+ | |||
## 현재 root의 device, inode가 / | ## 현재 root의 device, inode가 / | ||
+ | ## PS1에 적용하면 normal과 chroot간에 다른 PS1 사용 가능 | ||
if [ " | if [ " | ||
줄 18: | 줄 19: | ||
echo " | echo " | ||
fi</ | fi</ | ||
+ | |||
+ | === Readline Colored Completion === | ||
+ | [[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...) |