Opened 11 years ago

Closed 11 years ago

#223 closed defect (fixed)

mondo restore hang no floppy present

Reported by: LazarusLong Owned by: bruno
Priority: high Milestone: 2.2.5
Component: mondo Version: 2.2.4
Severity: major Keywords:
Cc:

Description

On Debian etch with mondo 2.2.4 installed I am seeing a hang during mondo restore while "I'm thinking..." due to my machine having no floppy drive. This appears to be same as ticket#136 which changeset[1496] tries to fix. The fix doesnt work on my machine since the dmesg | grep -i floppy shows a valid device. My machine has a floppy controller but no drive, I think the floppy driver prints a boot message on seeing the controller but doesnt know that no drive is attached.

A better test would be to use "getfdprm /dev/fd0u1722" from fdutils - this returns immediately with NO DEVICE. Alternately use low level calls:

#include <linux/fd.h> struct floppy_struct fdprms; int ifd, res; ifd = open("/dev/fd0u1722", O_RDONLY); if (ifd > 0) { open OK

res = ioctl(ifd, FDGETPRM, &fdprms); if (res >= 0) { media OK to mount } else { skip mount }

} else { skip mount }

Of course, same test would apply to /dev/fd0H1440.

Change History (4)

comment:1 Changed 11 years ago by bruno

  • Status changed from new to assigned

Could you look at #1843 to see if that realizes what you were thinking of ? Will be in final 2.2.5.

Thanks for your feedback !

comment:2 Changed 11 years ago by LazarusLong

Looks good to me. I'll be happy to test 2.2.5 when available on my machine.

Thanks for incorporating the change.

comment:3 Changed 11 years ago by bruno

Could you try with the test version under ftp://ftp.mondorescue.org/debian/4.0/test please ?

comment:4 Changed 11 years ago by bruno

  • Resolution set to fixed
  • Status changed from assigned to closed

Anyway, floopy support is gone now, in latest SVN !

Note: See TracTickets for help on using tickets.