LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2008, 11:12 PM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 386

Rep: Reputation: 30
partition table info


This question is related to my previous post, but it is kind of different question,
http://www.linuxquestions.org/questi...ith-dd-662897/


when I use
$ dd if=/dev/sda bs=16 count=2 | od -t x1
I got
2+0 records in
2+0 records out
32 bytes (32 B) copied, 0.000151352 s, 211 kB/s
0000000 fa eb 21 01 b4 01 4c 49 4c 4f 16 08 d2 17 59 48
0000020 00 00 00 00 00 00 00 00 2a d9 6e 3e 01 00 80 60
0000040


what is the 0000000, 0000020, and 0000040?
They seem like a memory index, but it does not add up..
It seems like each row is 16 bytes, but 2nd row has
0000020, I thought the index of the 2nd row should have been 0000010?
what did I miss here?


Now, I try change the count to 16, I got a stranger index,
there is no 0000080.. why it skip???

# dd if=/dev/sda bs=16 count=6 | od -t x16+0 records in

6+0 records out
96 bytes (96 B) copied, 0.000108512 s, 885 kB/s
0000000 fa eb 21 01 b4 01 4c 49 4c 4f 16 08 d2 17 59 48
0000020 00 00 00 00 00 00 00 00 2a d9 6e 3e 01 00 80 60
0000040 64 3d 00 00 b8 c0 07 8e d0 bc 00 08 fb 52 53 06
0000060 56 fc 8e d8 31 ed 60 b8 00 12 b3 36 cd 10 61 b0
0000100 0d e8 66 01 b0 0a e8 61 01 b0 4c e8 5c 01 60 1e
0000120 07 80 fa fe 75 02 88 f2 bb 00 02 8a 76 1e 89 d0
0000140

Last edited by ufmale; 08-15-2008 at 11:14 PM.
 
Old 08-15-2008, 11:47 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
I don't use "od", but that looks very much like an address radix issue. See the manpage.
I hope you realize you are looking at the loader code, not the partition table.
 
Old 08-16-2008, 12:55 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Definitely a radix issue.

Hint: The "o" in "od" means octal ...
 
Old 08-16-2008, 07:45 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Yep, counting the addresses in octal, and displaying the data in hex---makes perfect sense...

Why not use hexdump?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
need bigger swap partition but missing a valid partition table compused Linux - Hardware 3 07-02-2008 08:46 AM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 12:26 PM
Wrong partition table info Maik Linux - General 5 01-19-2005 01:42 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration