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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
12-28-2022, 02:43 AM
|
#1
|
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,553
Rep: 
|
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.
|
|
|
12-28-2022, 03:01 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,227
|
why not? It looks like an incorrect partition table, you can try to fix it or create a new one.
|
|
|
12-28-2022, 03:07 AM
|
#3
|
Senior Member
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS, antiX
Posts: 4,357
|
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.
|
|
|
12-28-2022, 05:51 AM
|
#4
|
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,553
Original Poster
Rep: 
|
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. :-(
|
|
|
12-28-2022, 06:28 AM
|
#5
|
Member
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 312
Rep: 
|
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: - Unplug all other SSDs/HDDs from the system. The problematic device will become /dev/sda
- Start a live Linux, e.g. Knoppix or grml without GUI (Knoppix command line for start without GUI: knoppix64 2 noswap)
- Run on console: smartctl -s on /dev/sda
- Run on console: smartctl -a /dev/sda # and save its output (e.g. to USB thumb drive or take a screenshot with your camera)
- Run on console: badblocks -wsv /dev/sda # This do a read-write test and wipes all data incl. broken partition tables on /dev/sda.
- If badblocks throws errors dispose of this HDD. Otherwise …
- Run on console: smartctl -a /dev/sda # and save its output (e.g. to USB thumb drive or take a screenshot with your camera)
- 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.
|
12-28-2022, 07:48 AM
|
#6
|
Senior Member
Registered: Jul 2020
Posts: 1,519
|
Is it by any chance one of those unbelievably cheap SSDs they sell on aliexpress? Looks very much like the one.
|
|
|
12-28-2022, 08:29 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,227
|
Quote:
Originally Posted by lucmove
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.
|
|
|
12-28-2022, 10:58 AM
|
#8
|
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,553
Original Poster
Rep: 
|
Quote:
Originally Posted by Arnulf
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_
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
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.
|
|
|
01-05-2023, 07:43 PM
|
#9
|
Member
Registered: May 2022
Location: New Mexico, USA
Distribution: Slackware 15.0 & 64 bit-current, antiX
Posts: 118
Rep:
|
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.
|
|
|
01-06-2023, 02:22 AM
|
#10
|
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,553
Original Poster
Rep: 
|
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.
|
|
|
01-06-2023, 02:31 AM
|
#11
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,227
|
/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).
|
|
|
All times are GMT -5. The time now is 01:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|