Questions tagged [parted]
A disk partitioning and partition resizing program.
205
questions
0
votes
0answers
29 views
broken pendrive. gui software is crashing. any ideas for commands ? it only seems for not lagging
yes. problem is :
when i connect his pendrive PC automatically slow down
after trying to change something in gparted, program immediately lags and i need to force close
systems I'm using - ubuntu 20....
0
votes
0answers
13 views
How can I fix the partitions on a Mac disk image using testdisk and parted?
I was given a corrupted disk from a Macbook, and I'm on Linux Mint 19. I took a whole disk image using ddrescue, and that's what I'm working with.
I ran this command:
sudo testdisk myimage.img
And ...
1
vote
0answers
50 views
How to run parted mklabel in a script without user prompt?
I am trying to write a bashscript that will re-partition a drive using the parted utility. Since it is running in a script, I would like parted to not prompt the user for input (or alternatively, have ...
1
vote
0answers
32 views
dd cloning process keeps the partition table but not the logical volumes and their names, why?
So I Am trying to clone a drive using dd via the following command
#dd if=/dev/sda of=/dev/sdb bs=64k status=progress
the command does what it is supposed to for the most part but the usb which was ...
0
votes
1answer
29 views
Linux partition end is greater than the physical disk and partition size
I have two partitions on my hard drive. /dev/sdb1 for my entire system and /dev/sdb2 as a swap drive. I had a couple of system crashes and thought that I might need to increase the size of my swap ...
-1
votes
1answer
18 views
Volume show different sizes in CentOS 7
I hope you and your dears are very well.
I'm facing a issue which I cannot understand the root cause.
I have a VM with CentOS 7 64 bits. This VM has the following partitions:
Filesystem Size ...
1
vote
1answer
29 views
Inconsistent filesystem type reported after disabling journalling
In trying to understand why kworker flush uses 99% I/O and hangs file write on machine, I've disabled journalling on the ext4 data partitions using:
tune2fs -O ^has_journal /dev/sdg1
After a reboot, ...
1
vote
0answers
134 views
How to shrink an encrypted BTRFS partition?
I have an external USB HDD (WD Elements). The entire drive is currently one large partition. Call it /dev/sda1. This partition was encrypted like this:
cryptsetup -v --type luks --cipher aes-xts-...
0
votes
0answers
30 views
Nextcloud (Ubuntu VM) - Extending partition on a device with multiple partitions using parted
I am attempting to extend the first partition on my second disk, however there is a second partition on the disk, and I am unsure how to "move" or change the partition start location.
I am ...
1
vote
0answers
43 views
What is the correct start offset for logical partitions? [duplicate]
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
17 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
32 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
34 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
35 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
157 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
51 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
28 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
143 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
161 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
1k 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
43 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
24 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
37 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
38 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
126 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
804 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
27 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
42 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
279 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
72 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
1k 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
1k 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
1k 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 ...
4
votes
1answer
817 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
1answer
635 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 ...
4
votes
2answers
2k 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
45 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
3k 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
1k 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
27 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
319 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
39 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
91 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
478 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
50 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
57 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
3k 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
3k 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
412 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
257 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 ...