![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| big disk solaris 2.6 | malcqv | SUN Solaris | 13 | 06-30-2008 04:14 AM |
| Disk Mirroring for Solaris 10 x86 | chuck43 | SUN Solaris | 2 | 01-30-2008 06:19 AM |
| Reading Data from Disk | taordw | SCO | 2 | 07-25-2007 08:07 PM |
| Disk Mirror in Solaris 9 via Solaris Volume Manager | deal732 | SUN Solaris | 3 | 05-02-2007 08:43 AM |
| reading from usb to sun solaris | Anant | SUN Solaris | 1 | 11-11-2005 07:21 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Reading raw disk on Solaris
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... |
| Forum Sponsor | ||
|
|
|
|||
|
I haven't tried it, but the point is that it is a raw disk - i.e. FS unknown... so things such as 'blocksize' does not exist or unknown...
I just need to open the device... in a C program... like in Linux the HDD devices are /dev/sda, /dev/hda, etc... |
|
|||
|
Yup (from above) doing this:
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 The same with /dev/rdsk result in the same error, and yes I am root... |
|||
| Google UNIX.COM |
| Tags |
| linux, solaris |
| Thread Tools | |
| Display Modes | |
|
|