[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20893: Strange behavior when using parted
From: |
Brian C. Lane |
Subject: |
bug#20893: Strange behavior when using parted |
Date: |
Wed, 24 Jun 2015 14:53:01 -0700 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Jun 24, 2015 at 10:44:23PM +0200, Joan Lledó wrote:
> Hello parted list,
>
> I'm not sure this is a bug, probably not, but since I've installed
> Debian 8 some scripts I use for helping me to test a library are
> having a strange behavior. I've wrote a little script as an example:
What version of parted are you using?
You may be hitting this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1135493
(there's a fix being discussed on the parted-devel list)
>
> #!/bin/bash
> cd ~
> modprobe scsi_debug dev_size_mb=800 sector_size=4096
> parted /dev/sdf mklabel msdos
> parted /dev/sdf mkpart primary 1 50
> parted /dev/sdf mkpart primary 51 105
> parted /dev/sdf mkpart extended 106 750
> parted /dev/sdf mkpart primary 751 839
> parted /dev/sdf mkpart logical 107 200
> parted /dev/sdf mkpart logical 201 300
> parted /dev/sdf mkpart logical 301 450
> parted /dev/sdf mkpart logical 451 600
> parted /dev/sdf mkpart logical 601 750
Also, you should be using -s in your script to avoid prompting.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)