Error when Partitioning new drive

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Error when Partitioning new drive

Postby phreaq » Tue Jul 22, 2014 12:57 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Error when Partitioning new drive

Postby bigfoot65 » Tue Jul 22, 2014 1:21 pm

Try using cfdisk instead. I have had better luck with that one. It should already be installed.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Error when Partitioning new drive

Postby phreaq » Tue Jul 22, 2014 1:29 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Error when Partitioning new drive

Postby bigfoot65 » Tue Jul 22, 2014 1:45 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Error when Partitioning new drive

Postby phreaq » Tue Jul 22, 2014 2:16 pm

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Error when Partitioning new drive

Postby bigfoot65 » Tue Jul 22, 2014 2:19 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 56 guests