Eu baixei uma imagem jessie raspbian e ela mostra duas partições.
[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 ~]$
Copiei a imagem para um SD que tinha sido usado anteriormente (desculpe, não tenho a saída fdisk
antes de copiar a imagem):
[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 ~]$
Inspecionar o dispositivo agora mostra o seguinte:
[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 ~]$
Por que as partições sdf5
, sdf6
e sdf7
ainda existem? Eles devem ser removidos e, em caso afirmativo, como?