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.

Unmountable: Volume not encrypted

Featured Replies

Hi,

 

I was following a guide in order to convert one of my drives to ZFS. It was previously XFS Encrypted.

 

I erased the disk and changed the type to ZFS Encrypted, however now when I try to format the drive, nothing happens. I've attached a screenshot of how the drive hows in my array. When I format it, it tries to format and the "Formatting devices" appears and shows "Formatting" next to the device... however this only shows briefly and then it reverts back to  "Unmountable: Volume not encrypted".

 

Any ideas on how I can re-add this drive to my array and format it? (Disk log below and Diagnostics attached)

 

Thanks

Steve

 

 

DISK LOG:

text  error  warn  system  array  login  

Aug 14 09:21:20 Unraid kernel: ata5: SATA max UDMA/133 abar m2048@0xfc000000 port 0xfc000100 irq 89
Aug 14 09:21:20 Unraid kernel: ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Aug 14 09:21:20 Unraid kernel: ata5.00: ATA-9: WDC WD60EFRX-68L0BN1, 82.00A82, max UDMA/133
Aug 14 09:21:20 Unraid kernel: ata5.00: 11721045168 sectors, multi 16: LBA48 NCQ (depth 32), AA
Aug 14 09:21:20 Unraid kernel: ata5.00: configured for UDMA/133
Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] 11721045168 512-byte logical blocks: (6.00 TB/5.46 TiB)
Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] 4096-byte physical blocks
Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Write Protect is off
Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
Aug 14 09:21:20 Unraid kernel: sdb: sdb1
Aug 14 09:21:20 Unraid kernel: sd 6:0:0:0: [sdb] Attached SCSI removable disk
Aug 14 09:22:32 Unraid emhttpd: WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP (sdb) 512 11721045168
Aug 14 09:22:32 Unraid emhttpd: read SMART /dev/sdb
Aug 14 09:27:20 Unraid emhttpd: WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP (sdb) 512 11721045168
Aug 14 09:27:20 Unraid kernel: mdcmd (2): import 1 sdb 64 5860522532 1 WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP
Aug 14 09:27:20 Unraid kernel: md: import disk1: (sdb) WDC_WD60EFRX-68L0BN1_WD-WX31D29J50AP size: 5860522532 erased
Aug 14 09:27:20 Unraid emhttpd: read SMART /dev/sdb
Aug 14 09:27:36 Unraid emhttpd: shcmd (356): echo 128 > /sys/block/sdb/queue/nr_requests
Aug 14 09:27:58 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0
Aug 14 09:27:58 Unraid emhttpd: shcmd (447): sgdisk -Z /dev/sdb
Aug 14 09:27:59 Unraid kernel: sdb: sdb1
Aug 14 09:28:00 Unraid kernel: sdb: sdb1
Aug 14 09:28:00 Unraid emhttpd: shcmd (448): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb
Aug 14 09:28:01 Unraid kernel: sdb: sdb1
Aug 14 09:30:42 Unraid emhttpd: shcmd (450): /sbin/wipefs -a /dev/sdb
Aug 14 09:30:43 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
Aug 14 09:30:43 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x57541e95e00 (gpt): 45 46 49 20 50 41 52 54
Aug 14 09:30:43 Unraid root: /dev/sdb: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
Aug 14 09:30:43 Unraid root: /dev/sdb: calling ioctl to re-read partition table: Success
Aug 14 09:30:43 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0
Aug 14 09:30:43 Unraid emhttpd: shcmd (451): sgdisk -Z /dev/sdb
Aug 14 09:30:44 Unraid emhttpd: shcmd (452): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb
Aug 14 09:30:45 Unraid kernel: sdb: sdb1
Aug 15 07:45:27 Unraid emhttpd: shcmd (603): /sbin/wipefs -a /dev/sdb
Aug 15 07:45:28 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
Aug 15 07:45:28 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x57541e95e00 (gpt): 45 46 49 20 50 41 52 54
Aug 15 07:45:28 Unraid root: /dev/sdb: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
Aug 15 07:45:28 Unraid root: /dev/sdb: calling ioctl to re-read partition table: Success
Aug 15 07:45:28 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0
Aug 15 07:45:28 Unraid emhttpd: shcmd (604): sgdisk -Z /dev/sdb
Aug 15 07:45:29 Unraid emhttpd: shcmd (605): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb
Aug 15 07:45:30 Unraid kernel: sdb: sdb1
Aug 15 07:52:18 Unraid emhttpd: shcmd (622): /sbin/wipefs -a /dev/sdb
Aug 15 07:52:18 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
Aug 15 07:52:18 Unraid root: /dev/sdb: 8 bytes were erased at offset 0x57541e95e00 (gpt): 45 46 49 20 50 41 52 54
Aug 15 07:52:18 Unraid root: /dev/sdb: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
Aug 15 07:52:18 Unraid root: /dev/sdb: calling ioctl to re-read partition table: Success
Aug 15 07:52:18 Unraid emhttpd: writing GPT on disk (sdb), with partition 1 byte offset 32KiB, erased: 0
Aug 15 07:52:18 Unraid emhttpd: shcmd (623): sgdisk -Z /dev/sdb
Aug 15 07:52:19 Unraid emhttpd: shcmd (624): sgdisk -o -a 8 -n 1:32K:0 /dev/sdb
Aug 15 07:52:20 Unraid kernel: sdb: sdb1

 

 

Screenshot 2023-08-15 at 07.45.56.png

unraid-diagnostics-20230815-0755.zip

Solved by JorgeB

  • Community Expert

Do you have a script or something deleting /root/keyfile after array start?

  • Author

Yes I do. It downloads it from the cloud, unlocks the array and starts the array, then deletes itself. 
 

do I need to disable the script to allow formatting?

  • Community Expert
  • Solution
13 hours ago, pearce1340 said:

do I need to disable the script to allow formatting?

Yes, Unraid cannot format an encrypted drive without the encryption key.

  • 2 years later...

For anyone else that ends up here like I did. If you are following the generally accepted method for pulling a key remotely no need to disable the scripting. Just open a shell and run /usr/local/emhttp/webGui/event/starting/fetch_key after the array is started to pull down the key and then do the format drive.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.