Questions tagged [parted]

A disk partitioning and partition resizing program.

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

Resize ext4 partition while minimizing potential mistakes via command line?

There are plenty of guides to resize a partition or even this question - How to to resize an ext4 partition from the command line?, however I'd like to know how to do safely this using a command line ...
0
votes
1answer
34 views

Extend first partition to available space after third partition

I have 3 partitions (linux, extended, swap) I need to extend my live partition (linux) to the space available after these partition. More info: #fdisk /dev/vda Welcome to fdisk (util-linux 2.29.2). ...
0
votes
0answers
38 views

Parted and fdisk will not write changes concerning creating a partition table

I am trying to use this HDD (which is quite old) as a storage device. However, I have ran into some issues. It had two partitions which I removed with fdisk first. Now whenever I try to create a new ...
0
votes
0answers
21 views

add additional msdos based partition using maximal amount of space

Stumbled about a problem with gpt: [root@someserver ~]# parted /dev/sdb GNU Parted 2.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: VMware ...
0
votes
1answer
17 views

How can I resize root partition without using VFS or RAID

I had one SSD disk(500GB) in my desktop. I used dual booting system(Arch Linux, Windows) and Windows used 100GB of the disk. Today I added new SSD disk to my desktop so I moved windows to new disk. ...
0
votes
1answer
43 views

Why am I getting different outputs from parted and fdisk?

note: I am a Linux beginner, and trying to learn from the following book: How Linux Works Running parted -l I get: Model: KBG30ZMV256G TOSHIBA (nvme) Disk /dev/nvme0n1: 256GB Sector size (logical/...
0
votes
1answer
44 views

Cannot create partition on hard drive

I'm on PopOS 19.10, and I try to create a partition on my new SSD (Crucial MX500, 1TB). Note that it worked on Windows, I could create a NTFS partition, so from this base I admit my SSD is healthy (...
2
votes
1answer
131 views

How to change the device label of a USB stick? [duplicate]

I have done some research on this and found this question many times. However, all the answers I have found only address how to change a partition label. I am talking about what is reported by lsblk -...
0
votes
0answers
163 views

LINUX “No valid partition table was found on this device.” + “Error: Can't have a partition outside the disk!” + fdisk reads “7.3T” Size; How to fix?

Distro: Netrunner Blackbird (Debian) I/O: Sata to USB cable KDE Parition Editor: "No valid partition table was found on this device." me@computer:~$ sudo parted -l Model: ATA LITEONIT LCT-128 (scsi) ...
0
votes
2answers
313 views

How to increase the size of extended partition with free unallocated disk space to the right of it using fdisk/parted utilities?

# parted /dev/vda print free Model: Virtio Block Device (virtblk) Disk /dev/vda: 137GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File ...
3
votes
1answer
157 views

Arch ISO not recognizing SSD, does see HDD

I'm installing Arch Linux and when I was about to partition my drives, I noticed something odd. In my laptop, I have two disks: a 1TB HDD and a 512 GB SSD. I would prefer to use the SSD as my boot ...
0
votes
0answers
46 views

parted start partition and grub core.img

How do you use parted to make the first [primary] partition start at sector 63? Or does this happen automatically when doing parted /dev/sdb mkpart primary 0% <end %> I am dealing with ...
0
votes
0answers
30 views

Setting flags with Parted after chroot into an external hard drive gives the “we have been unable to inform the kernel of the change” error

I attempted to run 2 parted commands after chrooting onto an external hard drive, and it gives me these errors: + parted --script /dev/sdb align-check opt 1 + parted --script /dev/sdb set 1 bios_grub ...
0
votes
1answer
138 views

What fs-type should I use in parted when creating an exFAT partition?

When I try to create a partition with parted and a filesystem type of 'exFAT', I encounter the following error: parted: invalid token: exFAT What fs-type should I use when creating a partition ...
1
vote
2answers
278 views

Why does parted need a filesystem type when creating a partition, and how does its action differ from a utility like mkfs.ext4?

I am partitioning a disk with the intent to have an ext4 filesystem on the partition. I am following a tutorial, which indicates that there are two separate steps where the ext4 filesystem needs to ...
0
votes
1answer
28 views

USB stick after incomplete run of dd

I have a hard drive with 2 equally sized partitions and a USB stick with 70% of capacity of the hard drive. Now I use dd if=/dev/harddrive of=/dev/usbdrive bs=1M to "clone" my hard drive. I would ...
1
vote
1answer
818 views

Wrong sector size in NVMe

I bought a new NVMe SSD (SB-ROCKET-256) and installed Arch using gdisk for partioning. In theory, this SSD doesn't support 512e and I think the physical size should be 4096, am I wrong? How do I set ...
1
vote
2answers
380 views

How to avoid naming of partitions with parted?

If I run these commands: parted -s /dev/sda \ mklabel gpt \ mkpart primary 1MiB 261MiB \ set 1 esp on \ mkpart primary 261MiB 50GiB \ mkpart primary 50GiB 550GiB \ mkpart ...
0
votes
0answers
126 views

parted: resizefs -1s did not work but resizefs -100% works

I'm trying to resize the GPT partition to the end of disk (SD card) using following: $ sudo parted -s /dev/sdg -- resizepart 8 -1s But I got the following error Error: Unable to satisfy all ...
0
votes
0answers
25 views

Newly created partition number

I'm writing a program (in java) that slices a clean device onto a set of partitions, using parted mkpart to create the partitions. In order to create a next partition, I want to know a partition ...
0
votes
0answers
19 views

Shrink partition & Resize the other partition

I looked up all questions related but none seem to address my issue. Using the command parted /dev/sda I would like to shrink /dev/sda3 to 100 GB while extend /dev/sda2 to 1700 GB. This is the ...
-1
votes
1answer
167 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
36 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
50 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
250 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
42 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
55 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
1k 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' ...
2
votes
3answers
1k 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
182 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
115 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
144 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
105 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
461 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
74 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
218 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
745 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
194 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 ...
-2
votes
1answer
405 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 ...
2
votes
1answer
2k 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
93 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
209 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
755 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
144 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
1answer
236 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
103 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
173 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
387 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
760 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
436 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: ...