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.
|
 |
11-15-2020, 04:21 AM
|
#1
|
Member
Registered: Sep 2020
Posts: 436
Rep: 
|
Failed to write disklabel.
Hello,
I have a SSD 120GB and when I want to fdisk it with "cfdisk" then it show me:
Code:
Failed to write disklabel.
And "dmesg" show me:
Code:
$ sudo dmesg
[17020.700937] Buffer I/O error on dev sdc, logical block 29305184, async page read
[17024.159216] Buffer I/O error on dev sdc, logical block 29305184, async page read
Any idea?
Thank you.
|
|
|
11-15-2020, 08:48 AM
|
#2
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
My first thought: Some piece of hardware is broken.
But there are other tools: fdisk, parted, ... Have you tried them?
I would also try to dd to that disk to see if the error persists.
|
|
|
11-15-2020, 03:48 PM
|
#3
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by berndbausch
I would also try to dd to that disk to see if the error persists.
|
Something I don't understand here.
What does dd have to do with cfdisk unable to write the label? and how would it help?
I can see the error with cfdisk as it is curses based and fdisk, gdisk, gparted, parted, etc are all designed to create partitions and write the labels, but (to me) dd just does not compute for that use.
|
|
|
11-15-2020, 04:02 PM
|
#4
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
Quote:
Originally Posted by computersavvy
What does dd have to do with cfdisk unable to write the label? and how would it help?
|
To check if there might be a hardware problem. If dd (or any other tool) can write to the device, the error is probably caused by something else than hardware.
|
|
|
11-16-2020, 11:11 AM
|
#5
|
Member
Registered: Sep 2020
Posts: 436
Original Poster
Rep: 
|
Thanks.
SSD plugged and unplugged frequently. I tried "dcfldd" on one of the SSD partitions and it completed, but when system detected SSD and I browse that partition then all files existed and nothing formatted!
Windows OS can't detect the disk too.
|
|
|
11-16-2020, 11:36 AM
|
#6
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
try gparted, parted, fdisk, or gdisk and see if there is any difference.
I wonder what makes you think that dcfldd has anything to do with formatting a device/filesystem????? Did you even read the man page??? Have you even read and tried what has been previously suggested???
Please start learning what you need to do (reading man pages, searching forums, searching with google, etc.) instead of asking repetitive sub-level questions that clearly show no effort on your part to learn.
Just as an FYI. Windows will never detect or mount a device that is formatted with anything other than fat32 or ntfs.
Last edited by computersavvy; 11-16-2020 at 11:45 AM.
|
|
|
11-16-2020, 01:49 PM
|
#7
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
Quote:
Originally Posted by n00b_noob
I tried "dcfldd" on one of the SSD partitions and it completed, but when system detected SSD and I browse that partition then all files existed and nothing formatted!
|
Since we don't know what you tried with dcfldd, it's not possible to comment.
Quote:
Windows OS can't detect the disk too.
|
That indicates something is wrong with hardware. The disk itself, the connector, the cable (if there is one), the interface. Or perhaps you don't do the right thing to detect it:
Quote:
Windows will never detect or mount a device that is formatted with anything other than fat32 or ntfs.
|
The Windows 10 (and 7, if I am not wrong) computer management tool can deal with non-formatted disks.
Last edited by berndbausch; 11-16-2020 at 01:52 PM.
|
|
|
11-16-2020, 07:14 PM
|
#8
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by berndbausch
Code:
Windows will never detect or mount a device that is formatted with anything other than fat32 or ntfs.
The Windows 10 (and 7, if I am not wrong) computer management tool can deal with non-formatted disks.
|
Correct. New and non-formatted drives the disk manager will detect and handle easily. It will not do the same for one that is already partitioned for a linux file system except by destroying any existing partitions and making new.
If Noob has his ssd formatted for linux then his windows cannot recognize it
Last edited by computersavvy; 11-16-2020 at 07:19 PM.
|
|
|
11-17-2020, 10:47 AM
|
#9
|
Member
Registered: Sep 2020
Posts: 436
Original Poster
Rep: 
|
Quote:
Originally Posted by berndbausch
Since we don't know what you tried with dcfldd, it's not possible to comment.
That indicates something is wrong with hardware. The disk itself, the connector, the cable (if there is one), the interface. Or perhaps you don't do the right thing to detect it:
The Windows 10 (and 7, if I am not wrong) computer management tool can deal with non-formatted disks.
|
I did:
Code:
# dcfldd if=/dev/zero of=/dev/sdc
I installed https://www.diskinternals.com/linux-reader/ on Windows OS.
|
|
|
11-17-2020, 12:42 PM
|
#10
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by n00b_noob
|
If you used that command on an actual device then you wiped out the entire device access and will have to use a partitioning tool to create a new partition table and partitions with file systems before it can be seen as anything other than a raw device by any OS.
Last edited by computersavvy; 11-17-2020 at 12:43 PM.
|
|
|
11-17-2020, 01:21 PM
|
#11
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,333
|
is your /dev/sdc a real device or just a file what you created?
|
|
|
11-17-2020, 01:28 PM
|
#12
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
There are other tools than cfdisk: fdisk, parted, ... Have you tried them?
|
|
|
11-17-2020, 09:45 PM
|
#13
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by berndbausch
There are other tools than cfdisk: fdisk, parted, ... Have you tried them?
|
I get the feeling that Noob has skipped over or ignored the several references to different tools. At least he has made no response here.
|
|
|
All times are GMT -5. The time now is 05:44 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.
|
Latest Threads
LQ News
|
|