LinuxQuestions.org
Help answer threads with 0 replies.
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-16-2008, 12:12 AM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 385

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-16-2008 at 12:14 AM.
 
Old 08-16-2008, 12:47 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
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, 01:55 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,649

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

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

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

Why not use hexdump?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:04 PM
need bigger swap partition but missing a valid partition table compused Linux - Hardware 3 07-02-2008 09:46 AM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 01:26 PM
Wrong partition table info Maik Linux - General 5 01-19-2005 02:42 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 03:12 PM


All times are GMT -5. The time now is 10:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration