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
0answers
9 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 ...
0
votes
0answers
58 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 ...
0
votes
0answers
9 views

18.04 Issues when making duplicated drives

I have been successfully creating new SSD drives for use in the equiment manufactured by the company I work for using v 16.04 LTS, now that upgraded to v 18.04 the drives that are being created are ...
0
votes
0answers
58 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
2answers
192 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 ...
1
vote
1answer
36 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/...
0
votes
1answer
248 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 ...
0
votes
0answers
24 views

GParted stuck when formatting swap drive

I'm trying to format a USB disk which was used as a swap drive on another machine using gparted. It keeps getting stuck at the following screen I wish I could expand 'Details', but it was frozen. ...
0
votes
0answers
67 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
0answers
263 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
0answers
206 views

SAS Drives Ubuntu Server 18.04 [duplicate]

I have two SAS drives of the same type. I have install the ubuntu operation system on the first SAS drive. Now I want to use the other drive for storage, but it doenst seem to show up on parted, lsblk,...
1
vote
0answers
710 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 /...
0
votes
0answers
91 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
1answer
110 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 ...
0
votes
1answer
108 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 ...
0
votes
1answer
165 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 ...
0
votes
0answers
282 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
0answers
71 views

File system problems, sudo parted -l, sudo fdisk -l show16 loops? [duplicate]

I guess something is wrong with my filesystem. Gparted shows: sda 1 (boot 487 MB), sda 2 (extended 238 GB), sda 2, sda 5 (lvm2 pv 238 GB) of the 238 GB, only 48 MB are unused The fdisk -l ...
2
votes
2answers
87 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 ...
1
vote
0answers
303 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
0answers
521 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 ...
0
votes
1answer
1k 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
1answer
28 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 ...
1
vote
0answers
78 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 ...
0
votes
0answers
655 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 ...
1
vote
2answers
3k 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 ...
0
votes
1answer
518 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 '...
2
votes
2answers
6k 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 ...
2
votes
1answer
697 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 ...
0
votes
0answers
282 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
0answers
35 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 ...
2
votes
2answers
3k 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 ...
1
vote
0answers
91 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: /...
0
votes
2answers
6k 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?
1
vote
0answers
560 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 ...
0
votes
1answer
37 views

Is is possible to format a disk to behave like a CD-R?

Is it possible to configure a partition/disk to have non-removable content like a CD-R? By this I mean I can write on the partition/disk only on empty "parts" The written content cannot be changed ...
1
vote
2answers
91 views

Why does installing `parted` try and install nginx?

My parted install seems to fail with a dependency on nginx. $ sudo apt-get install parted Reading package lists... Done Building dependency tree Reading state information... Done The ...
0
votes
0answers
835 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 ...
0
votes
0answers
35 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
1answer
3k 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
1answer
179 views

Unable to resume terminal--vg-root!

Well, today I was trying to expand my root partition with parted. I wanted to expand it from 100G to 200G. But I fatfingured it and my system crashed. On rebooting it gave me the error: unable to ...
2
votes
0answers
438 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. ...
0
votes
1answer
1k 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 ,...
1
vote
1answer
2k views

fdisk not showing partition, parted does

I just noticed when doing a fdisk -l /dev/sdl that my partition is not shown: Disk /dev/sdl: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (...
1
vote
1answer
1k views

Wrong partition sizes (I think?)

I know just enough about Linux to mess things up, so apologies in advance. I have tried looking at some of the other threads here similar to this, but none of the answers seem to help. I have a 4TB ...
0
votes
1answer
671 views

Error message on 5TB Harddisk: Partition 1 does not start on physical sector boundary

I bought a Wester Digital Green 5TB harddisk and have difficulties to format it. fdisk -l shows the following message: WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk ...
2
votes
1answer
261 views

Completely defragmenting a disk

So, my disk is a mess. First I need to mention that it is a NTFS filesystem. So what I want to do is to completely defragment the disk. I want it so that after defragmenting I have continuous empty ...
1
vote
1answer
467 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. ...
2
votes
2answers
5k views

How to resize a partition of a GPT throught Parted Command line tool. (Using SSH Rescue Env.)

I have a Remote Dedicated Server with no Online control panel to resize partitions after initial OS install, so I am using the debian based rescue environment to manipulate the partitions unmounted. ...
1
vote
1answer
382 views

Help needed recovering erased boot disk label

I dun goof'd. Up until about an hour a I had a working installation of 14.0 on my 2013 Macbook Air, with full disk encryption as set up in the standard installation process. But tonight, in the ...