parted   140

« earlier    

hard drive - GPT PMBR size mismatch after dd clone - Ask Ubuntu
Do as the gdisk prompt suggests: Use the e option on the experts' (x) menu to relocate the data structures to the end of the disk. You can accomplish the same thing in parted or GParted if you prefer. IIRC, they do it semi-automatically, although they ask for confirmation.

Once you've moved the GPT backup data structures, you can resize your partition(s) using GParted.
linux  qemu  resize  gpt  parted  partition 
december 2018 by eljojo
[server] How to correct GPT table and GPT PMBR
Fdisk used to not work at all on gpt partitioned drives, it just reported that drive was gpt partitioned.
Better to use parted, gparted or gdisk. Gdisk has been the command line tool for gpt drives.

Post these:
sudo parted -l
or
sudo parted /dev/sda unit s print
or
sudo gdisk -l /dev/sda


repair gpt:
http://www.rodsbooks.com/gdisk/repairing.html
linux  qemu  resize  gpt  parted  partition 
december 2018 by eljojo
How To Convert a GPT Disk Back to an MS DOS type MBR Label
sudo parted /dev/sdu
GNU Parted 3.1
Using /dev/sdu
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mktable
New disk label type? msdos
Warning: The existing disk label on /dev/sdu will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
(parted) quit
linux  parted  config  disk  msdos  gpt  mbr  label 
april 2018 by iteruel
How to Add a New Disk Larger Than 2TB to An Existing Linux
In this article, we will show you to add a new disk larger than 2TB to an existing Linux server such as RHEL/CentOS or Debian/Ubuntu using parted utility.
parted  gparted  fdisk  ubuntu  linux 
december 2017 by nharbour
pyparted 3.10.7 : Python Package Index
pyparted is a set of native Python bindings for libparted. libparted is the library portion of the GNU parted project. With pyparted, you can write applications that interact with disk partition tables and filesystems.

The Python bindings are implemented in two layers. Since libparted itself is written in C without any real implementation of objects, a simple 1:1 mapping of externally accessible libparted functions was written. This mapping is provided in the _ped Python module. You can use that module if you want to, but it's really just meant for the larger parted module.

https://github.com/rhinstaller/pyparted
Python  packages  parted  partition  GitHub  RHEL  CentOS 
june 2017 by coffeebucket
GitHub - rhinstaller/pyparted: Python bindings for GNU parted (libparted)
pyparted is a set of native Python bindings for libparted. libparted is the
library portion of the GNU parted project. With pyparted, you can write
applications that interact with disk partition tables and filesystems.

The latest iteration of pyparted aims to be a complete API mapping and even
provide a nice set of classes so that people might want to integrate it in
to other installers or even write other applications (maybe a Python based
alternative to parted(8) or fdisk(8)).

https://pypi.python.org/pypi/pyparted/
GitHub  Python  parted  partition  fdisk  Anaconda  RHEL  CentOS 
june 2017 by coffeebucket
Re: parted complain with negative number as argument for mkpart sub-comm
Pass -- after you are done with command line arguments so that it will
ignore anything else that looks like a - or -- arg. Like this:

parted -s -- /dev/sdb mkpart extended 2048M -1s
parted  arguments  bash  shell  partition 
may 2017 by coffeebucket
command line - How do I resize partitions and filesystems on them? - Unix & Linux Stack Exchange
Before `parted` 3.0, the following command does what you are probably expecting, having learned about GParted:

$ sudo parted /dev/sdb resize 1 1 200M

That will resize the first partition on the second hard disk to 200 MiB, and make sure it starts 1 MiB into the disk so as to avoid alignment problems with [Advanced Format drives](http://en.wikipedia.org/wiki/Advanced_Format).

This functionality was [removed in v3.0](http://savannah.gnu.org/forum/forum.php?forum_id=6837), the regression being justified by comparison to removing a gangrenous toe. Partial functionality was [restored in v3.1](http://savannah.gnu.org/forum/forum.php?forum_id=7133), covering only FAT and HFS+.

v3.2 is where things really got interesting, from a Unix/Linux file system perspective. It [replaces the `resize` command with `resizepart`](http://savannah.gnu.org/forum/forum.php?forum_id=8042). The new name is due to the fact that it can only change the partition size; it doesn't even attempt to rearrange its contents first.

https://web.archive.org/web/20170529000729/https://unix.stackexchange.com/questions/169395/how-do-i-resize-partitions-and-filesystems-on-them
https://archive.is/VXNj1
StackExchange  partition  parted  fdisk  resize 
may 2017 by coffeebucket
raspi-config/init_resize.sh at master · RPi-Distro/raspi-config · GitHub
if ! parted -m "$ROOT_DEV" u s resizepart "$ROOT_PART_NUM" "$TARGET_END"; then
FAIL_REASON="Root partition resize failed"
return 1
fi


/usr/lib/raspi-config/init_resize.sh
RaspberryPi  partition  resize  configuration  GitHub  fdisk  parted 
may 2017 by coffeebucket

« earlier    

related tags

'stupid  >2tb  "raspberry  *  100%  2tb  4k  8to  admin  alignment  anaconda  archlinux  arguments  author:numbtongue  autoresize  awesome  aws  backup  bash  benchmark  block  boot  bootcd  cd  centos  cfdisk  changelog  chkdsk  cli  clone  clonezilla  cocksucking  command-line  command_line  commands  computer  config  configuration  cool  dd  ddrescue  debian  delicious  digitalocean-sources  disc  disco  disk-partition  disk  disk_label  disks  distro  doc  drive  drives  ebs  edit  example  examples  ext4  failure  fdisk  file_system  fileserver  filesystem-stuff  filesystem  format  free  freeware  fs  gdisk  gist  github  gnu  gpart  gparted  gpt  growpart  grub  guide  hard  hard_drive  harddisk  hardware  hdd  hdparm  hfs+  hfs  howto  i  image  installation  kickstart  label  linux  linuximages  lips'  live  livecd  lsblk  lvm  mac  magic  manage  mbr  mkfs  mount  mounting  msdos  netboot  ntfs  nwipe  official  old  opensource  osx  p:kirk/mccoy  packages  partedmagic  particionamiento  partion  partition  partitioning  partitions  partprobe  pi"  proxmox  pve  pxe  pyparted  python  qemu  raid  raspberrypi  rating:nc-17  recover  recovery  rescue  resize  resize2fs  resizepart  resizing  rhel  rl8  sector  security  server  setup  sfdisk  shell  software  ssd  stackexchange  startrek:fic  storage  succ  sysadm  sysadmin  tabel  table  test  testdisk  testing  tips  tool  tools  tricks  tutorial  ubuntu  uefi  unix  utilities  utility  volumes  warelogging  wdsucks  win7  window7  windows  xfs 

Copy this bookmark:



description:


tags: