You are not logged in.

#1 2015-10-20 08:59:11

marcokrtsho
Member
Registered: 2014-12-10
Posts: 28

parted error

Hi everyone!!
i just following the archlinux beginer guide but when i start to create a partition the parted tool give me this error:

parted -s /dev/sda -a optimal -- mklabel msdos
parted -s /dev/sda -a optimal -- unit mib mkpart primary 1 100 set 1 boot on
parted -s /dev/sda -a optimal -- unit mib mkpart primary 100 4gib
parted -s /dev/sda -a optimal -- unit mib mkpart primary linux-swap 4gib 6gib
Error: You requested a partition from 4096MiB to 6144MiB (Sectors 8388608..12582912).
The closest location we can manage is 4096MiB to 6144MiB (Sectors 8388609..12582912).

Thnak to everyone!!!

Last edited by marcokrtsho (2015-10-20 10:34:18)

Offline

#2 2015-10-20 13:23:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,354

Re: parted error

try running the commands manually without using "-s"


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2015-10-20 14:19:45

marcokrtsho
Member
Registered: 2014-12-10
Posts: 28

Re: parted error

Lone_Wolf wrote:

try running the commands manually without using "-s"

Thakn you for replay....i try to do it manually but gives me the same error...


thank you again!

Offline

#4 2015-10-20 16:31:30

marcokrtsho
Member
Registered: 2014-12-10
Posts: 28

Re: parted error

if i convert 4gib to mib it works...how can be possible? i can't use mib e gib togheter?

sorry for my bad english..

Last edited by marcokrtsho (2015-10-20 16:47:45)

Offline

#5 2015-10-20 22:59:25

madman_xxx
Member
From: PL
Registered: 2013-07-31
Posts: 35

Re: parted error

I also had this issue. I guess it's because you use the -a/--align option, so parted may not accept any arbitrary space given (because it tries to optimally align partitions). Use % instead or, as parted suggests, an exact value in bytes. In this case 1 sector = 512 bytes, so

parted -s /dev/sda -a optimal -- unit mib mkpart primary linux-swap 4294967808 6gib

should do the trick.

Last edited by madman_xxx (2015-10-20 23:03:44)

Offline

#6 2015-10-28 15:04:03

Mithrandir
Member
Registered: 2015-10-25
Posts: 6

Re: parted error

Instead of parted, you can try to use cfdisk which provide a GUI-like interface. It's easier.
just run

cfdisk /dev/sda

Last edited by Mithrandir (2015-10-28 15:04:56)

Offline

#7 2015-11-07 20:53:13

kvonlinee
Member
Registered: 2015-02-04
Posts: 27

Re: parted error

You can used fdisk /dev/sda
To partition, easy.

Offline

Board footer

Powered by FluxBB