Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

bad blocks versus bad sectors

Featured Replies

As far a si understand it :

 

1 bad blocks is at the file system level

2 bad sectors are at the hw level

 

correct ?

now lets says i  have 20 bad blocks on a disk and 2 pending sectors

if i remove everything from that disk and reformat the disk

 

will that solve the bad blocks issue ?

 

I am trying to understand why the blocks went bad ... and if reformatting a drive will make the blocks which are not on a bad sector make good again ?

 

 

1 bad filesystem block can be several sectors

2 bad sectors can be 1 or 2 filesystem blocks.

 

if you have 20, is that new? The drive is failing? replace and let it rebuild.

 

Which disk? Is it the parity drive?

 

smartctl -l selftest /dev/sd<asneeded>

 

The output should indicate the location of the sector defect. Using that location offset by the partition starting and factoring blocksize, figure which block is bad. (location-starting)*sectorsize/blocksize. 512 sectors or 4096? Then ask the filesystem what is in that block.

 

debugreiserfs -1 <blocknumber> /dev/sd<asneeded><part#>

 

Forcing the drive to remap the sector is tricky and only works for the lucky. Use badblocks -svn non destructive testing for that block.

 

Or lastly, just write to the block, dd if=/dev/zero of=/dev/sda<asneeded><part#> count=1 bs=<blocksize> seek=<blocknumber>

 

 

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.