Menu

#318 No input device when saving nvme disk

testing_clonezilla
closed-accepted
nobody
None
5
2019-03-28
2019-03-11
No

Performing savedisk on nvme disk leads to "No input device!" error. This error was random, it worked OK one of 5-10 times.
Debugging through drbl scriptes lead me to gen_proc_partitions_map_file() function in file:
/usr/share/drbl/sbin/osc-functions
It collects partitions from /proc/partitions like that:
cat /proc/partitions > $partition_table
The problem was that after some functions the system would update partitions list in this file, and script reads it very quickly, while nvme0n1 device was already there, but partitions wasn't.
Screenshot attached shows "cat $partition_table" debug output from inside that functions, and it shows that it sometimes misses nvme partitions, only nvme device listed.
To resolve this I added delay "sleep .1" before "cat /proc/partitions > $partition_table" for system to populate partitions list properly.
It resolved my issue, hope this helps somebody.

Thanks

1 Attachments

Discussion

  • Steven Shiau

    Steven Shiau - 2019-03-28
    • status: open --> closed-accepted
     
  • Steven Shiau

    Steven Shiau - 2019-03-28

    Thanks. The command "sleep .1" has been added before the cat command. It's pushed to gitlab repository, and will be used in the next testing release.

    Steven

     

Log in to post a comment.