The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
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 07: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 08:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 08-01-2007
Registered User
 

Join Date: Jul 2007
Posts: 15
Close, but:
Code:
rhino# dd if=/devices/pci@1e,600000/ide@d/dad@1,0 bs=1 skip=0 count=1024
read: Is a directory
0+0 records in
0+0 records out

rhino# ls -la /devices/pci@1e,600000/ide@d/dad@1,0
total 4
drwxr-xr-x   2 root     sys          512 Dec 18  2006 .
drwxr-xr-x   5 root     sys          512 Dec 18  2006 ..
Reply With Quote
Forum Sponsor
  #16  
Old 08-01-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,642
You onlt chose the path containing the device, you need to use the full path to the actual device.
Reply With Quote
  #17  
Old 08-01-2007
Registered User
 

Join Date: Jul 2007
Posts: 15
Go on give me a hint what would be the full path of the device? I thought that (/devices/pci@1e,600000/ide@d/dad@1,0) was it...
Reply With Quote
  #18  
Old 08-06-2007
Registered User
 

Join Date: Jul 2007
Posts: 15
Code:
rhino# ls -l /dev/dsk/c0t1d0s0
lrwxrwxrwx 1 root root 43 Dec 6 2006 /dev/dsk/c0t1d0s0 -> ../../devices/pci@1e,600000/ide@d/dad@1,0:a

rhino# dd if=/devices/pci@1e,600000/ide@d/dad@1,0:a bs=1 skip=0 count=1024 | od -x
dd: /devices/pci@1e,600000/ide@d/dad@1,0:a: open: I/O error
0000000
rhino#
I still get an error accessing this HDD if there is no label on it. Unfortunately the HDD I am trying to analyse has data where Solaris wants to write this label...

Any more ideas anyone?
Reply With Quote
  #19  
Old 03-19-2008
Registered User
 

Join Date: Mar 2008
Posts: 1
Please try to switch the "bs" and "count" values like:

dd if=<your device> of=<outputfile> bs=1024 count=1

perhaps this was the issue.

Regards,
Marian

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...
Reply With Quote
  #20  
Old 03-19-2008
Registered User
 

Join Date: Jul 2007
Posts: 15
Quote:
Originally Posted by marianhanzel View Post
Please try to switch the "bs" and "count" values like:

dd if=<your device> of=<outputfile> bs=1024 count=1

perhaps this was the issue.

Regards,
Marian
Nice try

Although it looks like a dd error... it is not. The error is accessing the device via the handle... The Solaris box can not read HDD that has no LABEL it can identify (i.e. a Sun 'format' label)..
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0