Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to resize a partition using parted, but it has no the 'resize' command available

gchain@archbogchain@archbook:~$ sudo parted /dev/sdb 
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) help
  align-check TYPE N                        check partition N for TYPE(min|opt) alignment
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a
        particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright information of GNU Parted

I'm using Archlinux x86_64, is this normal ?

Thanks !

share|improve this question

migrated from stackoverflow.com Oct 28 '12 at 20:10

This question came from our site for professional and enthusiast programmers.

1  
You can first convert it from MBR to a GUID partition table. The process is simple and not prone to errors. The gdisk tool can then resize these partitions. It's in the Arch Linux "extra" repo. When you are done sizing it just right, see this thread: How to Convert GPT back to MBR. –  zero2cx Nov 10 '12 at 17:34
add comment

2 Answers

Yes, it is normal.

From the GNU site:

Note that after version 2.4, the following commands were removed: check, cp,
mkfs, mkpartfs, move, resize.
share|improve this answer
add comment

Came across your question while trying to find a solution for a similar problem. I managed to resize my partition (and filesystem) and while I'm not sure if it's still relevant for you, I've documented my solution in a gist which might help out.

It boils down to not having the partion you want to resize mounted, resizing the partition to take up free continuous space on the disk by deleting and then recreating it and then running resize2fs to resize the filesystem as well.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.