Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding new IDE drive on U10

Status
Not open for further replies.

Mag0007

MIS
Feb 15, 2005
829
US
I just added another Hdisk on my u10.

probe-ide shows it fine.

Now I want to view this disk in Solaris 9. I don't want to format it because it already has a Solaris FS on it.

format


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST340014A cyl 19156 alt 2 hd 16 sec 255>
/pci@1f,0/pci@1,1/ide@3/dad@0,0

I though I would of had another choice...

 
have you done a reconfiguration reboot "reboot -- -r"?

if that does not work, try devconfig and then disks.
 
okay...I see the drive now.

How can I mount it?

When I try to mount it, I get I/O error
 
Since you said it was already installed with Solaris on it. Try running:

Code:
mount /dev/dsk/c0t1d0s0 /mnt

If that does not work then run the format command and examine the partition layout. It will also tell you what controller and target number it is. I was using the "default" in my response.

Resume online at:
 
Code:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <ST340014A cyl 19156 alt 2 hd 16 sec 255>
          /pci@1f,0/pci@1,1/ide@3/dad@0,0
       1. c0t1d0 <SAMSUNG SP0802N cyl 65529 alt 2 hd 16 sec 63>
          /pci@1f,0/pci@1,1/ide@3/dad@1,0
Specify disk (enter its number): 1
selecting c0t1d0
[disk formatted, no defect list found]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> verify
Warning: Could not read backup labels.

Warning: Check the current partitioning and 'label' the disk or use the
         'backup' command.

Primary label contents:

Volume name = <        >
ascii name  = <SAMSUNG SP0802N           cyl 65529 alt 2 hd 16 sec 63>
pcyl        = 65531
ncyl        = 65529
acyl        =    2
nhead       =   16
nsect       =   63
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0                0         (0/0/0)            0
  1       swap    wu       0                0         (0/0/0)            0
  2     backup    wu       0 - 65528       31.50GB    (65529/0/0) 66053232
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6 unassigned    wm       0                0         (0/0/0)            0
  7       home    wm       0                0         (0/0/0)            0

format>

# mount /dev/rdsk/c0t1d0s7 /mnt
mount: I/O error
 
is that going to delete my data from that slice/partition? I don't want that. I want to keep this data.

 
a newfs would destroy the data, but as pointed out previously c0t1d0s7 doesn't have anything there.
 
Hmm, I just added this drive which was previously used on another U10 (Solaris 9). I just wanted to import my slices so I can view them, and back it up.


So there is no possible way for me to get this data back?
 
Mag0007,
What was this disk used for... By your partition printout, there was no partitioning done. If you try to partition the disk or run newfs, the data on the disk will be corrupted. You can try to mount /dev/dsk/c0t0d0s2 to see if that works... Was this disk part of a stripped OS?
 
The disk was used on a U10 before. It had solaris 9 installed and running fine. I had a bad motherboard + processor on my U10 so I added this disk.

If worse comes to worse, I probally just have to do a newfs on it :-(

Thanks for ALL of your help!
 
If you do nefs you will lose all data.
You was using thi disk on partition 2,
This means that you mast reuse this partition.
You must mount /dev/dsk/c0t1d0s2.
You willhave the wole disk mounted on.
 
I am having the same problem - cannot add 2nd hd and get the u10 to see the new fs on a u10. See thread 60-1067440. I also had a prior installation of sol9 on the 2nd hd but do not care if it is wiped. The other thing is my hd is 120gb - the os only sees about 115gb of it. So when it is installed it is a raw drive /dev/rdsk/c0t1d0.

Have u resolved your problem yet?
 
Solaris reserves a portion of each partition for what they call maintenance. The default used to be 10%. I think with solais 8, that percentage was reduced because of the larger drives that are available now. I have it in my notes somewhere how to determine the default value... If you want to know that information, I will find it.
 
I resolved the problem - I was trying to do
newfs /dev/rdsk/c0t1d0s5
mount /dev/rdsk/c0t1d0s5 /d01
which gave me the error
mount: /dev/rdsk/c0t1d0s5 not a block device
but when I did this
newfs /dev/dsk/c0t1d0s5
mount /dev/dsk/c0t1d0s5 /d01
then it worked ok and when I run df or mount i see the new fs
Problem solved
 
See thread 60-1067440 - for more problems that developed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top