![]() Investigations there are limitations with using lsblk and e, -exclude exclude devices by major number (default: RAM disks) d, -nodeps don't print slaves or holders b, -bytes print SIZE in bytes rather than in human readable format I also ran the lsblk command (on Kubuntu 12.04) and it appears that the SERIAL column is not supported in this older version. Since this is /dev/sdf, grepping this file would in theory scan the entire device. I found my Kobo Touch eReader in the file: If you need any more information just let me know. model ) ĭevice_info ->set_text( rial_number ) ĭevice_info ->set_text( Utils::format_size( devices. On a more minor note (more of a personal preference), I think the last changed line of patch v2 would look better if the spacing matched the surrounding code.Į.g., in Win_GParted::File_Label_Device_info()ĭevice_info ->set_text( devices. HDIO_GET_IDENTITY failed: Invalid argument ![]() Sector size (logical/physical): 512B/512B Note that GParted 0.22.0 works fine with this device. ![]() What : Invalid byte sequence in conversion inputĭevice /dev/sdf is my Kobo Touch eReader which I happened to have connected at the time and has no partitions. Unhandled exception (type Glib::Error) in signal handler: I am testing with patch set v2 on my physical computer with kubuntu 12.04, and GParted gets stuck "Searching /dev/sdf partitions". Ġ.292192 +0.005997 set_devices_thread() Scanning devices (aka disks) for partitions and contents. To be included in recent Fedora's by default though). Known and popular tool for the task and included by default in someĭistros, including GParted Live CD and System Rescue CD. Output for many other items of data, this is the direction I will take.Ĭreated attachment 305916 Ĭhose to just use hdparm as it keeps the code simpler, it's to most well As GParted already calls external commands and parses So either GParted will have to do an ioctl() and interpret the dataīlock or call one of the above commands and parse the output to get the Open("/dev/sda", O_RDONLY|O_NONBLOCK) = 3 ![]() There is no kernel /proc or /sys file which contains the serial number. (Serial column added in util-linux 2.24-rc1. Lshw -class disk | egrep 'product|serial|logical name' Smartctl -i /dev/sda | egrep 'Model|Serial' Hdparm -I /dev/sda | egrep 'Model|Serial' Ways that I know of to display the model and serial number of a hard Structure only contains a model string, but not a serial number. To get information from libparted about the device but the Ped_Device Ped_Device * ped_device_get(const char * path) This isn't trivial because libparted doesn't report the serial number ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |