The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
19 views

Booting off raid'ed > 2GB drives, btrfs, handling bios boot partition [duplicate]

Setting up an array of (3) 5GB drives using btrfs. It will soon grow to (6) 5GB drives. Starting with raid 1, will rebalance once all the drives are installed to either raid5, 6, or 10. I will be ...
1
vote
1answer
79 views

Remove all traces of GPT disk label

I've got an USB pen drive and I'd like to turn it into a bootable MBR device. However, at some point in its history, that device had a GPT on it, and I can't seem to get rid of that. Even after I ran ...
2
votes
1answer
97 views

Scripteable GPT partitions using parted

I am partitioning eMMC using following commands in the script, parted /dev/mmcblk0 --script mklabel gpt parted /dev/mmcblk0 --script mkpart primary ext4 32MB 132MB parted /dev/mmcblk0 --script mkpart ...
0
votes
0answers
43 views

How to recover a deleted partition from a NTFS disk with GNU parted?

I'm testing different methods to recover deleted Windows partitions under Linux. For this experiment, I created a partition in Windows, placed some data on it and deleted it. In order to ...
3
votes
1answer
87 views

Can I use parted resize for partitions used by mdadm

I have upgraded 3Tb drives in my RAID-5 to 5Tb one by one with same partitioning. I want to grow each of the partitions (at the end of the disc) to take the extra 2Tb. I looked at parted resize but ...
1
vote
3answers
211 views

GNU parted resizepart in script

I would like to used the yes command so that GNU parted does not wait for user input : root@195-xxx-xxx-xxx:/proc# parted /dev/sda unit B resizepart 2 1166016512B Warning: Shrinking a partition can ...
2
votes
2answers
82 views

Why can I rest assured that GNU Parted has not corrupted a single bit after shrinking my partition?

I shrunk my root partition and it seems nice. But I am thinking about overwriting now at least the most important files from the backup copy (external drive, rsync, weekly backup) in order to be sure ...
1
vote
4answers
40 views

Which files are changed when GNU Parted shrinks a partition?

When shrinking a partition with GNU Parted, some contents must be moved from the area of the physical disk that will be left out of the new shrunken partition. The contents of those files are of ...
1
vote
1answer
119 views

External HDD partition not showing [closed]

I have problem with an external HDD. I am using Debian Jessie. The partition is not showing, I can see only the device: # ls /dev/sd* /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 ...
1
vote
3answers
59 views

Why is grub showing a windows 7 option?

I've recently in installed mint 17 on my pc. $ parted -l Model: ATA PLEXTOR PX-256M5 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Number Start End ...
0
votes
1answer
324 views

parted 3.2 says 1024MiB is outside of the device (of size 1024MiB)

I'm having a little trouble getting parted 3.2 to accept a partitioning scheme that was valid in parted 2.3 (tested on Debian with jessie vs. wheezy). parted 3.2 will not accept a partition that goes ...
0
votes
1answer
126 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
136 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
266 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
432 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
701 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
33 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
301 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
82 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
412 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 ...
1
vote
0answers
392 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
570 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
589 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
1k 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
2answers
1k 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
891 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
76 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
369 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 ...
9
votes
3answers
8k 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
3k 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 ...
3
votes
1answer
717 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
339 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
2k 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?
5
votes
2answers
3k 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 ...
3
votes
1answer
2k 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
617 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
384 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
496 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 ...
16
votes
2answers
57k 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 ...
0
votes
2answers
5k views

How to install parted on CentOS?

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
210 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
4k 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
2k 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
599 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
6k 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
2answers
9k 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 ...
2
votes
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
2k 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
948 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 ...