LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-15-2020, 05:21 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 259

Rep: Reputation: Disabled
Post 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.
 
Old 11-15-2020, 09:48 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,958

Rep: Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836
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.
 
Old 11-15-2020, 04:48 PM   #3
computersavvy
Member
 
Registered: Aug 2016
Posts: 685

Rep: Reputation: 214Reputation: 214Reputation: 214
Quote:
Originally Posted by berndbausch View Post
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.
 
Old 11-15-2020, 05:02 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,958

Rep: Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836
Quote:
Originally Posted by computersavvy View Post
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.
 
Old 11-16-2020, 12:11 PM   #5
n00b_noob
Member
 
Registered: Sep 2020
Posts: 259

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-16-2020, 12:36 PM   #6
computersavvy
Member
 
Registered: Aug 2016
Posts: 685

Rep: Reputation: 214Reputation: 214Reputation: 214
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 12:45 PM.
 
Old 11-16-2020, 02:49 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,958

Rep: Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836
Quote:
Originally Posted by n00b_noob View Post
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 02:52 PM.
 
Old 11-16-2020, 08:14 PM   #8
computersavvy
Member
 
Registered: Aug 2016
Posts: 685

Rep: Reputation: 214Reputation: 214Reputation: 214
Quote:
Originally Posted by berndbausch View Post
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 08:19 PM.
 
Old 11-17-2020, 11:47 AM   #9
n00b_noob
Member
 
Registered: Sep 2020
Posts: 259

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
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.
 
Old 11-17-2020, 01:42 PM   #10
computersavvy
Member
 
Registered: Aug 2016
Posts: 685

Rep: Reputation: 214Reputation: 214Reputation: 214
Quote:
Originally Posted by n00b_noob View Post
I did:
Code:
# dcfldd if=/dev/zero of=/dev/sdc
I installed https://www.diskinternals.com/linux-reader/ on Windows OS.
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 01:43 PM.
 
Old 11-17-2020, 02:21 PM   #11
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,881

Rep: Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250
is your /dev/sdc a real device or just a file what you created?
 
Old 11-17-2020, 02:28 PM   #12
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,958

Rep: Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836
There are other tools than cfdisk: fdisk, parted, ... Have you tried them?
 
Old 11-17-2020, 10:45 PM   #13
computersavvy
Member
 
Registered: Aug 2016
Posts: 685

Rep: Reputation: 214Reputation: 214Reputation: 214
Quote:
Originally Posted by berndbausch View Post
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.
 
  


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
Recovery disk partitions after setting disklabel lchxr Slackware 7 04-29-2008 09:49 AM
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel sycamorex Linux - Hardware 4 09-15-2007 03:49 PM
Disklabel 386BSD sci3ntist *BSD 0 08-12-2007 09:38 AM
Which disklabel for a pure Linux environment? gumpish Linux - Newbie 1 02-11-2007 11:49 AM
A bug? Disklabel problem sandboy6184 *BSD 0 12-03-2004 05:51 PM

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

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