Questions tagged [parted]

The tag has no usage guidance.

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

Why is the partition type frequently used with mkpart when building gpt-based partitions?

I frequently see advice (e.g. ArchWiki) to execute a command like this when building an EFI system partition for GPT: (parted) mkpart primary fat32 1MiB 261MiB or like this for a root partition: (...
1
vote
1answer
2k views

How do I shrink the partition of an img file made from dd?

I've copied the USB drive to an .img file using dd: dd if=/dev/sdc of=myimage.img I want to reduce the size of the partition in the image. I've tried several methods and always end up with a ...
4
votes
1answer
169 views

Why does GNU parted write data to the first 440 bytes of the MBR?

My understanding is that an MBR is 512 bytes. The first 440 bytes (give or take a few bytes, depending on the implementation) contain the boot loader/bootstrap code area. The remaining bytes contain ...
1
vote
1answer
742 views

Trouble figuring out optimal alignment of multiple partitions on a 931.5 GiB external Advanced Format HDD while in Linux

SUMMARY I have a Dell Inspiron 17-5767 laptop with a 1TB internal disk I've allowed the originally shipped Windows 10 to continue to have and dominate all to itself (it's my gaming OS). Additionally ...
1
vote
0answers
2k views

Resize LUKS Partition

I have a 68 GB logical LUKS partition at the very end of a drive, and to the left of that I have 60 GB of free unallocated space. Both of these partitions together make up an extended partition. I ...
1
vote
2answers
10k views

How to extend partition linux parted

Context I have a remote Linux CentOS VM on Azure which hosts a MYSQL database. I just finished upgrading the disk size from 30GB to 100GB. Problem is that extra space wasn't added to the partition. ...
0
votes
2answers
605 views

Create a fresh table with GNU parted

I have a USB stick which I recently used to dd an iso to it so that I could use that stick as a booting drive. Now, I would like to store regular files there. When using parted I constantly get this ...
1
vote
1answer
209 views

Removing a partition with boot flag

I have: sda1 (win) sda2 (lin) I want to remove the sda1 partition... should I set a boot flag to the sda2 before proceeding?
1
vote
1answer
361 views

How to make GPT extend to the full 3TB a disk has?

I've got a third party install Linux on my remote server and something went wrong with it. It has a 3TB disk in there: # hdparm -I /dev/sda | grep size Logical Sector size: 512 ...
0
votes
1answer
611 views

Move Linux Partitions, Dual Boot with windows

I'm not thinking about Expand Linux Partitions... I need Shrink (one, the larger) and move it (two, with the swap)... Here my HD from Windows View (Disk Management) Now, I want to reduce the last ...
0
votes
1answer
1k views

Reclaim 100GB on disk not “seen” by fdisk but shown in parted

I am running Ubuntu 14.04 and am using lvm for the root and swap partitions. When I use parted ( or gparted) I see 110GB unpartitioned on /dev/sda . hari@Ubuntu02:~$ sudo parted /dev/sda unit GB ...
1
vote
1answer
101 views

Windows displays old NTFS after partitioning disk for ext4 on Linux

I try to install a "shared" space between my Gentoo and my Windows10. So, in Gentoo, I used parted to remove all (NTFS) partitions from one of my drives and repartition it with ext4. I then mounted ...
1
vote
2answers
4k views

Can't create a partition table on micro SD card

I'm trying to reformat a micro SD card that was previously in a raspberry pi (and had stopped working). However, when I plug it into my main computer (arch) and try to partition it, I can't because ...
2
votes
1answer
127 views

Ext4 fs corrupted after shrunken by parted

I was trying to make room for an Arch Linux installation and I ran parted and shrunk my main Ubuntu partition. I made a new one in the new space but after I rebooted it put me in a grub prompt. I ...
1
vote
0answers
1k views

Recovering deleted/overwritten partition

Short: By mistake I overwrote my partition table using the tool testdisk. I would like to recover my data and operating system. Using the tool testdisk I have located the lost partitions on my disk. ...
0
votes
2answers
60 views

Expanding linux partition failure

I'm puzzling over a very simple task. I have an img file which contains a filesystem with 2 partitions. As found in some tutorials I expanded the available space in this way: dd if=/dev/zero of=./...
-1
votes
1answer
399 views

What is Partition Table: gpt_sync_mbr?

What is gpt_sync_mbr in GNU parted? parted /dev/vda GNU Parted 3.1 Using /dev/vda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p ...
0
votes
1answer
100 views

Creating an LVM group

I have rented a dedicated server with two 500gb hardisks running centos 6. On this server there are 3 partitions. boot root 50gb swap 50gb empty 400gb Now I want to create a logical volume group ...
1
vote
2answers
1k views

What flash drive geometry depends on? Can I change it on my preference?

I have an USB flash drive. Here is its initial info generated by fdisk (Linux): # fdisk -l /dev/sdc Disk /dev/sdc: 8053 MB, 8053063680 bytes 16 heads, 60 sectors/track, 16384 cylinders, total ...
1
vote
2answers
212 views

Reallocate space using parted (no gui )

I'm running a Ubuntu server 14.04.3 LTS. The partitioning has been created automatically and now I have a problem with root directory space. There is a raid /dev/md3 with almost 2 TB free and a /dev/...
8
votes
1answer
13k views

How to force partition to value out of range

I have an ubuntu desktop system (VM guest), whose partitions were created by the install media. I wanted to expand the disk, so I shutdown the guest, and increased the disk size of the guest in the ...
1
vote
1answer
359 views

Expanding disk partition on root drive with LVM

It's been a long time since I've done this and I've probably done it in the most complex way. I upgraded my OS drive to a larger drive (old one 60GB, new one 250GB) running Ubuntu 14.04 and used ...
2
votes
2answers
4k views

Bash scripting parted for GPT

Using Bash & Python scripts in Ubuntu 12.04, we are delivering a disk image to customers as a file (generated by dd). Once dd’d to the new disk, we resize the partition to fit the disk. Now that ...
2
votes
0answers
768 views

Can not mount copy of image file (ddrescue): “can't have a partition outside the disk”

I'm struggling for days now moving my old Windows XP installation to a new hard disk, because the old disk is failing. Long story short: I successfully created an image of the entire (failing) disk ...
4
votes
1answer
435 views

How to learn what `gparted`, `partitionmanager`… libcalls or `fdisk`, `parted`… commands are wrapping?

Querying partitionmananger --help does not document any verbose mode. Even gparted --help is not implemented. I wish I could use any --verbose mode without more esoteric thingy like using ltrace, ...
1
vote
2answers
437 views

Remove GPT filesystem on USB

I have an old 8GB USB stick with a GPT filesystem hanging around. I'd like to move it to a more familiar fs, as NTFS or FAT32, but the usual mkfs doesn't seem to work since there is no /dev/sdb1 (as ...
0
votes
0answers
1k views

CloneZilla, what are all these files?

I am trying to restore a clone of a disk, made with CloneZilla some time ago. I'm having trouble in general, and I can't seem to find the help I'm looking for, so I have to learn some of the basics, ...
0
votes
1answer
428 views

How to modify the starting boundary of an ext4 partition?

There are 4 partitions on the disk. parted /dev/sda --script -- print ... 1 1049KB 50.0GB ... ext4 2 50GB 82GB ... linux-swap 3 82GB 100GB ... ext4 4 100GB 1000GB ... ext4 My goal is to ...
1
vote
2answers
3k views

How to partition a Free Space using parted

During the installation of my ubuntu server, I had to leave a big space of my hard drive for specific service. Well, I forgot to to partition it up and leave it mounted during installation. Right Now, ...
0
votes
1answer
652 views

how to use parted to create one parition with max size and one 16MB

am trying to figure out how to partition with parted i want to create 2 partitions first partition with EXT4 maximum size and one the second partition with 16MB FAT16