Page 1 of 1

Error when Partitioning new drive

Posted: Tue Jul 22, 2014 12:57 pm
by phreaq
I am adding a new 3TB hard drive, and am following this page to partition it (https://wiki.amahi.org/index.php/Partitions_Over_2.1_TB)

When I run; parted /dev/sdb mkpart primary ext4 2048 -1, I get the following error:

[root@localhost ~]# parted /dev/sdb mkpart primary ext4 2048 -1
parted: invalid option -- '1'
Usage: parted [-hlmsv] [-a<align>] [DEVICE [COMMAND [PARAMETERS]]...]
[root@localhost ~]#

Should I be using another number, like 1 -1?

Re: Error when Partitioning new drive

Posted: Tue Jul 22, 2014 1:21 pm
by bigfoot65
Try using cfdisk instead. I have had better luck with that one. It should already be installed.

Re: Error when Partitioning new drive

Posted: Tue Jul 22, 2014 1:29 pm
by phreaq
It seems to only see the first 2TB

-----------------------------------------------------------------------------------------------------

Name Flags Part Type FS Type [Label] Size (MB)
-----------------------------------------------------------------------------------------------------
sdb1 NC Primary GPT 2199023.26 *
Pri/Log Free Space 801569.73 *
-----------------------------------------------------------------------------------------------------

I'd rather not have 2 partitions on the one drive, is there another way?

Re: Error when Partitioning new drive

Posted: Tue Jul 22, 2014 1:45 pm
by bigfoot65
Did you delete all partitions on the drive? If that still does not help, then back to parted I guess. I don't have any that big.

Since this is an OS thing and not Amahi, you might find help on the internet as well.

Re: Error when Partitioning new drive

Posted: Tue Jul 22, 2014 2:16 pm
by phreaq
ya, deleting the partition and creating a new one still drops it down to 2TB.

I got it working by using: parted /dev/sdX mkpart primary ext4 2048 (with no number).

You're then prompted with 'end?', and I entered -1, then ignored the unaligned partition warning.

Re: Error when Partitioning new drive

Posted: Tue Jul 22, 2014 2:19 pm
by bigfoot65
Sounds good. These things are always trial and error it seems.

Would you mind adding some guidance to the existing wiki page about this experience? It would greatly help others.