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).
35
questions with no upvoted or accepted answers
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 ...
2
votes
1
answer
165
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 ...
2
votes
0
answers
818
views
GPT ext4 partition recovery - invalid backup header
When I run from a LiveCD to try to recover a non-booting system, I run gdisk /dev/sda and get
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
...
1
vote
0
answers
669
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 ...
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 /...
1
vote
0
answers
930
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 ...
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 ...
1
vote
0
answers
194
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: /...
1
vote
0
answers
1k
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 ...
1
vote
0
answers
2k
views
Parted: Wrong disk size reported on new 3TB hard drive
I have a brand new WD Blue 3TB HDD (WD30EZRZ). After having fiddled with it too much (trying to initialize it to GPT on Windows with various system freezes because of whatever reason, etc) ...
I ...
1
vote
1
answer
709
views
different partition size in parted and in df
Can anyone explain the difference between partition size in parted and in df?
root@HOME:~# parted /dev/sda
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
...
0
votes
0
answers
30
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 ...
0
votes
0
answers
61
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 ...
0
votes
0
answers
316
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 ...
0
votes
0
answers
30
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 ...
0
votes
1
answer
297
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/...
0
votes
1
answer
246
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 ...
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 ...
0
votes
1
answer
668
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 ...
0
votes
1
answer
200
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 ...
0
votes
0
answers
9k
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 ...
0
votes
0
answers
351
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 ...
0
votes
0
answers
545
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 ...
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 ...
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 ...
0
votes
0
answers
684
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 ...
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 ...
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 ...
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
...
0
votes
1
answer
934
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 '...
0
votes
0
answers
502
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.
...
0
votes
0
answers
58
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 ...
0
votes
0
answers
64
views
check option in parted command line unavailable after unmount
I have an external hard drive 1 TB that won't open in Windows but will open in linux...attempt to run fsck command after unmounting just outputs:
'fsck from util-linux 2.25.2'
gparted gui hangs on ...
0
votes
0
answers
5k
views
how to grow the disk size parted?
I have a big doubt regarding how works parted, let me explain
I have two machines
machine with hard drive 60GB
machine with hard drive 120GB
In the machine 1 I set up an Ubuntu image with the ...
0
votes
1
answer
2k
views
Ubuntu Linux Parted Error: Input/output error during write on /dev/sde
I have created and attached an disk to VMware VM and trying to create a partition on the disk using parted Utility.but got the errors Input/output error during write on /dev/sde.If we do the fdisk -l ,...