Questions tagged [parted]

Questions about the GNU parted (partition editor) CLI utility that is used to manipulate disk partition (and not GParted, GNOME Partition Editor, a graphical tool with similar functionality).

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

LV partition resize issue - parted cannot satisfy all constraints while resizing /dev/sda3

In my virtualbox vm, initially there was 25GB of disk space. Via vbox media manager, I have increased the size to 50GB. The next plan was to use parted to carry out the resize. These are the state of ...
deostroll's user avatar
  • 1,769
0 votes
0 answers
56 views

Resize linux virtual partition

Considering the following scenario... NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 252:0 0 200G 0 disk vda1 252:1 0 512M 0 part /boot/efi vda2 252:2 0 1K 0 part vda5 252:5 0 49,5G ...
John's user avatar
  • 1
0 votes
0 answers
266 views

Partitioning a USB drive with Gparted - Too many Primary partitions

I have an external USB drive (not bootable) with an ext4 filesystem on it. parted -l says "Partition Table: loop" (full output at end of post). I want to shrink that partition and add an ...
BobDoolittle's user avatar
  • 1,129
0 votes
0 answers
28 views

Not able to grow the partition of an img file

I have an img file with below partition table $ sudo parted tmp/disk.img GNU Parted 3.4 Using /tmp/disk.img Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print ...
BTR Naidu's user avatar
  • 169
0 votes
1 answer
972 views

Attempting to create partition in parted gives Error: Can't have the end before the start!

This is a server without a GUI and I need to create a partition with the command line. Here is the output of fdisk to show the disk structure: Disk /dev/sdd: 447.13 GiB, 480103981056 bytes, 937703088 ...
Alex16's user avatar
  • 3
0 votes
1 answer
282 views

Parted shows 2TB partition, but df says it's 98GB

I ran out of space on my root partition, df outputs: Filesystem Size Used Avail Use% Mounted on tmpfs 3.1G 2.0M 3.1G 1% /run /dev/mapper/...
Renari's user avatar
  • 101
0 votes
1 answer
243 views

Is it possible to rearrange and recreate a single disk partition in a raw image file?

Host: Ubuntu 20.04.4 LTS Current status: Raw image file has 2 partitions, p1: boot and p2: rootfs. Disk original.img.bak: 3.25 GiB, 3487742976 bytes, 6811998 sectors Units: sectors of 1 * 512 = 512 ...
Sinipelto's user avatar
0 votes
0 answers
1k views

Extend partition size on ubuntu 20.04 on VMware

I have ubuntu 20.04 with 10gb HDD on VMware. I have exported it and move another VMWare. I need to have more capacity on HDD so on VMWare, I extend the HDD to 20. I used this link to add new space to ...
VOLVO's user avatar
  • 101
0 votes
1 answer
512 views

Extend disk for Ubuntu using gparted

I am running a dual boot system with Ubuntu and Windows. I initially gave Ubuntu 50GB. I would like to add an additional 80GB. In windows I shrunk the existint NTFS partition to give me 80G for ubuntu....
user avatar
2 votes
0 answers
1k views

resize root partition from rescue mode

I mean to resize my root partition. I am currently not able to boot from a Live CD or Live USB. I know I can keep trying to tackle that problem. Alternatively, I wanted to know if, booting from my ...
sancho.s ReinstateMonicaCellio's user avatar
-1 votes
1 answer
85 views

Ubuntu - Swap partition lose its swap mode

My server (ovh/soyoustart dedicated server) lost one swap partition (i dont know how and when). Result of parted -l command : Modèle: ATA HGST HUS724020AL (scsi) Disque /dev/sda : 2000GB Taille des ...
z2m's user avatar
  • 1
7 votes
1 answer
11k views

How to shrink ext4 partition using parted CLI?

I have microSD card with Ubuntu 20.10 for RaspberryPi 4. The microSD card is 32GB in size, however only about 2GB in total is being occupied on it. I would like to clone it onto 16GB microSD card and ...
ProTofik's user avatar
  • 399
0 votes
1 answer
58 views

Is it possible to reallocate storage space on a fully utilized VM drive without unmounting said drive?

I created an Ubuntu VM with a little over 12GB of available space on it. I only created one partition allocating all available space (12GB). I was wondering if it were possible to un-allocated any of ...
TClapStorm's user avatar
0 votes
1 answer
663 views

I cannot boot into my Linux distro

I adopted a Dell XPS 13, updated the Ubuntu 16.04 to 18.04, and gave it the MacBuntu environment for my girlfriend to use. Everything worked great! Then I got it in my head to run Steam, mainly to ...
Rogue_417's user avatar
0 votes
1 answer
193 views

Ubuntu 18.04 on vCenter, stuck booting to initramfs after using GNU Parted 3.2

I was trying to grow the partition on my Ubuntu 18.04 server and after playing around with parted and growpart (then rebooting) i am now stuck booting into the initramfs shell. This is screenshot of ...
Jamsgrove's user avatar
1 vote
1 answer
2k views

trying to resize root partition using lvm doesn't work

I'm working on an ubuntu 18.04 server. For the last few days I keep getting the error message "No space left on device" when doing simple things like ll. I have found out that it has something to do ...
Assa Yeroslaviz's user avatar
2 votes
1 answer
163 views

Attached external drive unmountable

When I attach a drive to ubuntu 18.04 it is not listed in /dev. ls -al /dev | grep sd returns only sda (boot drive) If I list disks, I can see the device (full fdisk response below - I'm no longer ...
user209631's user avatar
0 votes
0 answers
8k views

Error: Could not stat device devsdb - No such file or directory

Setting up an ubuntu server for the first time. It loads up just fine but when I try to partition my 2.7T drive it's giving me the following error: fdisk: cannot open devsda: No such file or ...
devronn008's user avatar
1 vote
1 answer
2k views

how to recover lost USB capacity?

I used dd to write the image to my flash drive (64M image). Real capacity of USB is 2G Works great. But when I tried to write Xubuntu img on it. There is no free space. I already tried fdisk, parted ...
Andrey Fugas's user avatar
8 votes
1 answer
5k views

Hard Drive Partition: Optimal Transfer Size

I have a Western Digital 4TB drive (WD40PURZ). It appears that the recommended procedure for partitioning the drive results with: "Optimal transfer size 33553920 bytes not a multiple of physical ...
Mark W.'s user avatar
  • 115
1 vote
0 answers
653 views

Files missing on new 5TB hard drive after formatting as ext4 with parted and mkfs

After connecting a new external 5TB hard drive and formatting it as ext4 with parted and mkfs with the procedure below, I then mounted the drive, copied files onto it, unmounted the drive and ...
user1421347's user avatar
0 votes
0 answers
347 views

Need help with partitions after dual booting ubuntu to existing windows 10 install

I was given an older Compaq Presario CQ60 Laptop with Windows 10 on it and I setup a dual boot with Ubuntu 18.04.2 LTS. I'm a linux beginner and was way over my head with the install but everything ...
John Harvey's user avatar
0 votes
2 answers
2k views

Error While Creating Partition (Parted/Fdisk)

I am a bit new to creating partitions on the terminal and i would like to learn, so basically i was creating a partition using the parted command and i used the mkpart option to create a new primary ...
programmer's user avatar
2 votes
1 answer
138 views

script for creating bootable usb

I have been using the following bash script on Ubuntu 14.04.5 LTS to create a bootable USB disk for an embedded system, which worked fine: # Partition disk. /usr/bin/sudo /bin/umount /dev/sdc1 /dev/...
Fatih Erol's user avatar
1 vote
1 answer
2k views

Struggling with new HDD sector alignment - parted likes it, fdisk and mkfs do not

I just attached a new 2TB HDD to an SBC running Ubuntu. There is no data on the HDD and so I can freely wipe it as needed as the OS is running on an SDCard. I want to format it as one large ...
Jay L's user avatar
  • 111
0 votes
0 answers
533 views

usb bootable flag not cleared by gparted but cleared by Windows

Model: Lexar USB Flash Drive (scsi) Disk /dev/sdb: 64.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 ...
Stephen Boston's user avatar
0 votes
0 answers
1k views

How to increase size of root partition at /dev/sda1 from /dev/sdb1?

I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below sudo parted -l Model: QEMU QEMU HARDDISK (scsi) Disk ...
Bằng Rikimaru's user avatar
1 vote
0 answers
4k views

Ubuntu Server 18.04 not detecting SAS drive

I have two SAS drives 72GB. One is the system where Ubuntu server is installed on. The other is also connected but I can’t find it on the server. When I plug an HDD into the server, it outputs it as /...
Gilfoyle's user avatar
0 votes
0 answers
1k views

Why does fdisk and parted not show same partition table on a fresh bootable usb image

I follow the instruction on https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu except I use a SD-card to flash. When I use fdisk and parted to investigate the result of the ...
Jarl's user avatar
  • 227
0 votes
1 answer
1k views

How to manage partitions (not live/system) on a remote Linux server?

To provide more context, let's say we have a remote Linux server with 2 disks and 3 partitions on it. For example, a system partition (/dev/sda1) and one more disk with 2 partitions on it (/dev/sdb1 ...
Mladen B.'s user avatar
  • 261
6 votes
2 answers
35k views

Create one partition occupying all the space on the drive with gparted?

I am following the instructions here: https://help.ubuntu.com/community/InstallingANewHardDrive It says: 4) Create one partition occupying all the space on the drive: (parted) mkpart primary ...
User's user avatar
  • 1,363
3 votes
2 answers
2k views

How to use parted in a script, and get a blank PARTLABEL?

I'm trying to create software to restore backups that I already create with scripts. I haven't needed to restore any, fortunately, but now I want to move the contents of one of my backups to a SSD ...
ForDummies's user avatar
0 votes
0 answers
653 views

Creating Logical Volume Partition Type with parted

I am trying to create a logical volume partition using parted and so I used the following steps: Create partition with parted using the interactive mode which would translate to: mkpart, then Gave ...
George Udosen's user avatar
2 votes
2 answers
701 views

reconfiguring msdos to gpt

Im currently trying to make my sdb gpt and have partitions primary but I don't know how to proceed properly. what I did was: sudo umount /dev/sdb1 and /dev/sdb5 sudo parted /dev/sdb mklabel gpt sudo ...
PostMaloneM3m3r's user avatar
1 vote
0 answers
926 views

Gparted/parted/gdisk/fdisk all pretend to create partition table?

I have been trying to wipe and reset an entire HDD. Something went wrong when moving a drive from Windows to Ubuntu. So in the midst of a tutorial or two.. I wiped the whole drive. Here's the rub: I ...
9_Dave_9's user avatar
  • 111
1 vote
1 answer
5k views

Extend LVM Volume - How to use parted to extend physical volume?

I have a cloud server running Ubuntu 14.04 being hosted by fasthosts. I recently upgraded the storage from 100GB to 110GB however when i run df i can see this currently isn't being used by the ...
synj's user avatar
  • 109
0 votes
1 answer
5k views

Parted input/output error while making a new GPT table

I have damaged usb drive. Tried making a new table with GParted, not finishing the operation. also tried with parted, it's printing input/output error while making GPT table. scanned with badblocks ...
user avatar
0 votes
1 answer
48 views

Linux Error Reporting Removable Disk Size

I recently had a strange error while trying to partition removable usb drives. lsblk correctly reported the drive configuration. However when I tried to dd an image to the drive dd error'd, reporting ...
gryphonB's user avatar
  • 139
1 vote
0 answers
307 views

Multiple 2TB MSDOS partitions or 1 larger GPT partition for volume group

I have just expanded my 1+0 raid from a total of 2TB to 6TB. When adding each of the new drives I partitioned them using parted to create GPT based partitions to cover the entire of each of the ...
Alexis F's user avatar
0 votes
0 answers
1k views

8TB Hard Disk mount failed

Environment 1. OS : Ubuntu 16.04.3 LTS 2. HDD : 8TB HDD Symptom : /dev/sdb1 does not exist. root@hprnd:/home/hprnd# mount /dev/sdb1 /hprnd0004 mount: special device /dev/sdb1 does not exist ...
아리아니프티휴먼패스's user avatar
2 votes
2 answers
24k views

How do I create a swap partition using parted?

How do I create a swap partition using command line gparted? (parted) I've managed to create a partition but I can't seem to set the partition to Linux swap / Solaris. I've tried mkpart extended ...
denden's user avatar
  • 151
0 votes
1 answer
926 views

Fatal: Bad FAT: unterminated chain for <file_name> when using parted

I am using parted to resize a memory block. Please find the set of comments I used below. # ./parted /dev/mmcblk0p1 GNU Parted 1.8.8.1.179-aef3 Using /dev/mmcblk0p1 Welcome to GNU Parted! Type '...
Rengasami Ramanujam's user avatar
9 votes
3 answers
25k views

Resizing fat32 partition in command line without losing data

I am trying to resize a fat 32 partition in my linux machine. Following are the specs of the system. This is not a PC hence UI based tools are not applicable. This memory partition which I am trying ...
Rengasami Ramanujam's user avatar
2 votes
1 answer
1k views

Different print reports between fdisk and parted

long time Linux user, but can't find an answer to this. The makers of parted/gparted completely ignored my question. Some time back in slackware, I'd formatted a 2TB with two ext2 partitions, but ...
Angus Fergusson's user avatar
0 votes
0 answers
495 views

USB HD does not show up in dev/

2TB USB drive does not show up at dev/ when I plug in. All other questions and answers seem to assume that the device is visible to these type of commands: lsblk, lshw, lsusb, parted, gparted, fdisk. ...
Ron's user avatar
  • 869
0 votes
0 answers
57 views

External HDD shows up as two separate HDDs in Disk Utility after executing parted

Good day to all, as I mention in my title, the external HDD shows up as two separate HDDs (..kind of) in Disk Utility after executing the following command: sudo parted -l In particular, once I ...
Chim3ra's user avatar
  • 211
2 votes
2 answers
5k views

How to setup a 6TB HD on Ubuntu

I just bought a 6TB HD from WD and I cannot make bigger partitions than 2TB. I looked up in some tutorials like this one, but I still have the problem that fdisk, parted and lsblk display that there ...
metty's user avatar
  • 21
1 vote
0 answers
192 views

Problem formating 2TB HDD

I'm trying to create a 2TB partition on a WD Blue HDD (WD20EZRZ), I believe the issue is that the partition table isn't being written to the drive because after I use parted and print I see Error: /...
DTYlan's user avatar
  • 11
2 votes
2 answers
12k views

How to delete the bootable flag of a partition

I can add a bootable flag with the a command of fdisk. How to do the reverse: remove the bootable flag of a partition?
user123456's user avatar
  • 2,368
1 vote
0 answers
996 views

How to add unallocated space to root partition?

I need to add unallocated space to my root ext4 partition where my Ubuntu 14.04 is installed. I've read dozens of tutorials and couldn't find the one working for me. Most of the tutorials include ...
yakovenko-denis's user avatar