Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ioctl(HDIO_GETGEO) failed:" Could be more helpful. #2

Open
baruch opened this issue Oct 31, 2013 · 0 comments
Open

"ioctl(HDIO_GETGEO) failed:" Could be more helpful. #2

baruch opened this issue Oct 31, 2013 · 0 comments

Comments

@baruch
Copy link
Owner

baruch commented Oct 31, 2013

I tried to use gpart for a quick check whether it could recover the
broken partition table from a (relatively unimportant) USB stick
image. I was greeted with the error message

*** Fatal error: ioctl(HDIO_GETGEO) failed: Invalid argument.

I admit this is sufficient for the initiated.

However, it will lead the uninitiated towards using the device itself,
instead of the image. At least that is what I did, being in the hurry I
was. That got rid of the message all right - allthough I feel using the
device instead of the copy is somehow the "wrong way". Also, the "device
itself" is rather slow in my paticular case.

In my view, an addition to the error message would be helpful.

I suggest something like the following:

*** Fatal error: ioctl(HDIO_GETGEO) failed: Invalid argument.
Disc geometry information could not be read.
(Maybe you want to try either the -C or the -g option.)

Regards, and thank you for providing fine software

Andreas

(ticket copied from Debian BTS #341935)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant