0 Replies Latest reply on Sep 8, 2016 11:38 PM by ctan94x_intel

    Resolve image deployment to SSD failed issue with the model name of SSD has a double quote.

    ctan94x_intel

      Case description

       

      We are not able to deploy the image to SSD with the model name of SSD has a double quote.

      For instance: ATA 2.5" SATA SSD 3M (scsi)

       

      Error code: `xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option`

       

      Parted result:

      ------------------------------------------------------------------------------------------------------------

      oot@WR-IDP-3B8D:~# parted -s /dev/sdb print

      Model: ATA 2.5" SATA SSD 3M (scsi)

      Disk /dev/sdb: 32.0GB

      Sector size (logical/physical): 512B/512B

      Partition Table: gpt

      Disk Flags:

       

      Number Start End Size File system Name Flags

      1 1049kB 513MB 512MB efi boot

      2 513MB 32.0GB 31.5GB primary lvm

       

      Deploytool result:

      ------------------------------------------------------------------------------------------------------------

      root@WR-IDP-3B8D:~# deploytool -d /dev/sdb --reset-media -F

      ================================================================================

      Deploy Tool V4.1.1 @2016-01-22

      ================================================================================

      [ STEP01] Checking all options (or default values) ...

      [ INFO] Current vfat boot partition is already mounted

      [ INFO] Size of /dev/sdb: 30533M (32017047552 Bytes)

      [ INFO] Device information of /dev/sdb:

      [ INFO] - Bus : ata

      [ INFO] - Type : disk

      [ INFO] - Model : 2.5__SATA_SSD_3MG2-P

      [ INFO] - Rev : M140402

      [ INFO] - SN : 20150907AA0000000002

      [ ANSWER] Continue to deploy into /dev/sdb [Y/n]? y

      [ INFO] Rootfs partition LVM size: 45%VG

      [ INFO] Total Device/IMG size: 30533M

      [ INFO] VFAT partition size: 512M

      [ INFO] Rootfs partition size: 13509M

      [ STEP02] Removing LVM stuffs in the device ...

      [ INFO] Clear LVM volume group related to /dev/sdb

      [ INFO] Clear LVM logical devices

      [ STEP03] Clearing partition table in the device ...

      [ INFO] Unmount "/dev/sdb"

      [ INFO] Clear partition table in /dev/sdb

      [ INFO] Remove partition 1: 1048576B/512753663B

      [ INFO] Remove partition 2: 512753664B/32016171007B

      [ STEP04] Creating new partitions in the device ...

      [ INFO] Create vfat efi and rootfs primary partitions in /dev/sdb

      [ STEP05] Querying vfat and rootfs partition nodes ...

      [ INFO] Current partitions in the device:

      [ INFO] 1 1049kB 513MB 512MB efi boot

      [ INFO] 2 513MB 32.0GB 31.5GB primary lvm

      xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option

      [ ERROR] The rootfs partitions is not of LVM format!

      [ ERROR] If you really want to use LVM partitions,

      [ ERROR] please add -t or -y option to format disk.

      [ ERROR] Or add -l 0 to confirm that LVM is not used.

      [ INFO] Exit ...

      [ INFO] Clear LVM stuffs when exit

      [ INFO] Export LVM volume group: VGWRD179

      [ INFO] Clear LVM logical devices

       

      Solution

      1) Run the command below.

          $cat deploytool | grep parted | grep space

      2) If the above searching is ok, please try:

          (a) adding "exit 0;" in function "di_query_partitions" before "sys_check_partitions $DI_DEVICE $DI_LVM",

          (b) then run: root@WR-IDP-3B8D:~# deploytool -d /dev/sdb --reset-media -F

          (c) After the script exits, run "parted -s /dev/sdb print"

       

      Last Validated Info:

      BSP: MI3.1

      Version: RCPL0017

      Device: MXE-1400