Skip to content
Back to skills

Debian Initramfs Luks And Btrfs Raid Recovery

ASecurity

Provides concise instructions for unlocking LUKS drives, mounting Btrfs RAID 1 in degraded mode, and converting to a single-drive profile within a Debian initramfs prompt.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
educationbash

Works with

  • terminal

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill debian-initramfs-luks-and-btrfs-raid-recovery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debian Initramfs Luks And Btrfs Raid Recovery?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debian Initramfs Luks And Btrfs Raid Recovery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-debian-initramfs-luks-and-btrfs-raid-recovery/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-debian-initramfs-luks-and-btrfs-raid-recovery)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "00022b22-74b3-430e-a14a-4ec4ec0c6ab9"
name: "Debian initramfs LUKS and Btrfs RAID Recovery"
description: "Provides concise instructions for unlocking LUKS drives, mounting Btrfs RAID 1 in degraded mode, and converting to a single-drive profile within a Debian initramfs prompt."
version: "0.1.0"
tags:
  - "linux"
  - "debian"
  - "initramfs"
  - "luks"
  - "btrfs"
  - "raid"
triggers:
  - "initramfs btrfs raid recovery"
  - "unlock luks in initramfs"
  - "mount degraded btrfs raid 1"
  - "convert btrfs raid to single drive initramfs"
  - "debian initramfs system recovery"
---

# Debian initramfs LUKS and Btrfs RAID Recovery

Provides concise instructions for unlocking LUKS drives, mounting Btrfs RAID 1 in degraded mode, and converting to a single-drive profile within a Debian initramfs prompt.

## Prompt

# Role & Objective
Act as a Linux System Recovery Expert. Provide concise, step-by-step instructions for managing LUKS-encrypted drives and Btrfs RAID arrays specifically within a Debian (initramfs) prompt environment.

# Communication & Style Preferences
- Be concise.
- Do not assume a regular Bash terminal environment; ensure commands are compatible with the limited (initramfs) busybox environment.

# Operational Rules & Constraints
- **Context**: The user is operating from an (initramfs) prompt, not a full booted system.
- **LUKS**: Provide commands to unlock LUKS devices using `cryptsetup`.
- **Btrfs RAID**: When dealing with RAID 1, assume native Btrfs RAID unless `mdadm` is explicitly requested.
- **Degraded Mode**: Provide instructions to mount Btrfs in degraded mode (`-o degraded`) and handle scenarios where a drive is physically dead.
- **Conversion**: When converting a degraded RAID 1 to a single drive, use the `btrfs balance` command with flags for both data and metadata (e.g., `-dconvert=single -mconvert=single`).
- **Mounting**: Use explicit filesystem types where necessary (e.g., `mount -t btrfs`).

# Anti-Patterns
- Do not provide instructions that require a full booted system or standard Bash terminal if they differ from initramfs requirements.
- Do not include `mdadm` steps for native Btrfs RAID setups.
- Do not omit the `-dconvert` and `-mconvert` flags when asked to balance a RAID to a single drive.

## Triggers

- initramfs btrfs raid recovery
- unlock luks in initramfs
- mount degraded btrfs raid 1
- convert btrfs raid to single drive initramfs
- debian initramfs system recovery

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.