The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 07-31-2007
reborg's Avatar
reborg reborg is offline
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,816
Quote:
Originally Posted by son_t View Post
Hello

I wonder if someone could help me in reading a raw (non-Solaris) disk on a Solaris system...

I have an IDE HDD in my Sun Blade and would like to read it (using C). It appears on the system and with the format command shows up as c0t1d0.

I use the dd command to read the disk as such:

rhino# dd if=/dev/dsk/c0t1d0s0 bs=1 skip=0 count=1024
dd: /dev/dsk/c0t1d0s0: open: I/O error
rhino# dd if=/dev/dsk/c0t1d0s2 bs=1 skip=0 count=1024
dd: /dev/dsk/c0t1d0s2: open: I/O error

but as you can see I get an error.

How do I read a raw, unformatted, non-Solaris disk in my Solaris box?

Any ideas appreciated...
If you are on a sparc box and you want to read a disk you use the backup slice (s2) - this is as opposed to a raw slice.

Also you need to be root to do this.
Reply With Quote