GNU bug report logs -
#20893
Strange behavior when using parted
Previous Next
To reply to this bug, email your comments to 20893 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#20893
; Package
parted
.
(Wed, 24 Jun 2015 21:23:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Joan Lledó <joanlluislledo <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Wed, 24 Jun 2015 21:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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:
#!/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
mkfs.ext4 /dev/sdf1
mkfs.vfat -F 32 /dev/sdf2
mkfs.ext2 /dev/sdf4
mkfs.ext3 /dev/sdf5
mkfs.vfat -F 16 /dev/sdf6
mkfs.ext4 /dev/sdf7
mkfs.vfat -F 32 /dev/sdf8
mkswap /dev/sdf9
xfs_admin -L selinux /dev/sdf8
echo "Mounting sdf1..."
mount /dev/sdf1 /mnt
umount /mnt
echo "Mounting sdf2..."
mount /dev/sdf2 /mnt
umount /mnt
echo "Mounting sdf4..."
mount /dev/sdf4 /mnt
umount /mnt
echo "Mounting sdf5..."
mount /dev/sdf5 /mnt
umount /mnt
echo "Mounting sdf6..."
mount /dev/sdf6 /mnt
umount /mnt
echo "Mounting sdf7..."
mount /dev/sdf7 /mnt
umount /mnt
echo "Mounting sdf8..."
mount /dev/sdf8 /mnt
umount /mnt
When I run this script, most of the attempts to format the new
partitions fail with the error "The file /dev/sdf1 does not exist and
no size was specified.", just like the attempts to mount the formatted
partitions. The result of running this script is not even always the
same. Is seems like the kernel is not receiving the updates of the
/dev/sdf device. Not sure if this is caused by parted, udev, the
kernel... any ideas?
Information forwarded
to
bug-parted <at> gnu.org
:
bug#20893
; Package
parted
.
(Wed, 24 Jun 2015 21:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 20893 <at> debbugs.gnu.org (full text, mbox):
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)
Information forwarded
to
bug-parted <at> gnu.org
:
bug#20893
; Package
parted
.
(Wed, 24 Jun 2015 22:50:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 20893 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On dc, 24 de jun 2015 a les 11:53 , Brian C. Lane <bcl <at> redhat.com>
wrote:
> 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?
The one that comes with Debian 8: parted 3.2
>
>
> 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)
>
Thanks for the link. After reading it I can say that's exactly my
problem. I'm glad to know it's a parted bug, because I'm using libparted
in a project and thought it was a bug in my code. But this means all the
projects that use libparted 3.2, like gparted in Debian 8, must be
failing right now, right?
Is there a way to receive a notice when this bug is fixed?
>
>>
>> #!/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)
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-parted <at> gnu.org
:
bug#20893
; Package
parted
.
(Wed, 24 Jun 2015 23:18:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 20893 <at> debbugs.gnu.org (full text, mbox):
On Thu, Jun 25, 2015 at 12:49:31AM +0200, Joan Lledó wrote:
>
>
> On dc, 24 de jun 2015 a les 11:53 , Brian C. Lane <bcl <at> redhat.com> wrote:
> >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?
>
> The one that comes with Debian 8: parted 3.2
>
> >
> >
> >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)
> >
>
> Thanks for the link. After reading it I can say that's exactly my
> problem. I'm glad to know it's a parted bug, because I'm using libparted
> in a project and thought it was a bug in my code. But this means all the
> projects that use libparted 3.2, like gparted in Debian 8, must be
> failing right now, right?
Yep.
>
> Is there a way to receive a notice when this bug is fixed?
It will be in parted 3.3 for sure. You'll have to check with your
distribution's bug tracker to get a notice.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
This bug report was last modified 9 years and 362 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.