Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 4095 2048 1M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 4095 2048 83 Linux 0/32/33 0/65/1
-------------------
Create 2nd primary partition
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 4095 2048 1M 83 Linux
-<removed>2 4096 20479 16384 8M a5 FreeBSD
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 4095 2048 83 Linux 0/32/33 0/65/1
+<removed>2 4096 20479 16384 a5 FreeBSD 62/4/1 310/19/1
-------------------
Create default BSD
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 1 1 1 7.8M 83 Linux
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 1 1 1 83 Linux 0/1/1 0/254/63
-------------------
Set partition type
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 1 1 1 7.8M bf Solaris
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 1 1 1 bf Solaris 0/1/1 0/254/63
-------------------
Set primary partition active
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 * 1 1 1 7.8M bf Solaris
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 * 1 1 1 bf Solaris 0/1/1 0/254/63 80
-------------------
Re-create primary partition
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 1 1 1 7.8M 83 Linux
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 1 1 1 83 Linux 0/1/1 0/254/63
-------------------
Create extended partition
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 1 1 1 7.8M 83 Linux
-<removed>2 2 12 12 86.3M 5 Extended
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 1 1 1 83 Linux 0/1/1 0/254/63
+<removed>2 2 12 12 5 Extended 1/0/1 11/254/63
-------------------
Create logical partitions
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 1 1 1 7.8M 83 Linux
-<removed>2 2 12 12 86.3M 5 Extended
-<removed>5 2 3 2 15.7M 83 Linux
-<removed>6 4 5 2 15.7M 83 Linux
-<removed>7 6 7 2 15.7M 83 Linux
-<removed>8 8 9 2 15.7M 83 Linux
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 1 1 1 83 Linux 0/1/1 0/254/63
+<removed>2 2 12 12 5 Extended 1/0/1 11/254/63
+<removed>5 2 3 2 83 Linux 1/1/1 2/254/63
+<removed>6 4 5 2 83 Linux 3/1/1 4/254/63
+<removed>7 6 7 2 83 Linux 5/1/1 6/254/63
+<removed>8 8 9 2 83 Linux 7/1/1 8/254/63
-------------------
Delete logical partitions
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 1 1 1 7.8M 83 Linux
-<removed>2 2 12 12 86.3M 5 Extended
-<removed>5 6 7 2 15.7M 83 Linux
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 1 1 1 83 Linux 0/1/1 0/254/63
+<removed>2 2 12 12 5 Extended 1/0/1 11/254/63
+<removed>5 6 7 2 83 Linux 5/1/1 6/254/63
-------------------
Create another logical partition
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>1 1 1 1 7.8M 83 Linux
-<removed>2 2 12 12 86.3M 5 Extended
-<removed>5 6 7 2 15.7M 83 Linux
-<removed>6 2 3 2 15.7M 83 Linux
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 1 1 1 83 Linux 0/1/1 0/254/63
+<removed>2 2 12 12 5 Extended 1/0/1 11/254/63
+<removed>5 6 7 2 83 Linux 5/1/1 6/254/63
+<removed>6 2 3 2 83 Linux 1/1/1 2/254/63
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Cylinders Size Id Type
-<removed>2 2 12 12 86.3M 5 Extended
-<removed>5 6 7 2 15.7M 83 Linux
-<removed>6 2 3 2 15.7M 83 Linux
+Device Boot Start End Cylinders Id Type Start-C/H/S End-C/H/S Attrs
+<removed>2 2 12 12 5 Extended 1/0/1 11/254/63
+<removed>5 6 7 2 83 Linux 5/1/1 6/254/63
+<removed>6 2 3 2 83 Linux 1/1/1 2/254/63
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>3 12288 40959 28672 14M 5 Extended
-<removed>5 26624 30719 4096 2M 83 Linux
-<removed>6 14336 18431 4096 2M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>3 12288 40959 28672 5 Extended 0/195/4 2/140/10
+<removed>5 26624 30719 4096 83 Linux 1/167/39 1/232/39
+<removed>6 14336 18431 4096 83 Linux 0/227/36 1/37/36
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 * 2048 8191 6144 3M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 * 2048 8191 6144 83 Linux 0/32/33 0/130/2 80
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 8191 6144 3M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 8191 6144 83 Linux 0/32/33 0/130/2
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>2 8192 12287 4096 2M 83 Linux
-<removed>3 12288 40959 28672 14M 5 Extended
-<removed>5 26624 30719 4096 2M 83 Linux
-<removed>6 14336 18431 4096 2M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>2 8192 12287 4096 83 Linux 117/1/1 175/18/2
+<removed>3 12288 40959 28672 5 Extended 0/195/4 2/140/10
+<removed>5 26624 30719 4096 83 Linux 1/167/39 1/232/39
+<removed>6 14336 18431 4096 83 Linux 0/227/36 1/37/36
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 8191 6144 3M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 8191 6144 83 Linux 7/107/1 31/34/2
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 8191 6144 3M 83 Linux
-<removed>2 8192 12287 4096 2M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 8191 6144 83 Linux 7/107/1 31/34/2
+<removed>2 8192 12287 4096 83 Linux 117/1/1 175/18/2
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 8191 6144 3M 83 Linux
-<removed>2 8192 12287 4096 2M 83 Linux
-<removed>3 12288 40959 28672 14M 5 Extended
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 8191 6144 83 Linux 7/107/1 31/34/2
+<removed>2 8192 12287 4096 83 Linux 117/1/1 175/18/2
+<removed>3 12288 40959 28672 5 Extended 0/195/4 2/140/10
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 20000 40959 20960 10.2M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 20000 40959 20960 83 Linux 1/62/30 2/140/10
-------------------
Create 2nd primary at the begin of device
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 20000 40959 20960 10.2M 83 Linux
-<removed>2 2048 19999 17952 8.8M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 20000 40959 20960 83 Linux 1/62/30 2/140/10
+<removed>2 2048 19999 17952 83 Linux 1/63/9 14/25/10
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 8191 6144 3M 83 Linux
-<removed>2 8192 12287 4096 2M 83 Linux
-<removed>3 12288 40959 28672 14M 5 Extended
-<removed>5 14336 18431 4096 2M 83 Linux
-<removed>6 20480 24575 4096 2M 83 Linux
-<removed>7 26624 30719 4096 2M 83 Linux
-<removed>8 32768 36863 4096 2M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 8191 6144 83 Linux 7/107/1 31/34/2
+<removed>2 8192 12287 4096 83 Linux 117/1/1 175/18/2
+<removed>3 12288 40959 28672 5 Extended 0/195/4 2/140/10
+<removed>5 14336 18431 4096 83 Linux 0/227/36 1/37/36
+<removed>6 20480 24575 4096 83 Linux 1/70/6 1/135/6
+<removed>7 26624 30719 4096 83 Linux 1/167/39 1/232/39
+<removed>8 32768 36863 4096 83 Linux 2/10/9 2/75/9
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 8191 6144 3M 83 Linux
-<removed>2 8192 12287 4096 2M 83 Linux
-<removed>3 12288 40959 28672 14M 5 Extended
-<removed>5 26624 30719 4096 2M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 8191 6144 83 Linux 7/107/1 31/34/2
+<removed>2 8192 12287 4096 83 Linux 117/1/1 175/18/2
+<removed>3 12288 40959 28672 5 Extended 0/195/4 2/140/10
+<removed>5 26624 30719 4096 83 Linux 1/167/39 1/232/39
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 8191 6144 3M 83 Linux
-<removed>2 8192 12287 4096 2M 83 Linux
-<removed>3 12288 40959 28672 14M 5 Extended
-<removed>5 26624 30719 4096 2M 83 Linux
-<removed>6 14336 18431 4096 2M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 8191 6144 83 Linux 7/107/1 31/34/2
+<removed>2 8192 12287 4096 83 Linux 117/1/1 175/18/2
+<removed>3 12288 40959 28672 5 Extended 0/195/4 2/140/10
+<removed>5 26624 30719 4096 83 Linux 1/167/39 1/232/39
+<removed>6 14336 18431 4096 83 Linux 0/227/36 1/37/36
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 4096 6143 2048 1M 83 Linux
-<removed>2 2048 4095 2048 1M 83 Linux
-<removed>3 6144 8191 2048 1M 83 Linux
-<removed>4 8192 40959 32768 16M 5 Extended
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 4096 6143 2048 83 Linux 0/65/2 0/97/33
+<removed>2 2048 4095 2048 83 Linux 0/32/33 0/65/1
+<removed>3 6144 8191 2048 83 Linux 0/97/34 0/130/2
+<removed>4 8192 40959 32768 5 Extended 0/130/3 2/140/10
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 4096 6143 2048 1M 83 Linux
-<removed>2 2048 4095 2048 1M 83 Linux
-<removed>3 6144 8191 2048 1M 83 Linux
-<removed>4 8192 40959 32768 16M 5 Extended
-<removed>5 14336 16383 2048 1M 83 Linux
-<removed>6 22528 24575 2048 1M 83 Linux
-<removed>7 18432 20479 2048 1M 83 Linux
-<removed>8 10240 12287 2048 1M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 4096 6143 2048 83 Linux 0/65/2 0/97/33
+<removed>2 2048 4095 2048 83 Linux 0/32/33 0/65/1
+<removed>3 6144 8191 2048 83 Linux 0/97/34 0/130/2
+<removed>4 8192 40959 32768 5 Extended 0/130/3 2/140/10
+<removed>5 14336 16383 2048 83 Linux 0/227/36 1/5/4
+<removed>6 22528 24575 2048 83 Linux 1/102/38 1/135/6
+<removed>7 18432 20479 2048 83 Linux 1/37/37 1/70/5
+<removed>8 10240 12287 2048 83 Linux 0/162/35 0/195/3
Partition table entries are not in disk order.
-------------------
Disklabel type: dos
Disk identifier: <removed>
-Device Boot Start End Sectors Size Id Type
-<removed>1 2048 4095 2048 1M 83 Linux
-<removed>2 4096 6143 2048 1M 83 Linux
-<removed>3 6144 8191 2048 1M 83 Linux
-<removed>4 8192 40959 32768 16M 5 Extended
-<removed>5 10240 12287 2048 1M 83 Linux
-<removed>6 14336 16383 2048 1M 83 Linux
-<removed>7 18432 20479 2048 1M 83 Linux
-<removed>8 22528 24575 2048 1M 83 Linux
+Device Boot Start End Sectors Id Type Start-C/H/S End-C/H/S Attrs
+<removed>1 2048 4095 2048 83 Linux 0/32/33 0/65/1
+<removed>2 4096 6143 2048 83 Linux 0/65/2 0/97/33
+<removed>3 6144 8191 2048 83 Linux 0/97/34 0/130/2
+<removed>4 8192 40959 32768 5 Extended 0/130/3 2/140/10
+<removed>5 10240 12287 2048 83 Linux 0/162/35 0/195/3
+<removed>6 14336 16383 2048 83 Linux 0/227/36 1/5/4
+<removed>7 18432 20479 2048 83 Linux 1/37/37 1/70/5
+<removed>8 22528 24575 2048 83 Linux 1/102/38 1/135/6
-------------------
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / <removed> bytes
Disklabel type: sun
+Label ID: Linux cyl 325 alt 0 hd 1 sec 63
+Rpm: 5400
+Alternate cylinders: 0
+Physical cylinders: 325
+Extra sects/cyl: 0
+Interleave: 1
Create first partition
e730c7ec8208601f41963f0485147248 sunlabel.img
Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / <removed> bytes
Disklabel type: sun
+Label ID: Linux cyl 325 alt 0 hd 1 sec 63
+Rpm: 5400
+Alternate cylinders: 0
+Physical cylinders: 325
+Extra sects/cyl: 0
+Interleave: 1
-Device Start End Cylinders Size Id Type Flags
-<removed>1 1 128 129 3.9M 83 Linux native
+Device Start End Cylinders Size Id Type Flags
+<removed>1 1 128 129 4128768 83 Linux native
Set partition sysid
df75defdb97fbd56222aed18631a22d0 sunlabel.img
Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / <removed> bytes
Disklabel type: sun
+Label ID: Linux cyl 325 alt 0 hd 1 sec 63
+Rpm: 5400
+Alternate cylinders: 0
+Physical cylinders: 325
+Extra sects/cyl: 0
+Interleave: 1
-Device Start End Cylinders Size Id Type Flags
-<removed>1 1 128 129 3.9M 4 SunOS usr
+Device Start End Cylinders Size Id Type Flags
+<removed>1 1 128 129 4128768 4 SunOS usr
Set first partition readonly
da23f66698d9a553162887621d4c7490 sunlabel.img
Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / <removed> bytes
Disklabel type: sun
+Label ID: Linux cyl 325 alt 0 hd 1 sec 63
+Rpm: 5400
+Alternate cylinders: 0
+Physical cylinders: 325
+Extra sects/cyl: 0
+Interleave: 1
-Device Start End Cylinders Size Id Type Flags
-<removed>1 1 128 129 3.9M 4 SunOS usr r
+Device Start End Cylinders Size Id Type Flags
+<removed>1 1 128 129 4128768 4 SunOS usr r
Set first partition mountable
3ab76e8491b103eab52b2ae1856c1e30 sunlabel.img
Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / <removed> bytes
Disklabel type: sun
+Label ID: Linux cyl 325 alt 0 hd 1 sec 63
+Rpm: 5400
+Alternate cylinders: 0
+Physical cylinders: 325
+Extra sects/cyl: 0
+Interleave: 1
-Device Start End Cylinders Size Id Type Flags
-<removed>1 1 128 129 3.9M 4 SunOS usr ur
+Device Start End Cylinders Size Id Type Flags
+<removed>1 1 128 129 4128768 4 SunOS usr ur
Create second partition
Welcome to fdisk <removed>.
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / <removed> bytes
Disklabel type: sun
+Label ID: Linux cyl 325 alt 0 hd 1 sec 63
+Rpm: 5400
+Alternate cylinders: 0
+Physical cylinders: 325
+Extra sects/cyl: 0
+Interleave: 1
-Device Start End Cylinders Size Id Type Flags
-<removed>1 1 128 129 3.9M 4 SunOS usr ur
-<removed>2 129 325 198 6.1M 83 Linux native
+Device Start End Cylinders Size Id Type Flags
+<removed>1 1 128 129 4128768 4 SunOS usr ur
+<removed>2 129 325 198 6354432 83 Linux native
Delete all partitions
502ba7a0cfdce2849c3a99881f0590c3 sunlabel.img
function print_layout {
echo -ne "\n---layout----------\n" >> $TS_OUTPUT
- $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+ $TS_CMD_FDISK -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
echo -ne "-------------------\n\n" >> $TS_OUTPUT
}
function print_layout {
echo -ne "\n---layout----------\n" >> $TS_OUTPUT
- $TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+ $TS_CMD_FDISK ${FDISK_OPTIONS} -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
echo -ne "-------------------\n\n" >> $TS_OUTPUT
}
function print_layout {
echo -ne "\n---layout----------\n" >> $TS_OUTPUT
- $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+ $TS_CMD_FDISK -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
echo -ne "-------------------\n\n" >> $TS_OUTPUT
ts_fdisk_clean ${TEST_IMAGE_NAME}
function print_layout {
echo -ne "\n---layout----------\n" >> $TS_OUTPUT
- $TS_CMD_FDISK -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+ $TS_CMD_FDISK -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
echo -ne "-------------------\n\n" >> $TS_OUTPUT
}
ts_log "---Empty image listing" # this should report empty partition table
# TEST_IMAGE_NAME has absolute path, and is by definition different on each computer, we need to sed it away
-$TS_CMD_FDISK -c=dos -u=cylinders -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_FDISK -c=dos -u=cylinders -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT 2>> $TS_ERRLOG
sed -i -e "s/${TEST_IMAGE_NAME//\//\\/}/testimage/" $TS_OUTPUT $TS_ERRLOG
#
# Errors
#
ts_logerr "---Nonexistent file"
-$TS_CMD_FDISK -c=dos -u=cylinders -l _a_file_that_does_not_exist_ >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_FDISK -c=dos -u=cylinders -x _a_file_that_does_not_exist_ >> $TS_OUTPUT 2>> $TS_ERRLOG
sed -i -e "s@$($TS_HELPER_STRERROR ENOENT)@ENOENT@" $TS_OUTPUT $TS_ERRLOG
ts_logerr "---Too small file"
echo "This file is too small" >> oddinput.toosmall
-$TS_CMD_FDISK -c=dos -u=cylinders -l oddinput.toosmall >> $TS_OUTPUT 2>> $TS_ERRLOG
+$TS_CMD_FDISK -c=dos -u=cylinders -x oddinput.toosmall >> $TS_OUTPUT 2>> $TS_ERRLOG
sed -i -e "s@$($TS_HELPER_STRERROR EINVAL)@EINVAL@" $TS_OUTPUT $TS_ERRLOG
rm oddinput.toosmall
ts_finalize
| $TS_CMD_FDISK --noauto-pt ${FDISK_OPTIONS} ${TEST_IMAGE_NAME} &> /dev/null
ts_image_md5sum >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+$TS_CMD_FDISK ${FDISK_OPTIONS} -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
ts_log "Create first partition"
echo -e "${FDISK_CMD_CREATE_PRIMARY}${FDISK_CMD_WRITE_CLOSE}" | \
$TS_CMD_FDISK ${FDISK_OPTIONS} ${TEST_IMAGE_NAME} &> /dev/null
ts_image_md5sum >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+$TS_CMD_FDISK ${FDISK_OPTIONS} -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
ts_log "Set partition sysid"
echo -e "${FDISK_CMD_CHANGE_SYSID}${FDISK_CMD_WRITE_CLOSE}" | \
$TS_CMD_FDISK ${FDISK_OPTIONS} ${TEST_IMAGE_NAME} &> /dev/null
ts_image_md5sum >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+$TS_CMD_FDISK ${FDISK_OPTIONS} -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
ts_log "Set first partition readonly"
echo -e "${FDISK_CMD_TOGGLE_READONLY}${FDISK_CMD_WRITE_CLOSE}" | \
$TS_CMD_FDISK ${FDISK_OPTIONS} ${TEST_IMAGE_NAME} &> /dev/null
ts_image_md5sum >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+$TS_CMD_FDISK ${FDISK_OPTIONS} -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
ts_log "Set first partition mountable"
echo -e "${FDISK_CMD_TOGGLE_MOUNTABLE}${FDISK_CMD_WRITE_CLOSE}" | \
$TS_CMD_FDISK ${FDISK_OPTIONS} ${TEST_IMAGE_NAME} &> /dev/null
ts_image_md5sum >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+$TS_CMD_FDISK ${FDISK_OPTIONS} -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
ts_log "Create second partition"
echo -e "${FDISK_CMD_CREATE_SECONDARY}${FDISK_CMD_WRITE_CLOSE}" | \
$TS_CMD_FDISK ${FDISK_OPTIONS} ${TEST_IMAGE_NAME} >> $TS_OUTPUT 2>> $TS_ERRLOG
ts_image_md5sum >> $TS_OUTPUT 2>> $TS_ERRLOG
-$TS_CMD_FDISK ${FDISK_OPTIONS} -l ${TEST_IMAGE_NAME} >> $TS_OUTPUT
+$TS_CMD_FDISK ${FDISK_OPTIONS} -x ${TEST_IMAGE_NAME} >> $TS_OUTPUT
ts_log "Delete all partitions"
echo -e "${FDISK_CMD_DELETEALL}${FDISK_CMD_WRITE_CLOSE}" | \