Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If badblocks hangs completely it may be due to bad blocks.
Check it for badblocks with HDDScan instead of badblocks.
Start HDDScan, select your device in dropdown list.
Press "Tasks" button and select "Surface tests" item.
When new window appeared check "Read" option and press "Add Test" button. It will start new window with your task added to tasts list. Dowbleckick added task, it will open task details windows, there you can control task executing as map or as graph or as text report. If there are bad blocks you will be informed.
If badblocks hangs completely it may be due to bad blocks.
Check it for badblocks with HDDScan instead of badblocks.
Start HDDScan, select your device in dropdown list.
Press "Tasks" button and select "Surface tests" item.
When new window appeared check "Read" option and press "Add Test" button. It will start new window with your task added to tasts list. Dowbleckick added task, it will open task details windows, there you can control task executing as map or as graph or as text report. If there are bad blocks you will be informed.
Do not erase a stick, just perform read test to search for bad blocks, especially at the very beginning.
I am running HDDScan inside VirtualBox -- would that be a problem? I presume it's best to rightclick the exe and run as administrator - which I did. Attached are screenshots of the results for graph, map, & report. It seems to be badblock city *_*.
I am running HDDScan inside VirtualBox -- would that be a problem? I presume it's best to rightclick the exe and run as administrator - which I did. Attached are screenshots of the results for graph, map, & report. It seems to be badblock city *_*.
Can't say for sure will it work in VirtualBox correctly, screenshot shows that there are a lot of damaged blocks, but at the same time the graph shows that all seems OK. To be correct HDDScan needs full low level access to the drive, without virtualization layer.
Can't say for sure will it work in VirtualBox correctly, screenshot shows that there are a lot of damaged blocks, but at the same time the graph shows that all seems OK. To be correct HDDScan needs full low level access to the drive, without virtualization layer.
So the USB drive is salvageable? I have no access to a computer with Windows natively installed on it.
Is there any chance this drive has had a gpt partition table installed on it at some time? Mixing gpt and mbr can cause these symptoms. If it has, you need to use gdisk, from Linux, to remove the remaining traces of the gpt table.
Not sure it salvageable.
I have no VirtualBox installed to make conclusion about it behaviour.
I would try to perform low level format as it suggested above, but I suspect that HP Low Level Format tool needs direct access to drive.
Did you try to delete partition table with dd command as it suggested above?
No need to run it for hour to erase partition table. It takes one second.
run
Code:
sudo fdisk -l
to see where your stick attached: /dev/sdf or /dev/sdb or somewhere else. It would be nice to detach all the sticks and external usb drives if they attached before running fdisk
then run
Code:
sudo dd if=/dev/zero of=/dev/sdX bs=1M count=1
replace /dev/sdX with the value from fdisk output
dd should return in less than 1 second.
if it returns immediately - open gparted (or use fdisk if you familiar with it) and create new partition table, add partition and format it. Do not use any gnome-***** utility. Only gparted or fdisk.
If it doesn't help - get Vendor ID and Device ID and search web for manufacturer's restoration tool for your device and try to restore flash drive. But this requires native Windows installation to run such a tools (if you can found it), not a VirtualBox installation.
Is there any chance this drive has had a gpt partition table installed on it at some time? Mixing gpt and mbr can cause these symptoms. If it has, you need to use gdisk, from Linux, to remove the remaining traces of the gpt table.
Hi sgosnell.
Here's some output from using gdisk:
Code:
GPT fdisk (gdisk) version 0.8.8
Type device filename, or press <Enter> to exit: /dev/sdf
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help):
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sdf1.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
Should I convert the 2 partitions to one of these?:
1 - MBR
2 - GPT
3 - Create blank GPT
Last edited by linustalman; 05-11-2016 at 05:36 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.