Bug 480484

Summary: Anaconda crashes on 'floppy'-usb-stick (ZeroDivisionError)
Product: [Fedora] Fedora Reporter: Martin Kho <rh-bugzilla>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 10CC: anaconda-maint-list, jgranado
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-03 15:49:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Anaconda dump
none
F11-Beta: Anacdump.txt
none
F11-Beta: anaconda.log
none
F11-Beta: anaconda-yum.conf
none
F11-Beta: libuser.oe17Oy
none
F11 Beta: program.log
none
F11 Beta: storage.log
none
F11 Beta: syslog
none
F11 Beta: X.log none

Description Martin Kho 2009-01-17 14:06:20 UTC
Description of problem:
My USB-stick contains a 'floppy-disk' (not removable, /dev/sdd) and a 1G HDD-part (/dev/sdc). When trying to install from this stick Anaconda crashes in de second stage right before partitioning the hard disk (e.g. /dev/sda) and after I have chosen to review the partitioning. It makes no difference if I choose 'remove existing partitions' ... 'custom lay out', and/or disable the usb-partitions. USB-sticks without a 'floppy-disks' don't crash.

Version-Release number of selected component (if applicable):
anaconda 11.4.1.62 (Fedora 10)

How reproducible:
Install fedora 10 from a USB-stick with a 'floppy-disk'. This disk has no partitions.

Steps to Reproduce:
1. Start installation from USB-disk (installed on HDD-part)
2. Enter language, keyboard, hostname, regional settings ...
3. Check 'review and change partition'!
  
Actual results:
Anaconda throws an exception: "ZeroDivisionError: float division"

Expected results:
Review and change screen appears


Additional info:
Is seems that disabling 'floppy-disks' on usb-sticks can maybe solve the problem, like cd-roms are disabled as install media.

Comment 1 Chris Lumens 2009-01-19 15:24:46 UTC
Please attach the complete error message to this bug report so we can see what's going on.  Thanks.

Comment 2 Martin Kho 2009-01-19 15:41:07 UTC
Created attachment 329356 [details]
Anaconda dump

Comment 3 Martin Kho 2009-01-19 15:42:14 UTC
Sorry, I did something wrong the first time :-)

Comment 4 Chris Lumens 2009-02-16 19:55:08 UTC
We're in the midst of a big partitioning rewrite, so it's worth retesting with F11 Beta when it is released.  Chances are, your bug will be fixed as part of that rewrite.  However even if we don't fix it, the code will be so drastically different that I'm sure you will get a very different backtrace and we'll need to go through a different debugging process.

So, please give that a try in the future and let us know if this bug is still present.  Thanks.

Comment 5 Martin Kho 2009-04-02 18:29:27 UTC
Hi Chris,

I've tried F11-Beta (x86_64) with anaconda 11.5.0.38. Sorry, but still the same error ("ZeroDivisionError: float division"). There was a lot more buginfo, but Anaconda didn't let me save it. Ok and Cancel-buttons didn't do anything. If I can do anything about it, please let me know?

Thanks and success!

Martin

Comment 6 Joel Andres Granados 2009-04-03 11:37:40 UTC
The anaconda dump would be very usefull.  When you can't get it from the UI, you can go to tty2 (Ctrl-Alt-F2) and scp it manually.  most of the files under /tmp are usefull for debugging any issue.

Comment 7 Martin Kho 2009-04-03 14:13:48 UTC
Created attachment 338041 [details]
F11-Beta: Anacdump.txt

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 8 Martin Kho 2009-04-03 14:14:28 UTC
Created attachment 338042 [details]
F11-Beta: anaconda.log

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 9 Martin Kho 2009-04-03 14:15:04 UTC
Created attachment 338043 [details]
F11-Beta: anaconda-yum.conf

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 10 Martin Kho 2009-04-03 14:15:39 UTC
Created attachment 338044 [details]
F11-Beta: libuser.oe17Oy

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 11 Martin Kho 2009-04-03 14:16:11 UTC
Created attachment 338045 [details]
F11 Beta: program.log

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 12 Martin Kho 2009-04-03 14:16:40 UTC
Created attachment 338046 [details]
F11 Beta: storage.log

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 13 Martin Kho 2009-04-03 14:17:11 UTC
Created attachment 338047 [details]
F11 Beta: syslog

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 14 Martin Kho 2009-04-03 14:17:38 UTC
Created attachment 338048 [details]
F11 Beta: X.log

F11 Beta (x86_64 net install iso) dump from /tmp

Comment 15 Chris Lumens 2009-04-03 14:41:48 UTC
Okay, I see what's going on here now.  Since it's a floppy drive, it's pretty small in size.  In fact, the size is so small that when parted calculates the number of sectors, it arrives at 0 because size / heads*cylinders is basically 0.  Therefore, crash.

Comment 16 Chris Lumens 2009-04-03 15:49:56 UTC
This should be fixed in the next build of anaconda.  If you are still experiencing this problem, feel free to reopen this bug.  Thanks.

Comment 17 Martin Kho 2009-05-07 23:11:51 UTC
Hi Chris,

Today I tried anaconda from F11 preview. The problem no longer exists. Congratulations and thanks!

Martin