/dev/sda2 root swap partition deleted accidentally while increasing the partition space of /dev/mapper/rhel-root space
by bomabay123 from LinuxQuestions.org on (#5AQSD)
On my Oracle virtualbox 6.1 i have installed RHEL 7.9
i have created /dev/sda1 - 210mb for boot, 2. /dev/sda2 - 4gb for root swap and 3. /dev/mapper/rhel-root for the root space. my root space vdi was around 16 gb and total vdi space was 20GB. when i try to create more space in rhel-root through fdisk by accidentlly /dev/sda2 deleted.
Now when i power start from oracle virtualbox it is lending to dracut# prompt and issue warning /dev/sda2 root swap and /dev/mapper/rhel-root space missing.
now can anyone help me, how to recover the /dev/sda2 root swap and to resolve this issue ?
thread issue date 23/11/2020


i have created /dev/sda1 - 210mb for boot, 2. /dev/sda2 - 4gb for root swap and 3. /dev/mapper/rhel-root for the root space. my root space vdi was around 16 gb and total vdi space was 20GB. when i try to create more space in rhel-root through fdisk by accidentlly /dev/sda2 deleted.
Now when i power start from oracle virtualbox it is lending to dracut# prompt and issue warning /dev/sda2 root swap and /dev/mapper/rhel-root space missing.
now can anyone help me, how to recover the /dev/sda2 root swap and to resolve this issue ?
thread issue date 23/11/2020