Menu

#266 Unable to install to Samsung 950 Pro (NVMe)

open
None
5
2016-12-10
2016-10-12
No

The install process fails with the error: Unable to find target partition "nvme0n1p1", despite the fact that the subsequent partition list includes the "nvme0n1" disk.

Discussion

  • Steven Shiau

    Steven Shiau - 2016-10-15
    • assigned_to: Steven Shiau
     
  • Steven Shiau

    Steven Shiau - 2016-10-15

    Which version of Clonezilla live did you use?
    Have you tried testing Clonezilla live, like 2.4.9-7 or 20161010-yakkety?

    Steven

     
  • Matt Broadstone

    Matt Broadstone - 2016-10-15

    I'm sorry I can't believe that info didn't make it into the original report. We're running into this problem with Clonezilla Live 20161010-xenial. I will try yakkety after the weekend, but I don't imagine they have wildly divergant kernels (if that indeed is the problem here)

     
  • Steven Shiau

    Steven Shiau - 2016-10-15

    OK, in that case, the issue is not related to the Linux kernel I believe. could you please show me the results of the following in the Clonezilla live environment when you have that errors:
    1. sudo -i
    2. df -ah
    3. cat /proc/partitions
    4. parted -s /dev/nvme0n1 print

    Please show the reuslts of 2, 3 and 4.
    Thanks.

    Steven

     
  • Matt Broadstone

    Matt Broadstone - 2016-10-17

    Apologies for the delay, attached are the results of each of those commands.

     
  • Steven Shiau

    Steven Shiau - 2016-10-19

    Everything looks normal. This is weird.
    Could you please do it again, then:
    1. Take a photo about the whole messages on the screen then post it.
    2. Post the log file /var/log/clonezilla.log, too.
    Thanks.
    Steven

     
  • Matt Broadstone

    Matt Broadstone - 2016-10-19

    Hi Steven,

    This is bizarre. When you asked me to re-run the test and take pictures last night, the installation worked perfectly. I chalked it up to gremlins and went to bed, only to try again twice this morning (in a row) and it worked again! I ran it a third time this morning, and got the same error. Sounds like some sort of race condition, or timing issue?

    Attached are the image and log file you requested.

     

    Last edit: Matt Broadstone 2016-10-19
  • Steven Shiau

    Steven Shiau - 2016-10-19

    Maybe something triggered that... Could you try to test it again (and then several times) by entering the expert mode, and do not select the option "-j2"?

    Steven

     
  • Matt Broadstone

    Matt Broadstone - 2016-10-20

    Steven,
    Removing the -j2 option did stop the error from occurring, however when booting the machine it halts at GRUB with a blinking cursor.

     
  • Steven Shiau

    Steven Shiau - 2016-10-20

    I still think maybe it's related to the Linux kernel since you have found that sometimes it happens, sometimes it's not. Besides, it's related to the kernel detecting the partitions.
    Could you please give Clonezilla live 20161017-yakkety a try? Please test it many times, all with -j2 enabled (by default). :D
    The version comes with Linux kernel 4.8 so the results might be different.

    Steven

     
  • Matt Broadstone

    Matt Broadstone - 2016-10-21

    Steven,

    It looks like the yakkety version is working! I've managed to install it 7 times in a row successfully. I am running into an error with the installer though. After everything is done installing, it drops me into a shell instead of showing me the final ncurses dialog to reboot. The log shows:

    "ocs-live-restore" finished.
    Check /var/log/clonezilla.log for more details.
    The next step: true

    user@yakkety:~$

    So I have to manually reboot from there.

     
  • Steven Shiau

    Steven Shiau - 2016-10-22

    OK, cool.
    The new issue you mentioned is minor. If it can be reproduced many times, let me know.

    Steven

     
  • Matt Broadstone

    Matt Broadstone - 2016-10-22

    Steven,
    Yeah the issue I mentioned happened every time in the 7 attempts I made yesterday to install. I think we can safely say the original issue has been resolved by using the yakkety build, however the UI bug is still an issue.

     
  • Steven Shiau

    Steven Shiau - 2016-10-30

    This is weird... Somehow for Clonezilla live 20161024-yakkety-amd64 I just can not reproduce the issue you mentioned here. Since the issue is not reproduced here, I have no idea how to fix it.

    Steven

     
  • pimar57

    pimar57 - 2016-12-05

    RESOLVED: Samsung SSD NVME has a controller model name with spaces = "Samsung SSD 950 PRO 512GB_S2GMNCAH106976X"
    When constucting in prep-ocsroot:

    HARDDEVS=' nvme0n1p1 16G_ext4(In_Samsung_SSD_950_PRO_512GB_)_Samsung SSD 950 PRO 512GB_S2GMNCAH106976X ...'
    

    the spaces remain scrambling the lines of the menu:

    whiptail --backtitle 'NCHC Free Software Labs, Taiwan' --title 'Clonezilla - Opensource Clone System (OCS) | Mode: ' --menu 'Now we need to mount a device as /home/partimag (Clonezilla image(s) repository) so that we can read or save the image in /home/partimag.\n///NOTE/// You should NOT mount the partition you want to backup as /home/partimag\nThe partition name is the device name in GNU/Linux. The first partition in the first disk is "hda1" or "sda1", the 2nd partition in the first disk is "hda2" or "sda2", the first partition in the second disk is "hdb1" or "sdb1"... If the system you want to save is MS windows, normally C: is hda1 (for PATA) or sda1 (for PATA, SATA or SCSI), and D: could be hda2 (or sda2), hda5 (or sda5)...' 0 0 10 nvme0n1p1 '16G_ext4(In_Samsung_SSD_950_PRO_512GB_)_Samsung' SSD 950 PRO 512GB_S2GMNCAH106976X nvme0n1p2 '16G_ext4(In_Samsung_SSD_950_PRO_512GB_)_Samsung' SSD 950 PRO 512GB_S2GMNCAH106976X nvme0n1p3 
    

    and when we choose except the first line, clonezilla fail.

    So I made a correction in /usr/share/drbl/sbin/ocs-functions of clonezilla-live-2.5.0-7-amd64.iso with editCZCDsquashfs.sh script:
    line 3966 was:

    serialno="$(LC_ALL=C udevadm info -q env -n /dev/${dsk_} | grep ID_SERIAL= | sed -e 's/ID_SERIAL=//g')"
    

    and I put:

    serialno="$(LC_ALL=C udevadm info -q env -n /dev/${dsk_} | grep ID_SERIAL= | sed -e 's/ID_SERIAL=//g' | tr ' ' '_')"
    

    The tr converts spaces to _ and there is no more scramble and clonezilla works well.

    I think it would correct some bugs as “Box” is an unknown partition device* errors.

    Hope this help a little...
    PiM

     
  • pimar57

    pimar57 - 2016-12-05

    @Matt: I have also a Samsung 950 Pro and clonezilla works fine with a GPT partition table and a small BIOS_boot partition.

    # fdisk -l /dev/nvme0n1
    Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: F948F363-8FE3-4B11-9D66-FE556D81E9A2
    
    Device              Start        End   Sectors   Size Type
    /dev/nvme0n1p1       2048   33632255  33630208    16G Linux filesystem
    /dev/nvme0n1p2   33632256   67262463  33630208    16G Linux filesystem
    /dev/nvme0n1p3   67262464  100892671  33630208    16G Linux filesystem
    /dev/nvme0n1p4  100892672  166905855  66013184  31.5G Linux filesystem
    /dev/nvme0n1p5  166905856  200536063  33630208    16G Linux swap
    /dev/nvme0n1p6  200536064  997015551 796479488 379.8G Linux filesystem
    /dev/nvme0n1p7  997015552 1000202239   3186688   1.5G Linux filesystem
    /dev/nvme0n1p8 1000202240 1000215182     12943   6.3M BIOS boot
    

    I put the iso on the first partition and added a /etc/grub.d/56_clonezilla:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    
    #CLONEZILLA http://clonezilla.org/livehd.php
    #you can use only the Clonezilal live iso file in grub2 (Thanks to the patches files from grml).
    #For example, put clonezilla-live-2.5.0-5-i686.iso in dir /dev/nvme0n1p1,
    #then make the grub2 custom menu (/etc/grub.d/56_clonezilla) like:
    #
    #================================================
    menuentry 'Clonezilla live 2.5.0-7-amd64' --class debian --class gnu-linux --class gnu --class os {
     set isofile="/clonezilla-live-2.5.0-7-amd64.iso"
     loopback loop (hd0,1)$isofile
     linux (loop)/live/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset nodmraid ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
     initrd (loop)/live/initrd.img
    }
    #
    #================================================
    #Then run "update-grub2" to update your grub2 config.
    #then: grub-install /dev/nvme0n1
    

    HAve a good time,
    PiM

     
  • Steven Shiau

    Steven Shiau - 2016-12-10

    Thanks. Will apply the patch you have mentioned in the next Clonezilla live.

    Steven

     

Log in to post a comment.