LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-09-2022, 09:37 AM   #1
Leviathan42
Member
 
Registered: Dec 2019
Distribution: Manjaro
Posts: 51

Rep: Reputation: Disabled
error using cryptsetup during install


Hey guys

I have to go through the agony of reinstalling my distro (Manjaro). As I've got a laptop, I want my distro to be fully encrypted. So I chose the encryption option in the installer. Quite soon after start, i get this error:

Code:
Create a new partition (238,48 GiB, luks) on ‘/dev/md126’


Job: Create new partition on device ‘/dev/md126’


Command: sfdisk --force --append /dev/md126

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.
Oh and just for completeness, when I won't choose to encrypt option, but all other options stay the same, I get a similar error.

Code:
Create a new partition (238,48 GiB, ext4) on ‘/dev/md126’


Job: Create new partition on device ‘/dev/md126’


Command: sfdisk --force --append /dev/md126

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.
 
Old 05-11-2022, 12:29 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Related:
https://www.linuxquestions.org/quest...ct-4175711850/
 
Old 05-12-2022, 04:55 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Leviathan42 View Post
Hey guys

I have to go through the agony of reinstalling my distro (Manjaro). As I've got a laptop, I want my distro to be fully encrypted. So I chose the encryption option in the installer. Quite soon after start, i get this error:

Code:
Create a new partition (238,48 GiB, luks) on ‘/dev/md126’


Job: Create new partition on device ‘/dev/md126’


Command: sfdisk --force --append /dev/md126

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.
Oh and just for completeness, when I won't choose to encrypt option, but all other options stay the same, I get a similar error.

Code:
Create a new partition (238,48 GiB, ext4) on ‘/dev/md126’


Job: Create new partition on device ‘/dev/md126’


Command: sfdisk --force --append /dev/md126

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.

Failed to add partition ‘New Partition’ to device ‘/dev/md126’.
The --append option tells it to use an existing partition table, which probably does not yet exist, so will fail
--force disables consistency checking

You did not tell it the type of partition table to create, dos, gpt, etc.
The options --list and --verify could show you info about an existing partition table.

The man page for sfdisk gives me a lot of info on how it works and is used.

Last edited by computersavvy; 05-12-2022 at 04:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cryptsetup Error during install new kernel zkg Linux - Kernel 0 07-09-2021 07:46 AM
Old ASUS K53E laptop, Arch Linux current-hardened, keyboard lockup during cryptsetup RickDeckard Linux - Hardware 1 12-18-2018 06:28 AM
Accessing encrypted cdrom using cryptsetup airkemp Linux - Security 3 03-18-2015 10:47 AM
[SOLVED] cryptsetup hangs during shutdown at "Locking LUKS crypt volume ...:" danielldaniell Slackware 2 01-19-2015 09:09 AM
Keyfile & Password using cryptsetup dissident85 Linux - General 1 09-13-2009 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration