Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [parted]

A disk partitioning and partition resizing program.

1
vote
1answer
31 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 iotop -o shows no IO activity. It freezes only when ...
0
votes
0answers
20 views

Parted, cannot mount newly created partitions

I am making my own script for partitioning disks and I am unable to mount the partitions which were just created using parted CLI tool. I am doing this on a virtual machine with virtual disks, but ...
1
vote
1answer
27 views

Parted partition drive with small partition at the end

I would like to partition a drive from a script, so that there is a big partition filling most of the drive, then a small one at the end. So far I have come up with. parted -s -- /dev/sda mklabel ...
0
votes
1answer
40 views

Can the phone storage device of an android phone be shown when connected to Lubuntu?

My Android phone has 1GB Phone space, and 2GB MicroSD card. When I connect the phone to my computer (Ubuntu) via a USB cable, only the 2GB MicroSD card is shown in sudo parted -l and df -l commands. ...
0
votes
1answer
59 views

How to create multiple partitions of the same size from command line?

I need to create 20 partitions of the same size (cue to the first comment only the first 3 can be primary and the 4th needs to be extended an the other remaining 17 in it) I tried: for i in $(seq 1 ...
0
votes
1answer
20 views

Does the Modifications Made In GNU Parted Affect the File System Table File?

My Nexus 7 (2013 WiFi) tablet PC has a corrupted partition table. I would now like to troubleshoot into Linux. After loading GNU Parted on the tablet and making a new GPT table with 30 partitions ...
-2
votes
1answer
46 views

How shall I create a single partition on a disk for making it an external hard drive with a ntfs filesytem?

In manpage of parted: Command: mkpart [part-type fs-type name] start end Creates a new partition, without creating a new file system on that partition. This is useful for creating partitions ...
0
votes
1answer
77 views

What do the partition table types and flags mean in the output of parted?

In the output of sudo parted -l: Model: WD My Passport 0748 (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size ...
0
votes
1answer
29 views

Where does this 16.1 GB device of “Model: General UDisk (scsi)” come from?

I installed Lubuntu 18.04 on the hard drive of a laptop (model: Toshiba Satellite C55Dt-A). When I boot into a live Lubuntu via a bootable flash drive (4GB) , sudo parted -l reports /dev/sdb as a ...
0
votes
0answers
34 views

“Error: /dev/mapper/lubuntu--vg-home: unrecognised disk label” for a LV

What does "Error: /dev/mapper/lubuntu--vg-home: unrecognised disk label" mean for LV home? What can I do about it? Thanks. $ sudo parted -l Model: ATA TOSHIBA MQ01ABF0 (scsi) Disk /dev/sda: 500GB ...
-2
votes
1answer
72 views

How can I split a monolithic partition into two, one for `/` and one for `/home`? [duplicate]

Right now, I have everything in a partition (except EFI system partition). How can I split the partition into two, one for / and one for /home? How would you use parted to do that step by step? How ...
1
vote
1answer
138 views

Can `parted` move a partition like `gparted`?

I saw in https://unix.stackexchange.com/a/501410/ that gparted can move a partition in a disk. Since gparted is said to be a frontend of parted, what is the corresponding command(s) using parted to ...
0
votes
1answer
41 views

Can parted show used and available sizes as gparted?

gparted is said to be the GUI frontend of parted. Why can't parted show used and available sizes for each partition, as gparted does? If parted can, how can I make it show that information? If ...
0
votes
1answer
37 views

Create bootable sd card with parted

I executed the following script to create a bootable SD card, but the raspberry pi doesn't boot. The sd cards are fine, they arrived today in the mail and badblocks found none. What am I missing? #!/...
0
votes
1answer
148 views

Do `parted resizepart` and `resize2fs` not modify or remove existing files on a partition?

Does parted's resizepart command by default not modify or remove existing files on a partition? Furthermore, does it never modify or remove existing files on a partition (even by some option)? ...
0
votes
3answers
100 views

How shall I improve the current partitioning of my hard drive for Linux filsystems? [closed]

I have had these questions for a long while, so I hope this post won't be closed. gparted shows the current partitions on my hard drive: When I partitioned my hard drive two years ago, I didn't ...
0
votes
0answers
42 views

Parted: invalid option — '1' when trying to resize partition to end of disk

I'm trying to resize the root partition of a device to go to the end of the disk, like so: parted /dev/mmcblk0 resizepart 3 -1s This should grow the third partition to the very end of the device no ...
0
votes
1answer
58 views

Does parted have the same functionality as gparted for shrinking an ext4 partition?

I've been Googling about, and it seems the answer is 'no' from anecdotal reports for gparted. However does this apply to parted as well? I'm not talking about risk factors here involved by inputting ...
0
votes
1answer
36 views

Scripteable partitions using parted

This are my original partition tables of my device Number Start End Size File system Name Flags 19 210MB 4370MB 4161MB ext4 SYSTEM 20 4370MB 4633MB 262MB ...
0
votes
1answer
33 views

Dual Boot Linux Partition shows as Partition Table: loop in parted (Why?)

Recently I was checking into my partition scheme on my dual boot laptop (Peppermint OS, Windows 10). I was surprised by the output from parted /dev/sda12 (my Linux root partition) Model: Unknown (...
0
votes
1answer
57 views

Resizing /home in Opensuse

I am using Opensuse Tumbleweed and set up the root partition as btrfs and home partition as ext4. I used lvm during installation.When installed, the root partition had 40GB and home partition had 25 ...
1
vote
1answer
68 views

How to create a partition with GNU Parted exactly at the end of the previous partition?

I have a 8 TB hard disk with two partitions on it: 3 TB and 1 TB, so remaining 4 TB is free. I'd like to create a 3rd partition which would span rest of the disk. In the early days with fdisk when ...
3
votes
1answer
76 views

How can I re-partition a hard/ssd-drive without losing data?

When I got my notebook with a 512GB SSD, I reformatted it and installed Ubuntu. I've followed Ubuntu's suggestion to partition the drive, so I have it partitioned as follows: $ sudo parted -l Model: ...
0
votes
1answer
69 views

how to create parted disk

the linux ( OS ) installed on sda and machine also have additional disk - sdb sdb 8:16 0 20G 0 disk but we want to add two new partitions as sdb1 and sdb2 as the following: ...
3
votes
1answer
1k views

df not recognizing partition being resized? [duplicate]

I've got Ubuntu 18.04 Server in Virtual Box, and once I've ran out of 10 GB of allocated space on virtual disk, I've increased the size of the virtual disk to 17 GB and resized the root partition ...
0
votes
1answer
63 views

ext4 partition is broken during resizing with gparted

I installed Fedora 28. But I resized the partition that contained Fedora (/dev/sda7) wrongly using GParted and now I can't boot my system. (Note the partition format is ext4)
1
vote
0answers
23 views

parted create corrupt superblock, but gdisk doesn't [closed]

on two different machines, thinkpad x200 with legacy bios, and hp with EFI support, using parted for partitioning HDD from live boot (ubuntu, and arch), most of time, parted fails, and i don't seem to ...
0
votes
1answer
70 views

Is there an equivalent of DETAIL DISK in Parted or other Linux DISKPART type consoles?

Im trying to scrape information of drive type. EG USB, RAID Etc.. In windows I can use DISKPART and run the command DETAIL DISK : Example: DISKPART> select disk 1 Disk 1 is now the selected disk. ...
1
vote
2answers
343 views

parted: invalid token: swap

I'm tring to add flag swap with parted but got invalid token,why? Model: Kingston DataTraveler 3.0 (scsi) Disk /dev/sda: 15.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk ...
1
vote
1answer
927 views

Resize partition using parted

I want to resize a partition on a 8002GB disk /dev/sdb1 using parted. Start 1000MB | End 4000MB | Size 3000MB | File system NTFS (and so on) Current version of parted has replaced resize with ...
0
votes
2answers
367 views

Difference output for partition size from parted and df -hP?

I have a partition /dev/sdb before with 100 GB only (only 1 virtual partition: /dev/sdb1). Now, /dev/sdb has been increased to 480 GB but I don't know how to increase /dev/sdb1 to 480 GB as well. I ...
0
votes
2answers
224 views

How to store output command in variable and use this varible again for next command after pipe

How to store output command in a variable and use this variable again for next command after pipe? lsblk | awk {'print $1'} | grep ^sd | parted $input mklable gpt mkpart primary "1 -1" -s $input is ...
0
votes
0answers
111 views

Need to extend logical partition (Non -LVM)

I've got a physical server (RHEL 6.7) using standard partitioning with 10 partitions on block device /dev/sda. /dev/sda6 /home needs more space. Filesystem Size Used Avail Use% Mounted on /dev/...
1
vote
1answer
427 views

Adding brick volume to gluster fails

I created a 2TB volume to increase space on home directory. I created the partition: $ parted /dev/xvdb mklabel gpt $ parted -s /dev/xvdb mkpart primary ext4 1 100% Formatted the partition: $ mkfs....
2
votes
1answer
93 views

Split partition on software RAID 1 with `parted`

I have a software RAID 1. There is data already stored on the system. I want to shrink an existing partion and then create a new one with the remaining space. I'll use parted. I'm aware I cannot ...
0
votes
1answer
191 views

Force partition id with parted

I want to create a LVM partition using the parted command. So far I did: # set up the partition table parted /dev/sda mklabel msdos #/dev/sda1 (boot) : parted /dev/sda mkpart primary ext2 1MiB ...
4
votes
0answers
331 views

How to resize2fs ext4 partition that I shrunk with parted without e2fsck -f complaining of superblock or partition table

Please note that if I resize my partition back to original size with parted, I can then mount my /dev/vda1 partition without problems. But how can I get it to mount it after I SHRUNK it to 8GB? (...
1
vote
0answers
42 views

Why increase the size by 2B when adding only one?

Software parted takes automatically size of sector (512B for GPT). I enter exact size to MB, but I can't create swap partition with exact size. mkpart swap linux-swap 15.5GB 17013 print Number ...
1
vote
1answer
75 views

Can't mount external Hard Drive after shrinking partition with parted

I resized the NTFS partition in my external hard drive by shrinking it and then I created a 2nd fat32 partition starting from the end of the 1st partition. I also switched the boot flag from the NTFS ...
0
votes
1answer
254 views

How can I use parted to delete lvm and create new extended?

I have a CentoS 6 KVM VM installed on Proxmox with the following disk configuration. Could anyone guide me on how to remove the current /dev/sda2 using parted and then add it back extending the disk ...
1
vote
1answer
314 views

How can I create a bootable flash drive for Lbuntu and also store temporarily other personal files in the same flash drive?

I have a flash drive, whose information given by sudo fdisk -l is Device Boot Start End Sectors Size Id Type /dev/sdb1 1 7864319 7864319 3.8G c W95 FAT32 (LBA) I would like to ...
0
votes
0answers
112 views

Parted: Creating fat32 partition on new drive doesn't mount properly, uses loop device

Given this script: #!/usr/bin/env bash DEVICE="/dev/sdb" parted -s $DEVICE mklabel gpt parted -a optimal $DEVICE mkpart primary fat16 0% 100% parted $DEVICE name 1 msdos # Boot partition mkfs.fat ...
0
votes
0answers
566 views

Parted: Creating partitions on a drive for EUFI boot, fat16 doesn't mount properly or show up on firmware as boot option

I have a library (referred to here as "wic") that generates a drive.img file that contains multiple partitions, including a boot partition with a UFI exe. If I dd if=drive.img of=/dev/sdb, it works ...
0
votes
1answer
35 views

Can I use parted on existing partition that has free space without loosing data?

I have a partition /dev/sda that uses 18GB out of 250GB It has an operating system data that I would keep, even if I dont boot it again. I'm interested to know if I start parted and create a new ...
2
votes
0answers
425 views

Change the start of a partition with parted?

How can I change the start location of a partition using parted or similar tool? It looks like you can only change the end location of partitions but that doesn't seem right. https://www.gnu.org/...
-1
votes
1answer
111 views

Drive in readonly, after cryptsetup

I have been having some trouble with my 16Gb USB. You see I decided to attempt to encrypt it using cryptsetup, and I have done this before without problems, but his time, when I was creating a ...
1
vote
1answer
146 views

parted create .img ready to work

In question "Parted command line not get the same result", the answer was selected as correct (to create IMG file systems and partitions with "parted") is: # parted MyDrive.img \ mklabel msdos \ ...
3
votes
1answer
485 views

parted command line not get the same result

I created my virtual disk (1024MB): ~$ dd if=/dev/zero of=MyDrive.img iflag=fullblock bs=1M count=1024 && sync Case 1: Now I'm going to configure it with inside parted to Partitioning / ...
2
votes
1answer
759 views

Is parted auto mounting new partitions?

There appears to be an undesired side effect to parted creating a new partition, if the partition previously existed it will be automatically mounted, even before it has been formatted. This is ...
0
votes
0answers
69 views

backup filesystem on Fedora 27 with parted magic to HDD?

I want to backup my filesystem, so I can recover if I do something wrong. I heard I could use Parted Magic to make backups, but i don't know how. And if I broke my Fedora filesystem, how can I ...