Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-19-2009, 10:19 PM   #1
Registered: Feb 2006
Posts: 38

Rep: Reputation: 15
How to view raw content in a disk?


I have written some patterns (0xFFEE55EE) to the drive but how do I view the raw content in the drive that I have written?
Old 03-20-2009, 05:04 AM   #2
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 4,062

Rep: Reputation: Disabled
You can see it e.g. with dd.

The information you provide is -- scarce. What kind of drive? Hard disk? CD? Whole drive or partition? We could help better if we knew more...
Old 03-20-2009, 05:20 AM   #3
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
You can view it with hexdump, you can use dd or cat and pipe it to hexdump.
Old 03-20-2009, 10:50 AM   #4
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,629
Blog Entries: 4

Rep: Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001Reputation: 3001
If you are root, you can open a disk-device as a "file" and maneuver through it ... as the dd program does.

However, I feel, for some strange reason, that I should now impart to you this grave warning:
Through me you pass into the city of woe:
Through me you pass into eternal pain:
Through me among the people lost for aye.

Justice the founder of my fabric mov'd:
To rear me was the task of power divine,
Supremest wisdom, and primeval love.

Before me things create were none, save things
Eternal, and eternal I endure.
All hope abandon ye who enter here.

Such characters in colour dim I mark'd
Over a portal's lofty arch inscrib'd:
Whereat I thus: Master, these words import.
(from Dante's Divine Comedy; English translation by H. F. Cary.)
Old 03-20-2009, 12:49 PM   #5
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
You might take a look at the linux disk editor (lde). I don't know if it is still maintained, but it does (did) what it is you want to do.
Old 03-23-2009, 06:57 AM   #6
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
It's still available in MEPIS 7 & Debian (Lenny -- Sid). I can't quickly check MEPIS 8.
Old 03-23-2009, 06:09 PM   #7
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

Rep: Reputation: 21
Create a separate small disk partition to do your tests. Parsing through a multi-gigabyte hard disk by using 'dd' or any other similar tool will be an extreme pain, even if done by a custom parser program. If it works on the smaller partition, then you can still go for bigger drives.

Linux Archive

Last edited by JaksoDebr; 04-02-2009 at 06:09 AM.


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
How to view canon RAW(cr2) files on my Acer aspire one thomas hestvik Linux - Software 3 10-12-2008 02:49 PM
view the content of tape binuveranal Linux - Server 1 02-27-2008 12:18 AM
how to view content of tape angelfire Linux - Hardware 5 07-22-2006 05:21 AM
view ISO images content.. JoannesX Linux - General 2 02-19-2005 07:28 AM
Way to view quiz content? frob23 LQ Suggestions & Feedback 4 01-16-2005 04:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:54 PM.

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