![여러 파티션이 있는 레이아웃을 램디스크로 가져오는 방법이 있습니까?](https://linux55.com/image/149743/%EC%97%AC%EB%9F%AC%20%ED%8C%8C%ED%8B%B0%EC%85%98%EC%9D%B4%20%EC%9E%88%EB%8A%94%20%EB%A0%88%EC%9D%B4%EC%95%84%EC%9B%83%EC%9D%84%20%EB%9E%A8%EB%94%94%EC%8A%A4%ED%81%AC%EB%A1%9C%20%EA%B0%80%EC%A0%B8%EC%98%A4%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F.png)
디스크의 파티션 레이아웃을 덤프했습니다. 여기서:
sfdisk -d /dev/sda > part_table
cat part_table
산출
label: dos
label-id: 0x0004bc49
device: /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= 131072, type=83
/dev/sda2 : start= 133120, size= 131072, type=83
/dev/sda3 : start= 264192, size= 131072, type=83
/dev/sda4 : start= 395264, size= 234045440, type=5
/dev/sda5 : start= 397312, size= 131072, type=af
/dev/sda6 : start= 530432, size= 131072, type=83
/dev/sda7 : start= 663552, size= 131072, type=83
/dev/sda8 : start= 796672, size= 131072, type=83
/dev/sda9 : start= 929792, size= 131072, type=7
이 파티션 레이아웃을 램디스크로 가져올 수 있는 방법이 있나요?
답변1
sfdisk
출력을 사용하여 새 파티션 테이블을 생성할 수 있습니다.
sfdisk /dev/ram <part_table
당신이 정말 대담한(또는 구식)이라면 다음을 사용할 수도 있습니다.dd
dd if=/dev/sda of=/tmp/sda-mbr.bin bs=512 count=1
dd if=sda-mbr.bin of=/dev/ram0 bs=1 count=64 skip=446 seek=446