Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 15 Dec 2019, 04:00
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
no HEXDUMP
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
kethd

Joined: 20 Oct 2005
Posts: 451
Location: Boston MA USA

PostPosted: Tue 29 Nov 2005, 08:37    Post subject:  no HEXDUMP  

HEXDUMP seems missing from Puppy. And I have not found any way within standard-issue Puppy (after a whole day of fruitless searching) to get that kind of basic function.

All standard versions of Puppy need to include core legacy functions such as od and hexdump, so that newbies can make use of the vast legacy "Learn Unix/Linux" materials.

(Puppy 1.0.6-HD Compaq P-233MMX 128MBram 28nov05)
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 9099
Location: Perth, Western Australia

PostPosted: Tue 29 Nov 2005, 09:59    Post subject:  

I am pleased to report that Pup 1.0.7 will have hexdump.
It is in the new BusyBox 1.01.
Back to top
View user's profile Send private message Visit poster's website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Tue 29 Nov 2005, 16:45    Post subject:  

i find my hexedit dotpup can be useful
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 02 Dec 2005, 18:39    Post subject:  

design decisions are not bugs ... Puppy can not have every possible program included ... whether Puppy comes with hexdump or not is a design decision ... and many programs can be added using dotpups and pupget packages
Back to top
View user's profile Send private message 
kethd

Joined: 20 Oct 2005
Posts: 451
Location: Boston MA USA

PostPosted: Fri 02 Dec 2005, 19:36    Post subject:  

Am I missing something here?
(Am I in the wrong place?)
I thought the overall goal of puppy was max function (etc etc) in minimum space (etc etc).
So, if I were proposing something exotic and complex and novel that took a lot of space, of course, it should be optional.
But since we are discussing something core, legacy, essential, and that takes a trivial amount of space...
I don't understand.

----
In a slightly different mode:
Maybe a designer did decide that a hexview function was non-essential, and easily added later.
But it seems to me, as things turn out, that tools relevant to getting Puppy initially set up and running are of special interest. And a hexview function is potentially relevant to people trying to get their hard drive installation to boot properly.
Perhaps this is useful information. Perhaps it will be of interest to people making future design decisions.

----
Oh, well. I've got no defense. I was just much taken aback by the initial discovery of the situation. And I've ended up devoting all week to wrestling with ways to cope with it... A good excuse to start seriously learning about Puppy Linux.
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 02 Dec 2005, 22:49    Post subject:  

I think that the only point is that posts like this belong to suggestions instead of Bugs. That's it.

And now that Barry has added that it will be in 1.0.7 it's a mute point Smile

Quote:
And a hexview function is potentially relevant to people trying to get their hard drive installation to boot properly.
I am curious and believe me, these are not rethorical questions but a chance for me to learn something new.

Why would you need hexdump to have the installation to boot properly? You may peek at the contents of the boot partition, but if you want to see the contents and even change it you could use dd which is included. What functionality does hexdump have that would not be provided by something that's already there?

In what circumstances would you use Hexdump? (once my partition table got complete screwed up and my last resource was to do a low level (zero write) initialization of the whole HDD. Would Hexdump help in this case?
Back to top
View user's profile Send private message Visit poster's website 
kethd

Joined: 20 Oct 2005
Posts: 451
Location: Boston MA USA

PostPosted: Sat 10 Dec 2005, 19:17    Post subject:  

As far as I know, all dd does is move binary information around -- please correct me if I am wrong! If your need is to view the information, to see what is going on with your boot process, so that you can understand why the boot process is not working, making copies of sector 0 in binary and proliferating them does not advance the cause much -- sooner or later you have to be able to see the info in human terms.

(I've used dd a little, and studied everything I can find about it -- if there is any way to trick it into converting binary to ASCII hex representation, please tell me!)

That is why I was so weirded out by the absence of hexdump/od -- I could find no builtin function whatsoever for viewing hex data, *anywhere* in Puppy106, no matter how tricky I got. Not even g-awk is capable of conversion to hex, without tricks I considered too ugly to perpetrate.

So, as a first excercise in PuppyBasic (which I am so grateful is included in 1.0.6) I wrote some programs, which are here:
http://puppylinux.org/wikka/hexdumpBASIC

And actually, the last one does a spiffy enough job of analyzing MBR/Partition Table that I think it might be of general utility -- maybe even worth including in Standard Puppy in slightly more polished form -- it is only 3KB of text!

Now that I've been forced to learn about the MBR/PT, in order to be able to potentially answer questions about them, I'd say I'd do a hexdump whenever I was dealing with a hard drive that was not booting the way I wanted, and I wanted to try to understand why.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 9099
Location: Perth, Western Australia

PostPosted: Sat 10 Dec 2005, 20:42    Post subject:  

Hexdump and od are in 1.0.7alpha!
Back to top
View user's profile Send private message Visit poster's website 
kethd

Joined: 20 Oct 2005
Posts: 451
Location: Boston MA USA

PostPosted: Tue 13 Dec 2005, 21:55    Post subject:  

I seem to be finding od but not hexdump in 107alpha.
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Tue 13 Dec 2005, 22:04    Post subject:  

# which od
/bin/od
# which hexdump
/usr/bin/hexdump
# hexdump --help
BusyBox v1.01 (2005.12.05-21:34+0000) multi-call binary

Usage: hexdump [-[bcdefnosvx]] [OPTION] FILE

do you have an older usr_cram.fs somewhere, maybe on your hard drive?

are you running Puppy 1.0.7 alpha (newer version), or Puppy 1.0.7 rc (older)?
Back to top
View user's profile Send private message 
kethd

Joined: 20 Oct 2005
Posts: 451
Location: Boston MA USA

PostPosted: Wed 14 Dec 2005, 09:50    Post subject:  

Thanks for the explanation!
Hexdump is only available indirectly:
# busybox hexdump
until usr_cram.fs is successfully mounted. More details at:
http://www.murga.org/%7Epuppy/viewtopic.php?t=4638
Suggestions for BusyBox v1.01 (Puppy 1.0.7alpha unpatched <14dec05)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0429s ][ Queries: 11 (0.0064s) ][ GZIP on ]