Questions tagged [parted]

A disk partitioning and partition resizing program.

Filter by
Sorted by
Tagged with
1
vote
0answers
42 views

What is the correct start offset for logical partitions?

Recently I've start to implement some script to run using Linux "parted" to change the partition structure on our SoC system. When doing that I've encounter with some problems, The ...
1
vote
0answers
12 views

Parted: Partition 1 (/dev/sdb1) not accessible after partition resize using parted

I used parted tool to shrink the main volume so that I can create a new partition on the HDD (capacity 2TB). I read articles and tried multiple options, like, GParted. But that didn't help. I was a ...
0
votes
0answers
31 views

Trying to create partition on hard drive

I am trying to create a partition on a physical hard drive. Here is the output I gent when I use print (parted) print Error: /dev/sdd: ...
0
votes
1answer
17 views

arch create EFI partition — invalid token EFI System Partition

I'm following instructions given here for creation of EFI partition: https://wiki.archlinux.org/index.php/Parted But my installation is not behaving according to the description (parted) print Model:...
1
vote
1answer
26 views

Are parted's end positions inclusive or exclusive

When creating partitions with parted, and when printing them back out, I was curious if the value for 'end' is inclusive or exclusive? Asked another way, is the second named in 'end' the last sector ...
2
votes
2answers
66 views

Parted says not aligned, but should be correct

Model: ATA Samsung SSD 850 (scsi) Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 ...
0
votes
1answer
23 views

Do I need to use partpobe and mkfs or can parted format the partition as ext4 automatically?

I am trying to create a single partition using parted command in Linux with ext4 file system using below command non interactively parted /dev/sdc --script -- mkpart primary ext4 0% 100% Could ...
1
vote
0answers
23 views

Move Ubuntu install to new drive from safe mode

Currently my linux system will not boot because the partition it is on has no space left at all. I get an error when I was able to log in that said: " Warning unable to write to /tmp ". Now, ...
1
vote
1answer
105 views

How to shrink a file image, produced with dd?

I tried the process from this post resize partition on an image file. I didn't succeed in understanding why it goes wrong in my case. I produced a 8GB image using dd. The image contains two partitions....
2
votes
1answer
122 views

fdisk dowsn't recognize SanDisk USB 3 Ultra Flair

I went through what I found about this subject in the most of the threads, unfortunately without success. I have the following situation. fdisk or parted doesn't recognize this sanDisk USB flash: ...
0
votes
1answer
273 views

How to recover filesystem and physical size mismatch

I was trying to shrink my home partition. I followed this ArchWiki article for that. According to this I first resized my filesystem using resize2fs and then resized my physical device using parted. ...
-1
votes
2answers
41 views

lvm sizes don't add upto the partition size

If you see these are my two partitions 1 and 2 Now if we look at the partition level sda2 is total of 149.5G ie root, swap, home of 50, 3.8, 25.7G each but that still not adds upto total size of the ...
0
votes
0answers
16 views

File recovery from corrupted NTFS drive

I have an SSD drive that was used with Windows 10 and suddenly stopped working. To recover the data, I made an image of the drive in Linux by: ddrescue /dev/sda ssd_rescue.img ssd_rescue.log No ...
0
votes
1answer
27 views

Problem with resizing partition in ubuntu

I have enlarged my partition with GNU Parted but when checking with df -h and (parted) print I see that the sizes are different. How can I make df -h reflect the actual size of the partition? Thank ...
0
votes
0answers
33 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
96 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
377 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
24 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
29 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
194 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
53 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 (...
3
votes
1answer
727 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
677 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
892 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
505 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
115 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
66 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
381 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 ...
3
votes
2answers
1k 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
33 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
2k 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
907 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
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 ...
-1
votes
1answer
260 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
38 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
68 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
385 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
44 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 ...
3
votes
2answers
2k 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' ...
3
votes
3answers
2k 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
319 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
213 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
194 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
130 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
678 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
84 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
316 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
1k 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
260 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 ...