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.

The old 'Unformatted' drive issue that keeps coming back

Featured Replies

Howdy Tom,

 

We have new reports of mount failures resulting in drives being wrongly marked 'Unformatted'.  Please see this for the latest one.  This problem just won't go away and die!

A package was installed, then a newer version of the package was requested, which caused the the older one to be backed out, but the backing out process aggressively removed any folders it found to be empty, including /mnt!  Since we can't legislate away bad behavior(!), some additional safeguards are needed.  Easy trick is to recreate /mnt if found missing, or pre-fill it with a zero-byte file or link, so it won't appear empty.  It would also be safer to check the return codes of mkdir, would have caught this case.

 

The bigger problem is that since we keep coming up with new ways to fail mounts, we need additional checks before ever marking a drive as 'Unformatted'.  I'd prefer marking them as 'Mount Failure' and disallow formatting, unless a drive meets a precise criteria for being truly unformatted.  I'm sure I don't have to remind anyone that this issue can result in serious data loss, if an uninformed user proceeds to wrongly format the 'Unformatted' drive(s).

We have new reports of mount failures resulting in drives being wrongly marked 'Unformatted'.  Please see this for the latest one.  This problem just won't go away and die!

...

 

The bigger problem is that since we keep coming up with new ways to fail mounts, we need additional checks before ever marking a drive as 'Unformatted'.  I'd prefer marking them as 'Mount Failure' and disallow formatting, unless a drive meets a precise criteria for being truly unformatted.  I'm sure I don't have to remind anyone that this issue can result in serious data loss, if an uninformed user proceeds to wrongly format the 'Unformatted' drive(s).

 

This is crucial, it can lead to a big mistake.  Mount failure is a good choice for this condition.

 

Perhaps there needs to be two checks in emhttp.

1. preclear signature = unformatted.

2. reiserfs or some other condition = mount failure.

 

IE. Only allow formatting on a drive that has a preclear signature.

Another option is to do an "fdisk -l" on the drive. It will report if there is a partition defined on the disk already. Only show "unformatted" if there is no partition. Otherwise give a "mount failure" message.

Another option is to do an "fdisk -l" on the drive. It will report if there is a partition defined on the disk already. Only show "unformatted" if there is no partition. Otherwise give a "mount failure" message.

That might work...  At the least, do not treat the disk as "unformatted" if it had already been part of the array.  (On earlier versions of unRAID, we could look in the disk.cfg file.  )

 

In some cases, it had been found that the MBR had been modified by emhttp to cause the start of the partition to point to the wrong sector.

The only way to get those disks back online was to first fix the MBR to point to the correct partition start, then to allow emhttp to attempt to mount.

 

You are correct though, a mount failure could easily be caused by any number of possible issues, from partitioning, to a reiserfsck incorrectly on the raw drive, to a true bad drive sector, to a missing mount-point. )

If the disk is new report "unformatted" and otherwise report "mount failure". I think this is the best we can hope for.

I was just thinking about this a few moments ago too.

 

 

I came to the thought, if the precursor to adding a drive into the array is a preclear signature, then only present an unformatted status with option to format if the preclear signature exists.

 

 

Otherwise just present a mount failure status with no format option.

I was just thinking about this a few moments ago too.

 

 

I came to the thought, if the precursor to adding a drive into the array is a preclear signature, then only present an unformatted status with option to format if the preclear signature exists.

 

 

Otherwise just present a mount failure status with no format option.

You also have to allow for a drive that does not have a pre-clear status but also does not have the unRAID partition layout (e.g. a new disk that has just been added).  This would also count as unformatted I would have thought.  Why not introduce a new status for when the pre-clear signature is detected - something like "awaiting format" although there would probably be a better term.  Ideally there would be a new signature written on first adding the drive to show that the pre-clear is needed/in progress.

+1 for more thorough error checks. I've recently had a drive fail to mount due to a hardware error, and the array started with the drive unformatted.

 

If a partition is clearly visible, but the mount failed, the drive should not be shown as unformatted. It should instead be shown as 'mount failed'.

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.