
jessie raspbian 이미지를 다운로드했는데 두 개의 파티션이 표시됩니다.
[Michael@devserver ~]$ fdisk -l 2017-07-05-raspbian-jessie-lite.img
You must set cylinders.
You can do this from the extra functions menu.
Disk 2017-07-05-raspbian-jessie-lite.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa8790229
Device Boot Start End Blocks Id System
2017-07-05-raspbian-jessie-lite.img1 1 6 42702+ c W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
2017-07-05-raspbian-jessie-lite.img2 6 210 1638081 83 Linux
Partition 2 does not end on cylinder boundary.
[Michael@devserver ~]$
fdisk
이미지를 이전에 사용했던 SD에 복사했습니다(죄송합니다. 이미지를 복사하기 전에는 출력이 없었습니다).
[Michael@devserver ~]$ sudo dd bs=4M if=2017-07-05-raspbian-jessie-lite.img of=/dev/sdf
411+1 records in
411+1 records out
1725629563 bytes (1.7 GB) copied, 149.961 s, 11.5 MB/s
[Michael@devserver ~]$
이제 장치를 검사하면 다음이 표시됩니다.
[Michael@devserver ~]$ sudo fdisk -l /dev/sdf
Disk /dev/sdf: 31.9 GB, 31914983424 bytes
64 heads, 32 sectors/track, 30436 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa8790229
Device Boot Start End Blocks Id System
/dev/sdf1 5 46 42702+ c W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
/dev/sdf2 47 1646 1638081 83 Linux
Partition 2 does not end on cylinder boundary.
[Michael@devserver ~]$ lsblk -f /dev/sdf
NAME FSTYPE LABEL UUID MOUNTPOINT
sdf
├─sdf1
├─sdf2
├─sdf5
├─sdf6
└─sdf7
[Michael@devserver ~]$ cat /proc/partitions | grep sdf
8 80 31166976 sdf
8 81 1243951 sdf1
8 82 1 sdf2
8 85 32767 sdf5
8 86 67584 sdf6
8 87 29815296 sdf7
[Michael@devserver ~]$ sudo blkid /dev/sdf*
/dev/sdf1: LABEL="boot" UUID="109A-9113" TYPE="vfat"
[Michael@devserver ~]$
파티션 sdf5
, sdf6
, 및 파티션 sdf7
이 여전히 존재하는 이유는 무엇입니까? 제거해야합니까? 그렇다면 어떻게 삭제하나요?
답변1
이미지를 복사한 후 카드를 실행했거나 partprobe /dev/sdf
카드를 꺼냈다가 다시 삽입했습니까? 이렇게 하지 않으면 커널이 여전히 카드의 이전 파티션 테이블을 사용하고 있을 수 있습니다.
전체 디스크/SD 카드를 덮어쓰는 경우 커널에 파티션 테이블을 다시 읽어야 한다고 알려야 합니다. partprobe
가장 간단한 명령입니다.