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
votes
1answer
28 views

How to use parted or sfdisk to non-interactively partition a disk so that the partitions are properly aligned?

I'm trying to figure out how to partition a disk in a programmatic way so that my disk will have three "msdos" primary partitions: one for /boot, one for swap and the last for logical volumes. I can'...
0
votes
1answer
28 views

Can files survive partition table and file system recreation?

By GNU parted I created new DOS partition table, one partition and by mkfs.ext2 ext2 file system on that partition. I copied some files to that partition. After that I again created new DOS partition ...
0
votes
0answers
22 views

Partition Start and End Calculation

I was using the parted command and i was trying to create a new partition using the mkpart option. While i was doing this it asked for the partition start and end. Now i believe i know what the ...
4
votes
1answer
151 views

Partition error (Fdisk/Parted)

I was creating a partition using the parted command and i used the mkpart option to create a new primary partition. But i got an unusual error message while doing this. This is my output: (parted) ...
0
votes
1answer
29 views

Will relabeling a partition destroy data

Is it possible to relabel a partition that was accidentally relabeled with a different file system type? We think we accidentally relabeled sdb1 as XFS when it should have been labeled lvm(8e), after ...
0
votes
0answers
44 views

Hard disk Start and End Calculations (closed)

I am using the common Linux Parted command which is used to manipulate the partition table, but there is a problem. i was trying to create a new partition using the mkpart option. While i was doing ...
2
votes
2answers
57 views

parted command (start and end meaning)

I am using the Linux parted command; I was using the 'mkpart' option which allows new partitions to be made, but I was confused when it asked me for the start and end. What does 'start' and 'end' ...
0
votes
3answers
87 views

Why is lsblk showing the old FSTYPE and LABEL of a device that was formatted?

I formatted an external hard drive (sdc) to ntfs using parted, creating one primary partition (sdc1). Before formatting the device SystemRescueCd was installed on the external hard drive using the ...
1
vote
1answer
59 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
26 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
66 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
43 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
156 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
27 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
57 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
143 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
34 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
70 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
89 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
324 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
51 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
44 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
281 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
105 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
85 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
69 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
41 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
50 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
95 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
161 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
95 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
74 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
2k 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
74 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
24 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
89 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. ...
2
votes
2answers
434 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
1k 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
431 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
369 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
144 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
531 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
107 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
215 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
366 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
95 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
280 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
351 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
671 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 ...