fdisk command didn't work
Project: | JNode Shell |
Component: | Code |
Category: | bug report |
Priority: | normal |
Assigned: | Stephen Crawley |
Status: | closed |
Jump to:
Description
Environment : Virtuabox + jnode svn
Type 'fdisk -b hda:0' return following message :
Command arguments don't match syntax
unknow device : -b
unknow device : hda:0
- Login to post comments
#1
I'll take a look at this.
#2
The immediate cause of the strange messages is that the arguments are not correct because "hda:0" is indeed not a valid block device name. The real device name is probably "hda0".
The message about "hda:0" being an unknown device is in fact correct.
The message about "-b" being an unknown device happens because the parser tries a branch in the syntax in which there are no options. In this case, the "-b" token would need to be a device name. The parser has therefore asked DeviceArgument to "accept" this token, this has failed, and the parser has reported the failure.
I think I may be able to improve this behavior ...
#3
I've checked in a "fix" which improves the error messages in this case. Please let me know if it makes the messages worse in other cases.
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5