LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-19-2009, 09:19 PM   #1
fjkum
Member
 
Registered: Feb 2006
Posts: 38

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


Hi,

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, 04:04 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 4,022

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, 04:20 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

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

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
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:
Quote:
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, 11:49 AM   #5
jiml8
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, 05:57 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
It's still available in MEPIS 7 & Debian (Lenny -- Sid). I can't quickly check MEPIS 8.
 
Old 03-23-2009, 05:09 PM   #7
JaksoDebr
Member
 
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 05:09 AM.
 
  


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


All times are GMT -5. The time now is 07:51 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