LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-09-2016, 05:35 PM   #1
masavini
Member
 
Registered: Jun 2008
Posts: 285

Rep: Reputation: 6
dd, ddrescue and bad blocks...


hi,
i have a couple of disks wich are ok, but with a few fixed (marked) bad blocks.

what happens if i use them as target disks of a cloning process (using dd or ddrescue)?

will dd or ddrescue be aware of the marked bad sectors?

thanks!
 
Old 01-09-2016, 07:14 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
How are those sectors marked bad? With any modern disk (last decade, at least), any write to a bad sector would cause the drive to reallocate that space to a spare sector. Such a reallocation is transparent to the OS, which sees a fault-free disk. Only the drive's SMART attributes would reveal that anything had happened.
 
Old 01-10-2016, 03:59 PM   #3
masavini
Member
 
Registered: Jun 2008
Posts: 285

Original Poster
Rep: Reputation: 6
so, if i got it properly, once the bad sectors are marked with fsck there is no risk they can be "unmarked", right?
 
Old 01-10-2016, 04:15 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
As soon as they are written to, they will no longer be "bad" as seen from the OS. The drive itself will take care of that.
 
  


Reply

Tags
bad blocks, dd, ddrescue



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
ddrescue & bad sector recovery edgarswot Linux - Software 2 02-05-2015 12:16 PM
LXer: Check Hard drive for bad sectors or bad blocks in linux LXer Syndicated Linux News 0 08-11-2014 08:00 AM
LXer: Check Hard drive for bad sectors or bad blocks in linux LXer Syndicated Linux News 0 08-10-2014 12:21 AM
bad blocks praveenvikram24r Linux - Hardware 1 07-04-2012 07:04 AM
[SOLVED] 34 bad blocks, what should I do? tauro_kpo Linux - Hardware 7 02-02-2012 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 PM.

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