Reading raw disk on Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Reading raw disk on Solaris
# 8  
Old 07-31-2007
Are you are certain that you are looking at the right disk and not the cd/dvd drive ?
# 9  
Old 07-31-2007
Yup:
Code:
rhino# iostat -En
c0t1d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Model: ST3160022ACE     Revision: 9.51     Serial No: 5JS7STTP         
Size: 137.44GB <137438952960 bytes>
Media Error: 0 Device Not Ready: 0  No Device: 0 Recoverable: 0 
Illegal Request: 0 
c0t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Model: ST3120026A       Revision: 8.01     Serial No: 4JT0VLFZ         
Size: 120.03GB <120034123776 bytes>
Media Error: 0 Device Not Ready: 0  No Device: 0 Recoverable: 0 
Illegal Request: 0 
c0t2d0           Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 
Vendor: TSSTcorp Product: CDW/DVD TS-H492C Revision: SI00 Serial No:  
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 
Illegal Request: 1 Predictive Failure Analysis: 0

I will try another 'raw' disk in case there is a problem with this one...
# 10  
Old 07-31-2007
Quote:
Originally Posted by son_t
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 am not referring to cluster sizes, I am refering to how SCSI controllers read disks, they read multiples of sectors.

And as you say, you haven't tried it.
# 11  
Old 08-01-2007
Hi porter, I appreciate your responses... but I feel you are barking up the wrong tree here.

I have now put in a smaller HDD (came out of a Sun box originally) and here are the results:

Code:
rhino# iostat -En
c0t1d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Model: ST340016A        Revision: 3.10     Serial No: 3HS1Z16S         
Size: 40.02GB <40020664320 bytes>
Media Error: 0 Device Not Ready: 0  No Device: 0 Recoverable: 0 
Illegal Request: 0 
c0t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Model: ST3120026A       Revision: 8.01     Serial No: 4JT0VLFZ         
Size: 120.03GB <120034123776 bytes>
Media Error: 0 Device Not Ready: 0  No Device: 0 Recoverable: 0 
Illegal Request: 0 
c0t2d0           Soft Errors: 1 Hard Errors: 0 Transport Errors: 0 
Vendor: TSSTcorp Product: CDW/DVD TS-H492C Revision: SI00 Serial No:  
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 
Illegal Request: 1 Predictive Failure Analysis: 0 
rhino# format
Searching for disks...done
 
 
AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <ST3120026A cyl 57459 alt 2 hd 16 sec 255>
          /pci@1e,600000/ide@d/dad@0,0
       1. c0t1d0 <DEFAULT cyl 19156 alt 2 hd 16 sec 255>
          /pci@1e,600000/ide@d/dad@1,0
Specify disk (enter its number): ^D

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

Still the same problems. Any more ideas?
# 12  
Old 08-01-2007
Maybe you could tell dd where you want to send the output ?
# 13  
Old 08-01-2007
Got it to work now... It looks like I have to LABEL the disk!

When you put a disk in a Solaris box that is not a Solaris disk - it reports the disk as having a corrupt label...

If use format and then label the disk it then seems to then allow access using dd... (if I then use dd to zero the disk, the label info is lost.)

Can anyone tell me what/where the Solaris disk label is? How big is it, what info, etc?

Obviously I don't want to write info onto the disk if that info is going to corrupt whatever system the 'raw' disk came out of! I just want to put it into a Solaris system to enable it to be analysed (by extracting the data off).

I will try coding some C to access the disk and see if this is any more succesful or whether it has to be labelled...
# 14  
Old 08-01-2007
You may be able to access the disk from the /devices path to the device. It is not by any means certain, but it might work.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

linux 8e vs raw disk

Hi All, Hope someone can help me with this. I have noticed that on some of the servers i am currently administering there is a difference in the setup of some of the LVM disks. Some of the disks have been created by SN disk allocated, disk partitioned using type 8e over the entire disk,... (2 Replies)
Discussion started by: Tommyk
2 Replies

2. Solaris

Persistent ownership of raw disk during reboots

Hi, I'm in process of creating oracle RAC using Solaris 10 in VirtualBox. I want to know how can I change the ownership of device e.g /dev/rdsk/c0t3d0s0 and keep it persistent during rebbots. When I enter chown grid:install /dev/rdsk/c0t3d0s0 ls -l still shows root:root. Thanks ... (2 Replies)
Discussion started by: jia786
2 Replies

3. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% /... (4 Replies)
Discussion started by: fretagi
4 Replies

4. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% / ... (0 Replies)
Discussion started by: fretagi
0 Replies

5. Solaris

sparc, raw splice on end of disk

I noticed we have a small splice on end of disk that is not mounted. What could that be and how do we move it few sectors? Thanks. (7 Replies)
Discussion started by: orange47
7 Replies

6. Solaris

Command to format Oracle ASM raw disk

Hi, Can any one please provide the command to format an Oracle Raw Disk in Solaris 10. I have been used the following commands: dd if=/dev/zero of=<raw disk path> Thanks ---------- Post updated at 12:20 PM ---------- Previous update was at 10:11 AM ---------- Well this didn't give... (0 Replies)
Discussion started by: Mack1982
0 Replies

7. Solaris

Mounting a Raw Disk

I am using Solaris 10. I have a raw device attached to my system which is /dev/md/rdsk/d91 I want to mount this as a disk with file system on a mount point /u05. Actually this raw device was earlier part of Oracle ASM. Now I have removed this disk from ASM, and want to use it as normal... (3 Replies)
Discussion started by: fahdmirza
3 Replies

8. Solaris

How to create new partitions in solaris,from the raw disk?

Hi all, I would like to know how to make new partitions.... I currently have allocated 60G for various slices (I have totally used 4 out of 7 available slices... I am running only solaris on my box. My plan is to have entire disk dedicated to solaris and run other OS from within... (19 Replies)
Discussion started by: wrapster
19 Replies

9. UNIX for Dummies Questions & Answers

raw disk

What do u mean by raw and cooked disk? What are the advantages of having raw disk? Thanks n regards, (1 Reply)
Discussion started by: kingsto88
1 Replies

10. UNIX for Advanced & Expert Users

copying oracle tables from raw disk

I have been tasked with archiving Oracle tables. The data is on raw devices, and possibly will span multiple logical volumes. Has anyone ever had to do this? How did you accomplish it? Any references to accomplish this would be greatly appreciated. Thanks, (2 Replies)
Discussion started by: isenhart
2 Replies
Login or Register to Ask a Question