Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
parted resize
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 265

PostPosted: Mon Jul 14, 2014 7:07 am    Post subject: parted resize Reply with quote

hello,

When I do resize, parted 3.1 sais so command not found.
Code:
(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
(parted)                           

how should I make resize a partition and make free zone partition size?
My partition xfs and ext4 fielsystems formated.


Last edited by syn0ptik on Mon Jun 01, 2015 6:32 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7132
Location: almost Mile High in the USA

PostPosted: Mon Jul 14, 2014 2:29 pm    Post subject: Reply with quote

Odd... did not sure what happened here with parted 3.1...

http://www.gnu.org/software/parted/manual/parted.html#Command-explanations
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 265

PostPosted: Mon Jun 01, 2015 6:38 am    Post subject: Reply with quote

hello,
I still need this, but I can't found resize or resizepart in 3.1 version.
in the early version I did:
Quote:
# parted /dev/VG/gitlab
GNU Parted 2.1
Using /dev/dm-33
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Linux device-mapper (linear) (dm)
Disk /dev/dm-33: 9664MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 8589MB 8588MB primary ext4

(parted) resize
WARNING: you are attempting to use parted to operate on (resize) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs. We recommend
you use parted only to manipulate partition tables, whenever possible.
Support for performing most operations on most types of file systems
will be removed in an upcoming release.
Partition number? 1
Start? [1049kB]? 8589MB
End? [8589MB]? 9664MB
No Implementation: Support for opening ext4 file systems is not implemented yet.
(parted)
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2970
Location: Germany

PostPosted: Mon Jun 01, 2015 4:08 pm    Post subject: Reply with quote

You could just grow a partition manually, by creating a partition with the same start sector.

Code:

(parted) unit s                                                           
(parted) print free                                                       
Model: Loopback device (loopback)
Disk /dev/loop0: 16777216s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start     End        Size       File system  Name     Flags
        34s       55295s     55262s     Free Space
 1      55296s    2957311s   2902016s                primary
        2957312s  16777182s  13819871s  Free Space

(parted) rm 1                                                             
(parted) mkpart primary 55296s 16777182s                                 


And then follow it up with resize2fs or whatever.

When shrinking a partition, you resize2fs first and then create the smaller partition.
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 309

PostPosted: Mon Jun 01, 2015 6:03 pm    Post subject: Reply with quote

resize, mkfs and all fs related functionality removed since parted 3.0. The resizepart command added on parted 3.2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum