LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-28-2022, 02:43 AM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,445

Rep: Reputation: 110Reputation: 110
Can this hard disk still be used?


Please see screenshot:

https://0x0.st/o5Fl.png

I didn't do it. It got itself in that state, I don't remember how.
 
Old 12-28-2022, 03:01 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,101

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
why not? It looks like an incorrect partition table, you can try to fix it or create a new one.
 
Old 12-28-2022, 03:07 AM   #3
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,011
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
You could try formatting it with GParted to create new partitions, then install a distro.

Install gsmartcontrol and then run an extended SMART test to test its health.
 
Old 12-28-2022, 05:51 AM   #4
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,445

Original Poster
Rep: Reputation: 110Reputation: 110
I tried to delete all the partitions with cfdisk and it said, "Failed to write disklabel."

Then I tried Gparted and it did the job after telling me this:

https://0x0.st/o5CU.png

Then it worked, I had 596GB, but then i tried to create an encrypted partition and LUKS did not do the job:

https://0x0.st/o5C0.png

So I made an unencrypted partition and tried to copy stuff into it, but I can only write about 500MB too it:

Code:
rsync: [generator] write error: Broken pipe (32)
Looks like it's dead. :-(
 
Old 12-28-2022, 06:28 AM   #5
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 276

Rep: Reputation: 89
A drive capacity of about 600 GB looks unusual. Typical capacities in this range are 500 GB, 1000 GB and less common 750 GB. Please give drive model.

Check your device:
  1. Unplug all other SSDs/HDDs from the system. The problematic device will become /dev/sda
  2. Start a live Linux, e.g. Knoppix or grml without GUI (Knoppix command line for start without GUI: knoppix64 2 noswap)
  3. Run on console: smartctl -s on /dev/sda
  4. Run on console: smartctl -a /dev/sda    # and save its output (e.g. to USB thumb drive or take a screenshot with your camera)
  5. Run on console: badblocks -wsv /dev/sda    # This do a read-write test and wipes all data incl. broken partition tables on /dev/sda.
  6. If badblocks throws errors dispose of this HDD. Otherwise …
  7. Run on console: smartctl -a /dev/sda    # and save its output (e.g. to USB thumb drive or take a screenshot with your camera)
  8. Post both outputs of smartctl and result of badblocks.

Last edited by Arnulf; 12-28-2022 at 07:01 AM.
 
1 members found this post helpful.
Old 12-28-2022, 07:48 AM   #6
lvm_
Senior Member
 
Registered: Jul 2020
Posts: 1,010

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Is it by any chance one of those unbelievably cheap SSDs they sell on aliexpress? Looks very much like the one.
 
Old 12-28-2022, 08:29 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,101

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
Quote:
Originally Posted by lucmove View Post
I tried to delete all the partitions with cfdisk and it said, "Failed to write disklabel."

Then I tried Gparted and it did the job after telling me this:

https://0x0.st/o5CU.png

Then it worked, I had 596GB, but then i tried to create an encrypted partition and LUKS did not do the job:

https://0x0.st/o5C0.png

So I made an unencrypted partition and tried to copy stuff into it, but I can only write about 500MB too it:

Code:
rsync: [generator] write error: Broken pipe (32)
Looks like it's dead. :-(
You need to understand those messages: you tried to create an encrypted drive on /dev/sdc1, which is too small. That means you need to select another partition (or repartition the disk). The rsync error again [probably] nothing more, just a disk full, but without details hard to say anything.
Probably your disk is dead (it is not impossible), but all the problems/errors you posted caused by incorrect usage or parameters, not by the hardware itself.

Last edited by pan64; 12-28-2022 at 08:31 AM.
 
Old 12-28-2022, 10:58 AM   #8
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,445

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by Arnulf View Post
A drive capacity of about 600 GB looks unusual. Typical capacities in this range are 500 GB, 1000 GB and less common 750 GB. Please give drive model.
It's a notebook HD. It was advertised as 640GB if my memory serves.

Quote:
Originally Posted by lvm_ View Post
Is it by any chance one of those unbelievably cheap SSDs they sell on aliexpress? Looks very much like the one.
No, spinning platters.

Quote:
Originally Posted by pan64 View Post
You need to understand those messages: you tried to create an encrypted drive on /dev/sdc1, which is too small. That means you need to select another partition (or repartition the disk). The rsync error again [probably] nothing more, just a disk full, but without details hard to say anything.
Probably your disk is dead (it is not impossible), but all the problems/errors you posted caused by incorrect usage or parameters, not by the hardware itself.
596GB is too small?
I deleted those tiny bogus partitions shown in the screenshot and made only one 596GB partition.
The disk is not full. I just reformatted it. It is very empty.
 
Old 01-05-2023, 07:43 PM   #9
linuxdaddy
Member
 
Registered: May 2022
Location: New Mexico, USA
Distribution: Slackware 15.0 & 64 bit-current, antiX
Posts: 118

Rep: Reputation: 29
Hi lucmove,

It looks like a GPT/UEFI partition table, cfdisk won't deal with these. I would use Gparted and delete the partions, then create new
ones.

On the Gparted menu, create a new partition table.

Last edited by linuxdaddy; 01-05-2023 at 07:47 PM.
 
Old 01-06-2023, 02:22 AM   #10
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,445

Original Poster
Rep: Reputation: 110Reputation: 110
Thanks, but the HD is bad. I managed to reformat it, but could only write about half a GB to it. It then becomes unusably slow and will fail on every attempt. It must be damaged.
 
Old 01-06-2023, 02:31 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,101

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
/dev/sdc1, /dev/sdc2 are partitions, not the full disk. In your original post you have a picture attached, and based on that you have no usable partitions.
I don't know what did you try and how did you try, but using that /dev/sdc1 is pointless. You need to format your drive before usage properly. Did you make that already?
Also did you run the mentioned smartctl tool?

Would be nice to show us the real partition table (if you have reformatted).
 
  


Reply



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
Disk Space Used is Less Than Size Still Available Disk Space is Zero devUnix Linux - Server 10 10-04-2013 08:56 AM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 06:44 AM
Can I use a virtual machine hard disk as a real hard disk, or vice versa? onlineapps Linux - Software 1 02-24-2007 08:40 PM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM
Finding Module Dependencies.....(still loading....Still loading....still loading) Aeudian Linux - Newbie 1 07-28-2003 02:27 PM

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

All times are GMT -5. The time now is 04:59 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