LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-29-2021, 11:21 AM   #1
SomeLinuxUser
LQ Newbie
 
Registered: Mar 2020
Posts: 21

Rep: Reputation: Disabled
Troubleshooting a Possibly Failing Drive


I have a Samsung drive which should be 250GB. lsblk is suggesting that the drive is 960MB. Furthermore, there's no partition table. I try to create one with fdisk, creating a new partition which fills the disk, of type Linux, but I get an Input/Output error. When I enter fdisk, I see "device does not contain a recognised partition table. Created a new DOS disklabel with disk identifier ...". If I try to give the drive a filesystem with mkfs.ext4, I again get an input/output error.

On my Mint system, in Disks, I am told that the drive is 1.0GB, and the assessment is "Disk is OK, one bad sector".

I believe that this drive was functioning correctly before. I find the incorrect sizing pretty strange, but coupled with the bad sector feel that perhaps the drive has just failed? Does my approach above seem reasonable? How might I go about troubleshooting the drive further?

Thanks

Last edited by SomeLinuxUser; 12-29-2021 at 11:41 AM.
 
Old 12-29-2021, 11:31 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,758

Rep: Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318
Is the drive internal or external? Regular hard drive or SSD?

Try running SMART (smartctl -a /dev/sdx replace x with the actual device ID). Check the values to see if it is failing.

Not all USB drives are supported. Its the USB bridge not the physical drive...
 
Old 12-29-2021, 11:40 AM   #3
SomeLinuxUser
LQ Newbie
 
Registered: Mar 2020
Posts: 21

Original Poster
Rep: Reputation: Disabled
It's an internal SSD. I'll give that a go and get back to you thanks
 
Old 01-01-2022, 08:13 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Another thing you can try: Nuke the first 10MB or so, then try formatting it again:
Code:
dd if=/dev/zero of=/dev/sdX bs=1M count=10
 
Old 01-01-2022, 11:26 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,550

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
I would reckon that your drive is in seriously bad shape. Backup what's left of whatever you have on it, as all the testing suggested is likely to test it to death.

SSDs are not platters; they are best thought of as memory chips, and the omens are very bad. I would like to be wrong, but you'll tell us.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD Drive Weirdness - Debian (possibly grub) makes my dvd drive disappear Daws Debian 8 08-26-2007 04:50 PM
Know of an app to analyze a possibly failing HDD? 0mn1z10n Linux - Hardware 7 04-06-2007 07:21 PM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM
X failing to load; AddScreen/InitScreen failing for driver 0 weblion Linux - Software 1 08-01-2002 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration