You are not logged in.

#1 2021-10-25 09:01:23

PhantomRex123
Member
Registered: 2021-10-16
Posts: 6

[SOLVED] Arch linux partition with 1 commnad ?

Hello, I am making a new Arch linux installer. I've done some research and haven't found a good answer.  I wanted to ask is there a way to make 3 partitions WHITIN one command ? I want to make a `efi`, `LVM`, `Swap` partition. But i can't do them within one TERMINAL command. Any help ? *I also checked the official ArchInstall python script, yet didn't get an answer*.
Thanks guys! This is my first post here, sorry for being a noob. Any chance i could use fdisk ? I can't find the command.

smile

Last edited by PhantomRex123 (2021-10-25 09:41:22)

Offline

#2 2021-10-25 09:06:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] Arch linux partition with 1 commnad ?

As you are making a script, what does it matter whether you use a single command or multiple after each other? That said you can just chain commands in parted afaik, like so: https://wiki.archlinux.org/title/Parted … _line_mode

Are you sure you want to do that? Who is that installer for? If just for you that's fine, if you intend to post this up somewhere be aware that we will not provide support for installs resulting from your installer and you should have your own relevant channels for providing that.

Last edited by V1del (2021-10-25 09:13:19)

Offline

#3 2021-10-25 09:25:45

PhantomRex123
Member
Registered: 2021-10-16
Posts: 6

Re: [SOLVED] Arch linux partition with 1 commnad ?

V1del wrote:

As you are making a script, what does it matter whether you use a single command or multiple after each other? That said you can just chain commands in parted afaik, like so: https://wiki.archlinux.org/title/Parted … _line_mode

Are you sure you want to do that? Who is that installer for? If just for you that's fine, if you intend to post this up somewhere be aware that we will not provide support for installs resulting from your installer and you should have your own relevant channels for providing that.

I'm making a public installer. I want to use a  GUI for the installation process.  Users can view their current partitioning scheme OR use ext4, ext4 on LVM, btrfs, btrfs on LVM. Its not like it just installs everything , without permission.

Last edited by PhantomRex123 (2021-10-25 09:26:27)

Offline

#4 2021-10-25 09:32:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] Arch linux partition with 1 commnad ?

No offense, but if you're struggling with how you want to do partitioning you are likely going to run into a lot of potentially dangerous gotchas that will break your users systems.

In any case this isn't the central topic of the thread and I don't intend to prod if it isn't necessary.

If your original issue is resolved by that link, please mark the topic as [SOLVED] by editing the title in the first post.

Offline

#5 2021-10-25 09:38:47

PhantomRex123
Member
Registered: 2021-10-16
Posts: 6

Re: [SOLVED] Arch linux partition with 1 commnad ?

I'll do some extensive testing before i publish it smile

Offline

#6 2021-10-25 11:21:48

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Arch linux partition with 1 commnad ?

I prefer sfdisk. It reads the partition table from stdin (also makes it easy to separate config from script):

sfdisk $device <<EOF
label: gpt

name="your ESP", size=500MiB, type="EFI System"
name=swap, size=4GiB, type="Linux swap"
name=root, type="Linux LVM"
EOF

Offline

#7 2021-10-25 11:25:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Arch linux partition with 1 commnad ?

PhantomRex123 wrote:

I'll do some extensive testing before i publish it smile

And how are you going to do support? This will be seen as a totally separate distro by the Arch community and users who use your script will not be able to ask questions here, so how are you going to support those users?

Offline

#8 2021-10-25 15:23:02

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 137

Re: [SOLVED] Arch linux partition with 1 commnad ?

Don't give up. I wish everyone were as optimistic and eager to work hard as you seem to be.
And yes, take Raynman's advice.

Offline

Board footer

Powered by FluxBB