LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-25-2008, 09:54 PM   #1
writedom
LQ Newbie
 
Registered: May 2008
Posts: 11

Rep: Reputation: 0
How to view sectors of unformatted hard disk


I want to view the sectors of my hard disk after it has been "wiped". I have programs to do this in windows, but how about Linux?


I am using Ubuntu 8.04 if that makes a difference.

Thanks
 
Old 05-25-2008, 10:25 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I'm not sure what you want to do - attempt to view inodes and content in hex+ascii or find out what can be recovered.

You can use any of the usual recovery tools to report on what can be found and what they believe can be recovered. For example, look at 'magicrescue'.
 
Old 05-25-2008, 10:31 PM   #3
writedom
LQ Newbie
 
Registered: May 2008
Posts: 11

Original Poster
Rep: Reputation: 0
I want to display hard-disk data by physical sectors in hex & ascii.
 
Old 05-25-2008, 11:07 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You need the "dd" command.

Example: For a disk which has been "wiped", there are no partitions. Assume that the drive is /dev/sda. To read the first 50 sectors, you could do:

dd if=/dev/sda bs=512 count=50 | hexdump -C | more
 
Old 05-25-2008, 11:08 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I just use dd and pipe it to something like xxd.
There may be a GUI'fied option for Linux but I've never bothered looking.

Edit: d'oh
 
Old 05-26-2008, 09:15 AM   #6
writedom
LQ Newbie
 
Registered: May 2008
Posts: 11

Original Poster
Rep: Reputation: 0
That's what I needed.

Thank You
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb hard disk - unformatted greengrocer Linux - Newbie 5 05-15-2007 07:21 AM
HARD DISK BAD SECTOrS zoetrope87 Linux - Hardware 7 03-02-2007 05:16 PM
HARD DISK BAD SECTOrS zoetrope87 Linux - Software 2 01-12-2006 03:54 AM
How to remove bad sectors on hard disk ? emailssent General 4 10-13-2004 09:35 AM
Hard Disk Starting Sectors robhargreaves Linux - Hardware 1 05-20-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 PM.

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