The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
43 views

Delete labelled partition non interactively with one command

I know about fdisk and parted, but I was not able to figure out an non interactive way to delete a labelled partition. I imagine something like <command> <action> /dev/disk/by-label/LABEL ...
1
vote
0answers
36 views

Why are USB partitions & disk capacity not coherent between fdisk, parted, dmesg & /dev/sdXy

Disclaimer: I initially posted this on SF : http://serverfault.com/q/645670, but I think it better fits here First, a word of context: I'm trying to burn an ISO on a 16 Gb USB key, but I'm having ...
0
votes
0answers
30 views

Cannot see my SD card in parted

When I plug in my card reader, it shows up at /def/sdf, and when I insert this SD card I also see /dev/sdf1, but parted won't show the disk. It doesn't have any information I need, I just want to use ...
1
vote
1answer
28 views

Using dd to zero a GPT table from disc, how many bytes to write?

In the fdisk area, cleaning out the MBR would require writing 446 bytes, and to include cleaning of the partition information, zero-ing the first 512 bytes was enough: dd if=/dev/zero of=/dev/sdb ...
0
votes
1answer
35 views

mdadm RAID 5 and parted unrecognized disk label

I have three 3 TB drives that I am attempting to put together into a RAID 5 setup with mdadm, but I am running into some issues. (Actually, I have four 3 TB drives I will be using, but one of them ...
1
vote
1answer
22 views

Block device aligment without partitioning?

As new drives with 4096b sized blocks appeared, partition alingment is becoming more and more important. But, what I am interested in is, if I use the whole block device for filesystem (eg. /dev/sdc) ...
2
votes
0answers
192 views

CentOS 5.6 expand ext4 partition , have steps but parted shows as ext3

I have a Adaptec 5805 HW RAID card with a 6.3 TB RAID-6 array (partitioned via Parted GPT, all of which is formatted as ext4 on CentOS 5.6). I want to expand this to 7.5GB and from reading these are ...
1
vote
1answer
28 views

Free space showing problem in `parted` command?

I tried to partition disk (HDD) into several parts for Windows and Linux by parted, but I find some problem as follows: Why doesn't the free space between #3 and #5 start from 106815488s to ...
1
vote
0answers
122 views

parted: invalid token

I am teaching myself parted. In the docs it reads: Parted has two modes: command line and interactive. Parted should always be started with: # parted device [...] In command line mode, this ...
0
votes
0answers
17 views

Automating a disk move & extension?

I have an ancient 128GB SSD, with two non-LVM ext4 partitions, I would like to copy these to a 256GB SSD and roughly doubling the partitions while doing so. Problem is, I don't want to sit at the ...
1
vote
0answers
145 views

How to find hidden partition of a USB in linux

I have a USB, which has a protected partition. I think this USB has hidden partitions, which I can't see them. $ fdisk -l /dev/sdb: You must set cylinders. You can do this from the extra functions ...
1
vote
1answer
174 views

Unable to set partition type correctly using parted

I'm trying to create a bootable USB stick with FreeDos for BIOS updates in Centos 6.5, following instructions from: chtaube.de I created the empty 30MB img file using dd: [root@dumbledore ...
2
votes
1answer
202 views

Move and resize partitions proportionally

I have a clonezilla image from a disk with GPT, and I want to clone to a larger disk and then resize the partitions proportionally. By example if I have a 100 Gb disk and two partitions of 40 an 60 ...
0
votes
3answers
532 views

Error “parted: invalid token: 1” When Using Parted To Format A Partition?

Screenshot: http://imgur.com/DQnhwG2    I'm trying to format an existing ext2 partition as ntfs (or any filesystem) using the mkfs command in Parted, but when I specify the partition to ...
2
votes
1answer
395 views

Can`t part disk because 'invalid token primary'

I`m trying to partition the external HDD on my raspberry, I am running Raspbian (debian). When I run the command; mkpart primary ntfs 45% It will say: But the help says: What I am doing wrong? ...
3
votes
1answer
288 views

Finding unallocated disk space (partitioning)

Another (hobbiest) sys admin on they same system as me, pointed out that there is 30Gb of unallocated space on the system. I have need of that space to create a new partition. (I'm going to make a ...
0
votes
2answers
56 views

Hide a partition in the partition table and make it reappear later

I know this isn't a question that's specific to Unix/Linux, but I think there are people who can answer this question here. I want to hide my Windows partition from the partition table completely, ...
2
votes
1answer
183 views

Parted output with two free space rows

I have a disk with the following partitions: GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print free ...
6
votes
3answers
4k views

fdisk vs parted

I've been running a small media server at home for 10+ years and looking at replacing it (before it breaks). I intend to hook up a new drive to my old system, partition and format (ext4 seems most ...
2
votes
1answer
882 views

parted: create new partition

I have a 3TB disk, and I understand I have to use parted if I want to create a partition bigger than 2TB. All right then. parted /dev/sdb (parted) mklabel gpt (parted) mkpart primary ...
2
votes
1answer
403 views

gparted without GUI / X

Is there a CLI gparted version without GUI / X? parted shows warnings like the following when resizing / moving partitions: WARNING: you are attempting to use parted to operate on (resize) a file ...
1
vote
1answer
227 views

Specify partition data in sfdisk and parted

With this line: (echo o; echo n; echo p; echo 1; echo ; echo +24G; echo a; echo t; echo 7; echo w) | fdisk /dev/sda I can create a new active primary partition for NTFS, 24 Giga large. The syntax ...
0
votes
1answer
1k views

How to restore the partition layout for GPT disk [duplicate]

parted -ms /dev/sda print > sda.parted This actually copies the layout to a file. If I want to restore the layout, what command should I give?
4
votes
2answers
1k views

Programmatically partition disk

I am attempting to create a bash script which will create a new partition with a file system on a disk with existing partition(s). It looks like it's easy to create partitions programmatically with ...
2
votes
1answer
987 views

Create partition with exact size not to specific distance

How does one create a partition of exact size not to specific distance? I have tried: parted -a optimal /dev/sdd mkpart primary 0% 0%+1GB # and... parted -a optimal /dev/sdd mkpart primary 0% +1GB ...
2
votes
1answer
512 views

Creating partition using parted instead of fdisk

I have a script which uses the following command to add a partition to /dev/sda cat <<-EOF |fdisk /dev/sda ...
2
votes
1answer
222 views

Creating partition from a start point till the end of the disk using parted

This is my partition table : Model: ATA Hitachi HTS54757 (scsi) Disk /dev/sda: 750GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File ...
2
votes
1answer
282 views

parted not recognizing my current partition on external disk. How to fix without losing data?

I have an external (USB) disk, which has been working OK for some time and shows no errors whatsoever in /var/log/$relevantfiles (no errors on reading/writing, for example). Here's the thing: if I ...
13
votes
2answers
38k views

Remove GPT - Default back to MBR

I keep receiving this error: Warning!! Unsupported GPT (GUID Partition Table) detected. Use GNU Parted I want to go back to the normal MBR. I found some advice here and did: parted /dev/sda ...
-1
votes
2answers
3k views

How to install parted?

root@host [/]# parted -bash: parted: command not found I am using CentOS. Looks like I simply have to yum it first or something. How would I do so?
2
votes
0answers
191 views

Tool to reduce a partition's size and create a new one from the command-line

At the moment I don't have any free space: (parted) mkpart Partition type? primary/extended? primary File system type? [ext2]? ext4 Start? 60G End? 62.9G Warning: You requested a partition from ...
1
vote
2answers
2k views

Partitioning disk image file

I want to partition raw disk image with the following commands #creating the blank image $ dd if=/dev/zero of=example.img bs=1M count=50 #write the partition table $ parted example.img mktable msdos ...
0
votes
1answer
1k views

Resize non-LVM ext4 root partition

How can I shrink/resize a non-LVM ext4 root partition? The problem is I can't unmount it and I don't have physical access.
4
votes
1answer
351 views

How can I script the creation of a single partition that uses the entire device?

I am specifically using this to partition and mount EBS volumes on Amazon EC2 instances, but really this should be generally applicable to initializing any new drive. As the question says I want to ...
2
votes
1answer
4k views

Unable to create logical partition with Parted

I was fiddling around with parted command on a loopback disk and tried to create some partitions using gpt part table but I keep getting Error: Unable to satisfy all constraints on the partition. when ...
1
vote
1answer
6k views

Partition table not recognized by Linux kernel

I experience relatively often that the partition table of a USB stick or SD card is suddenly no longer recognized by the kernel while (g)parted and fdisk still see it, as do other systems. I can even ...
6
votes
1answer
2k views

How to properly align partitions?

I'm trying to understand what are the rules for creating correctly aligned partitions. For the moment I'm playing with parted on a virtual machine, but I'm planning to move to a real hard disk when I ...
1
vote
2answers
2k views

Gnu Parted Error in HardDisk of Linux?

Anyone help me, why the error getting when excuting the fdisk -l command in linux. # fdisk -l /dev/sdb WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support ...
5
votes
3answers
1k views

How to resize an LVM partition at the beginning

I have resized lvm partitions in the past, but after the resize there is space at the end of the partition. What I want to achive is to have the space at the beginning of the partition instead. The ...
1
vote
1answer
772 views

Adding a populated existing disk device to a QEMU raw image

I have a raw QEMU image (vda.raw), and I would like to resize it and add an existing partition, using data I have in a file that contains a raw ext3 file system populated with data (vdb.raw). The two ...
0
votes
1answer
235 views

Volume manager tries to mount device while reformatting in gparted

When reformatting a USB drive with gparted, my volume manager attempts to mount the device. This results in some error messages telling me the device could not be mounted. The only way I know to turn ...
2
votes
2answers
477 views

Cloned VirtualBox CentOS disk is unbootable after cloning in GParted

I cloned and enlarged an existing virtual CentOS-6 disk by the following steps: Create 15GB virtual disk and mount the old and the new disks in GParted. In GParted copy boot, swap and ext3 ...
1
vote
0answers
1k views

WD MyBook 3TB - Gparted failed & HDD partitions recovery?

I have this new WD MyBook external HDD (USB 3.0/2.0); I created 3 partitions all of them ext3 type (~1 TB | ~1 TB | ~750 GB) I loaded lots of files all the partitions were like ~30% full on each, and ...
5
votes
1answer
18k views

How do I create new partitions and format my hard drive in parted?

I'm somewhat new to working with commandline tools when dealing with partitioning, so you'll have to excuse my newness. I'm basically trying to create a new logical partition on /dev/sdb and would ...
8
votes
2answers
1k views

How to repair an ext3 partition after broken resize operation?

I was using gparted to resize a near-terabyte ext3 partition, adding about 40 GB to the left. After nearly 12 hours of moving data (and with 23 more hours estimated to remain) the system hung. Now ...
9
votes
1answer
4k views

How does partprobe work?

I was looking for a way to refresh the scsi bus (or any other bus, for that matter) that would allow my kernel ( 2.6.18-194-el5 on CentOS 5.5) to know about the partitions on a drive, and I couldn't ...