Bug 959671 - FormatCreateError: ('format failed: 1', '/dev/sda5')
Summary: FormatCreateError: ('format failed: 1', '/dev/sda5')
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:31a8d981312a680e64a73301482...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-04 17:00 UTC by Chuck Forsberg
Modified: 2015-02-17 15:09 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-02-17 15:09:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda.log (25.00 KB, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: backtrace (1.20 KB, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: environ (783 bytes, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: ifcfg.log (573 bytes, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: lsblk_output (3.79 KB, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: nmcli_dev_list (3.69 KB, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: packaging.log (755.90 KB, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: program.log (38.23 KB, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: storage.log (194.92 KB, text/plain)
2013-05-04 17:00 UTC, Chuck Forsberg
no flags Details
File: syslog (125.96 KB, text/plain)
2013-05-04 17:01 UTC, Chuck Forsberg
no flags Details
File: anaconda-tb (1.13 MB, application/octet-stream)
2013-05-04 17:01 UTC, Chuck Forsberg
no flags Details

Description Chuck Forsberg 2013-05-04 17:00:16 UTC
Description of problem:
The following was filed automatically by anaconda:
anaconda 19.24-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 399, in doFormat
    raise FormatCreateError("format failed: %s" % ret, self.device)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 781, in create
    return self.doFormat(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 471, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 237, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 303, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 162, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 117, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 141, in run
    threading.Thread.run(self, *args, **kwargs)
FormatCreateError: ('format failed: 1', '/dev/sda5')

Version-Release number of selected component:
anaconda-19.24-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Beta-TC3\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC3

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 141, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 117, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 162, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 303, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 237, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 471, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 781, in create
    return self.doFormat(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 399, in doFormat
    raise FormatCreateError("format failed: %s" % ret, self.device)
FormatCreateError: ('format failed: 1', '/dev/sda5')

Comment 1 Chuck Forsberg 2013-05-04 17:00:22 UTC
Created attachment 743545 [details]
File: anaconda.log

Comment 2 Chuck Forsberg 2013-05-04 17:00:24 UTC
Created attachment 743546 [details]
File: backtrace

Comment 3 Chuck Forsberg 2013-05-04 17:00:28 UTC
Created attachment 743547 [details]
File: environ

Comment 4 Chuck Forsberg 2013-05-04 17:00:31 UTC
Created attachment 743548 [details]
File: ifcfg.log

Comment 5 Chuck Forsberg 2013-05-04 17:00:35 UTC
Created attachment 743549 [details]
File: lsblk_output

Comment 6 Chuck Forsberg 2013-05-04 17:00:39 UTC
Created attachment 743550 [details]
File: nmcli_dev_list

Comment 7 Chuck Forsberg 2013-05-04 17:00:44 UTC
Created attachment 743551 [details]
File: packaging.log

Comment 8 Chuck Forsberg 2013-05-04 17:00:54 UTC
Created attachment 743552 [details]
File: program.log

Comment 9 Chuck Forsberg 2013-05-04 17:00:58 UTC
Created attachment 743553 [details]
File: storage.log

Comment 10 Chuck Forsberg 2013-05-04 17:01:04 UTC
Created attachment 743554 [details]
File: syslog

Comment 11 Chuck Forsberg 2013-05-04 17:01:09 UTC
Created attachment 743555 [details]
File: anaconda-tb

Comment 12 Luis Lain 2013-05-29 10:33:12 UTC
Description of problem:
Following Fedora 19 Beta installation process with custom partitioning

Version-Release number of selected component:
anaconda-19.30-1.fc19.x86_64

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=/ubninit root=UUID=C991-5B24 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0 BOOT_IMAGE=/ubnkern 
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.2-301.fc19.x86_64
other involved packages: python-libs-2.7.4-4.fc19.x86_64, python-blivet-0.14-1.fc19.noarch
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 138, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 165, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 306, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 237, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 471, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 781, in create
    return self.doFormat(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 399, in doFormat
    raise FormatCreateError("format failed: %s" % ret, self.device)
FormatCreateError: ('format failed: 1', '/dev/sda2')

Comment 13 Samantha N. Bueno 2013-05-29 12:31:27 UTC
Can you provide an exact set of steps to reproduce this?

Comment 14 Guillaume Radde 2013-06-07 22:24:39 UTC
Description of problem:
During the installation process, I was creating the root password.

Version-Release number of selected component:
anaconda-19.30-1

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Beta\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.2-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 168, in run
    threading.Thread.run(self, *args, **kwargs)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 138, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 165, in turnOnFilesystems
    storage.doIt()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 306, in doIt
    self.devicetree.processActions()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 237, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 471, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 781, in create
    return self.doFormat(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/formats/fs.py", line 399, in doFormat
    raise FormatCreateError("format failed: %s" % ret, self.device)
FormatCreateError: ('format failed: 37', '/dev/sdc1')

Comment 15 Guillaume Radde 2013-06-07 22:34:34 UTC
A few more details:
-I was installing Fedora onto a usb flash drive
-I had selected regular partitioning (not LVM)

Comment 16 Alexander Verbitsky 2013-07-05 12:48:17 UTC
After manual partition hard disk in the next step during setting root password

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=vfat ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
other involved packages: python-blivet-0.17-1.fc19.noarch, python-libs-2.7.5-1.fc19.x86_64
package:        anaconda-19.30.13-1.fc19.x86_64
product:        Fedora
reason:         FormatCreateError: ('format failed: 1', '/dev/sda2')
release:        Fedora release 19 (Schrödinger’s Cat)
version:        19

Comment 17 Alexander Verbitsky 2013-07-05 13:15:40 UTC
Trying reinstall after failed previous attempt. Partition /dev/sda2 was already been formatted and now reformat it

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=LIVE rootfstype=vfat ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
other involved packages: python-blivet-0.17-1.fc19.noarch, python-libs-2.7.5-1.fc19.x86_64
package:        anaconda-19.30.13-1.fc19.x86_64
product:        Fedora
reason:         FormatCreateError: ('format failed: 1', '/dev/sda2')
release:        Fedora release 19 (Schrödinger’s Cat)
version:        19

Comment 18 Michal Pomorski 2013-07-07 07:17:07 UTC
I started up the live fedora 19.
I started up the installer.
I mounted the old root partition on hdd.
I proceeded to let the installer reformat the root, boot and swap partitions.
This error occured when I started the installation. 

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-1 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
other involved packages: python-blivet-0.17-1.fc19.noarch, python-libs-2.7.5-1.fc19.x86_64
package:        anaconda-19.30.13-1.fc19.x86_64
packaging.log:  
product:        Fedora
reason:         FormatCreateError: ('format failed: 1', '/dev/sda7')
release:        Fedora release 19 (Schrödinger’s Cat)
version:        19

Comment 19 Michal Pomorski 2013-07-07 07:31:33 UTC
After I realized, I had root mounted, I unmounted it and restarted the installer. It did its job without errors this time.

Comment 20 Benjamin Smedberg 2013-07-15 19:10:39 UTC
Installing FC19 "clean" from DVD. Previous install on this machine was FC16. Apparently something is weird about the boot disk that is causing formatting to fail?

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
package:        anaconda-19.30.13-1
product:        Fedora
reason:         FormatCreateError: ('format failed: 1', '/dev/mapper/fedora-root')
release:        Cannot get release name.
version:        19

Comment 21 Steve Tyler 2013-07-15 19:47:36 UTC
(In reply to Benjamin Smedberg from comment #20)
> Installing FC19 "clean" from DVD. Previous install on this machine was FC16.
> Apparently something is weird about the boot disk that is causing formatting
> to fail?
...
> package:        anaconda-19.30.13-1
...

Thanks for your report. Unfortunately, it was detected as a duplicate, so no log files were attached. Since you were installing with F19 Final, which is newer than the original report, it might be useful to have the installer log file.

Could you attach /tmp/anaconda-tb-*, if possible?

That log file would be in the installer environment.

Comment 22 Benjamin Smedberg 2013-07-15 19:59:20 UTC
Unfortunately I cannot, I already rebooted the installer environment.

Comment 23 Odie 2013-08-20 00:01:29 UTC
I attempted to install Fedora using LUKS encryption of an LVM container with 3 logical volumes. The installer keeps failing and not allowing me to install.

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-LXDE-x86_64-19-1 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
other involved packages: python-blivet-0.17-1.fc19.noarch, python-libs-2.7.5-1.fc19.x86_64
package:        anaconda-19.30.13-1.fc19.x86_64
packaging.log:  
product:        Fedora
reason:         FormatCreateError: ('format failed: -9', '/dev/mapper/fedora-root')
release:        Fedora release 19 (Schrödinger’s Cat)
version:        19

Comment 24 Odie 2013-08-20 00:26:43 UTC
I was not able to reproduce the bug properly, but these were the steps I followed:
1. Create a VirtualBox with the default settings for Fedora 64 bit.
2. Load Fedora-Live-LXDE-x86_64-19-1.iso and open the Installer
3. English (United States) -- continue
4. Click Installation Destination, then Done
5. Select "I want to review/modify my disk partitions before continuing" and check "Encrypt my data." Click Continue.
6. Enter passphrase twice. Click Save Passphrase.
7. Click "Click here to create them automatically"
8. Click swap and change the capacity to "500 MB" then "Update Settings".
9. Click the [+] to add a new mount point.
10. Mount Point: "/home", Desired Capacity: "1 GB". Accept. Then change the Name to home, uncheck "Encrypt" (should already be encrypted by the LVM, correct?), and click "Update Settings".
11. "Done" at the top left of the Manual Partitioning window.
12. "Accept Changes" Everything looked good. It creates the LUKS container on sda2, then the LVM, then the group and the three logical volumes with the right mount points.
13. Passphrase is already entered in twice. I just click "Save Passphrase".
14. "Begin Installation"
I then immediately clicked "Root Password".

On about the fourth attempt the installer started working. From that point I could not reproduce the bug anymore.

Comment 25 Tako Schotanus 2013-09-23 16:01:04 UTC
Just followingnormal install procedure with custom disk layout.

cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-1 rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
hashmarkername: anaconda
kernel:         3.9.5-301.fc19.x86_64
other involved packages: python-blivet-0.17-1.fc19.noarch, python-libs-2.7.5-1.fc19.x86_64
package:        anaconda-19.30.13-1.fc19.x86_64
packaging.log:  
product:        Fedora
reason:         FormatCreateError: ('format failed: 1', '/dev/sda3')
release:        Fedora release 19 (Schrödinger’s Cat)
version:        19

Comment 26 Tako Schotanus 2013-09-23 16:06:44 UTC
Sorry, I said "normal" procedure in my error report but I already know why it went wrong. When doing the custom partitioning I saw that I was forced to format the root partition (wtf? why?) so I switched to the console and moved some stuff from one partition to another, afterwards I of course forgot to unmount the disks.

Still, this process is not really fault tolerant, I had to do all the configuring over again. It might not be much but it doesn't make for a smooth user experience.

Comment 27 Fedora End Of Life 2015-01-09 18:02:27 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 28 Fedora End Of Life 2015-02-17 15:09:16 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.