syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
393 stars 40 forks source link

Format does not work for M.2 disk #565

Closed cyberb closed 3 years ago

cyberb commented 3 years ago

Some disks hap prefix 'p' in their partition device names. Wrong: /dev/nvme0n11 Correct: /dev/nvme0n1p1

Jan 11 04:57:07 syncloud platform.backend[359]: 2021/01/11 04:57:07 Running storage format:  /snap/platform/current/bin/disk_format.sh /dev/nvme0n1
Jan 11 04:57:07 syncloud kernel: [108931.910644]  nvme0n1:
Jan 11 04:57:08 syncloud kernel: [108932.926010]  nvme0n1:
Jan 11 04:57:08 syncloud kernel: [108933.013195]  nvme0n1:
Jan 11 04:57:08 syncloud platform.backend[359]: 2021/01/11 04:57:08 request: /job/status
Jan 11 04:57:09 syncloud kernel: [108934.068369]  nvme0n1: p1
Jan 11 04:57:09 syncloud platform.backend[359]: 2021/01/11 04:57:09 Storage format output 1+0 records in
Jan 11 04:57:09 syncloud platform.backend[359]: 1+0 records out
Jan 11 04:57:09 syncloud platform.backend[359]: 512 bytes copied, 0.0921109 s, 5.6 kB/s
Jan 11 04:57:09 syncloud platform.backend[359]: #007Found valid GPT with corrupt MBR; using GPT and will write new
Jan 11 04:57:09 syncloud platform.backend[359]: protective MBR on save.
Jan 11 04:57:09 syncloud platform.backend[359]: The operation has completed successfully.
Jan 11 04:57:09 syncloud platform.backend[359]: The operation has completed successfully.
Jan 11 04:57:09 syncloud platform.backend[359]: Disk /dev/nvme0n1: 3907029168 sectors, 1.8 TiB
Jan 11 04:57:09 syncloud platform.backend[359]: Model: CT2000P1SSD8
Jan 11 04:57:09 syncloud platform.backend[359]: Sector size (logical/physical): 512/512 bytes
Jan 11 04:57:09 syncloud platform.backend[359]: Disk identifier (GUID): FEAF5974-F4F4-4ED1-A087-CDADD22DE422
Jan 11 04:57:09 syncloud platform.backend[359]: Partition table holds up to 128 entries
Jan 11 04:57:09 syncloud platform.backend[359]: Main partition table begins at sector 2 and ends at sector 33
Jan 11 04:57:09 syncloud platform.backend[359]: First usable sector is 34, last usable sector is 3907029134
Jan 11 04:57:09 syncloud platform.backend[359]: Partitions will be aligned on 2048-sector boundaries
Jan 11 04:57:09 syncloud platform.backend[359]: Total free space is 2014 sectors (1007.0 KiB)
Jan 11 04:57:09 syncloud platform.backend[359]: Number  Start (sector)    End (sector)  Size       Code  Name
Jan 11 04:57:09 syncloud platform.backend[359]:    1            2048      3907029134   1.8 TiB     8300
Jan 11 04:57:09 syncloud platform.backend[359]: mke2fs 1.44.5 (15-Dec-2018)
Jan 11 04:57:09 syncloud platform.backend[359]: The file /dev/nvme0n11 does not exist and no size was specified.
Jan 11 04:57:09 syncloud platform.backend[359]: 2021/01/11 04:57:09 Storage format failed: exit status 1