Discussion:
help required to mount a hard drive on solaris 7
(too old to reply)
Dileep
2010-12-01 17:22:00 UTC
Permalink
Hello unix professionals,

i trying to mount a hard drive with data on solaris 7 and i am new to
unix. I configured the hard drive by using boot -r at ok prompt.

in the terminal i tried to use mount command to mount it, the terminal
output is as follows

# mount /dev/dsk/c1t8d0s6
mount : I/O error
mount: cannot mount /dev/dsk/c1t8d0s6

i tried using prtvtoc command and it said unable read geometry and
even fsck command returned that it cannot open the disk.

can anyone please tell me what the problem is? and how i can mount the
hard drive without formatting it. thanks in advance for any help on
this issue.

thanks,
Dileep
Richard B. Gilbert
2010-12-01 22:18:48 UTC
Permalink
Post by Dileep
Hello unix professionals,
i trying to mount a hard drive with data on solaris 7 and i am new to
unix. I configured the hard drive by using boot -r at ok prompt.
in the terminal i tried to use mount command to mount it, the terminal
output is as follows
# mount /dev/dsk/c1t8d0s6
mount : I/O error
mount: cannot mount /dev/dsk/c1t8d0s6
i tried using prtvtoc command and it said unable read geometry and
even fsck command returned that it cannot open the disk.
can anyone please tell me what the problem is? and how i can mount the
hard drive without formatting it. thanks in advance for any help on
this issue.
thanks,
Dileep
What O/S was used to *write* the disk? If it was Solaris 7, there
*should* be no problem. If the disk was formatted by MSDOS or Windows,
it's not going to work! If the disk was formatted and written by
Solaris 8, 9, or 10 it *may* work. Any O/S should be able read raw disk
blocks. Making the leap from raw disk to a file system is considerably
more difficult!

Solaris 7 is at least twelve years old! Solaris 10 is current. You
will find it difficult to get support. Sun will certainly not support
it; support would have been terminated ten or twelve years ago.
Memories grow dim and people who remember Solaris 7 are probably in
short supply.

If you don't care about the data on the disk, you could use the format
utility to format the disk. You should then be able to create a file
system and mount the disk.

If you are trying to recover data from the disk, I can put you in touch
with a man who specializes in reading weird media and writing the data
to media of your choice.



If the data on the disk is valuable, you may wish to get professional
help! Chris Muller/Muller Media Conversions can read just about
anything and can copy it to something you can read.

<***@mullermedia.com> (516) 933-2067 Ext. 101

Tell Chris I sent you.
Paul Gress
2010-12-02 01:14:59 UTC
Permalink
Post by Dileep
Hello unix professionals,
i trying to mount a hard drive with data on solaris 7 and i am new to
unix. I configured the hard drive by using boot -r at ok prompt.
in the terminal i tried to use mount command to mount it, the terminal
output is as follows
# mount /dev/dsk/c1t8d0s6
mount : I/O error
mount: cannot mount /dev/dsk/c1t8d0s6
i tried using prtvtoc command and it said unable read geometry and
even fsck command returned that it cannot open the disk.
can anyone please tell me what the problem is? and how i can mount the
hard drive without formatting it. thanks in advance for any help on
this issue.
thanks,
Dileep
OK, first couple things I see.

1) You cannot boot off a "slice 6" disk (c1t8d0s6 the last two characters are s6, meaning slice 6), the root file system needs to be slice 0 or s0
2) Your mount command didn't specify where to mount it. Try:

# mount /dev/dsk/c1t8d0s6 /mnt

or even better

# mount -F ufs /dev/dsk/c1t8d0s6 /mnt



Some questions:

Now with the disk is a running system, what does the "format" command show?
Are there more slices?
What was the fsck command you used?
Does the disk spin up?


Paul
Paul Gress
2010-12-02 01:55:01 UTC
Permalink
Post by Dileep
Hello unix professionals,
i trying to mount a hard drive with data on solaris 7 and i am new to
unix. I configured the hard drive by using boot -r at ok prompt.
in the terminal i tried to use mount command to mount it, the terminal
output is as follows
# mount /dev/dsk/c1t8d0s6
mount : I/O error
mount: cannot mount /dev/dsk/c1t8d0s6
i tried using prtvtoc command and it said unable read geometry and
even fsck command returned that it cannot open the disk.
can anyone please tell me what the problem is? and how i can mount the
hard drive without formatting it. thanks in advance for any help on
this issue.
One other thing to try in desperation.

Try the "dd" command to try and get all the data off the hard drive to a file. This assumes you have enough space to do so. With a file you can use a binary editor to try and repair the bad sectors or at least find some of the data your looking for. To use the dd command enter:

# dd if=/dev/rdsk/c1t8d0s6 of=/directory/of/your/choice/disk-c1t8d0s6.image

or the whole disk


# dd if=/dev/rdsk/c1t8d0s2 of=/directory/of/your/choice/disk-c1t8d0s6.image


If you manage to correct the image you can mount it directly using the command lofiadm (I'm not sure if this command is in Solaris 7, but for sure in Solaris 10.

Example of using lofiadm:

# lofiadm -a /directory/of/your/choice/disk-c1t8d0s6.image
/dev/lofi/1
# mount /dev/lofi/1 /mnt

Here lofiadm returns "/dev/lofi/1", which basically act like a disk drive you can mount. This command is also very useful in editing cdroms.


Paul
Oscar del Rio
2010-12-03 19:47:19 UTC
Permalink
Post by Dileep
i trying to mount a hard drive with data on solaris 7 and i am new to
unix. I configured the hard drive by using boot -r at ok prompt.
good start
Post by Dileep
in the terminal i tried to use mount command to mount it, the terminal
output is as follows
# mount /dev/dsk/c1t8d0s6
How do you know it is c1t8d0s6?
If that was the device address on another system, it does not mean it is
the same address on the current system.
Post by Dileep
can anyone please tell me what the problem is? and how i can mount the
hard drive without formatting it.
Run "format".
(Don't panic! "format" by itself will not reformat your drive)
It will show the available hard drives, example

# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/***@8,600000/SUNW,***@2/***@0,0/***@w500000e010277271,0
1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/***@8,600000/SUNW,***@2/***@0,0/***@w500000e010ffa221,0

etc

If you see your drive, take note of the c?t?d? address
Press Ctrl-D to quit "format"

Now you can mount it on a temp directory, e.g. /mnt

mount /dev/dsk/c1t1d0s6 /mnt

If you get an error, the drive or the partition might not have a valid
Unix File System.

Loading...