You are not logged in.

#1 2009-10-19 00:19:40

duke11235
Member
Registered: 2009-10-09
Posts: 221

Parted Commands Solved

What command would I use to create a Linux lvm partition with the free space on a drive in parted? It isn't nearly as straightforward as cfdisk, but it supports GPT.

Last edited by duke11235 (2009-10-19 23:52:53)

Offline

#2 2009-10-19 01:26:32

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Parted Commands Solved

mkpart (primary/logical) beginninghere endinghere

LVM tools will let you turn it into a PV.

Offline

#3 2009-10-19 01:47:07

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: Parted Commands Solved

So, after that command, with the values substituted in  from fdisk -l, i just continue with pvcreate, then vgcreate, etc? Will that label it as lvm or do I need another command?

Do I label it and is the one referring to partition number?
set 1 lvm on

I am looking for a command that does the same as creating an 8e linux lvm partition. Is it true the arch installer creates filesystem types(ext4) in the real arch installer?

Last edited by duke11235 (2009-10-19 04:28:57)

Offline

#4 2009-10-19 01:59:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Parted Commands Solved

set partition flag state: Change  the  state of the flag on partition to  state.   Supported  flags  are:
"boot", "root", "swap", "hidden", "raid", "lvm", "lba", and "palo".  state should be either "on" or "off".

From man parted.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2009-10-19 04:32:51

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: Parted Commands Solved

set partition flag state: Change  the  state of the flag on partition to  state.   Supported  flags  are:
"boot", "root", "swap", "hidden", "raid", "lvm", "lba", and "palo".  state should be either "on" or "off".

Does it need a location? In the man it says:

 set 1 lvm on

The first command creates a partition,

mkpart (primary/logical) beginninghere endinghere

in the man it specifies the type.

mkpart primary ext2 0 4000

I thought the arch installer did that later.

Offline

#6 2009-10-19 23:51:49

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: Parted Commands Solved

NVM I figured it out. parted numbers the partitions, and the arch installer will create the filesystem.

from ubuntu parted man page

Offline

Board footer

Powered by FluxBB