Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to mount external hard disk on Solaris 10 x86?

2,088 views
Skip to first unread message

Michelle

unread,
Apr 17, 2008, 5:56:10 PM4/17/08
to
On Mar 26, 12:40 pm, Reginald Beardsley <pulask...@yahoo.com> wrote:

- Hide quoted text -
- Show quoted text -

> Michelle wrote:
> > On Mar 24, 5:11 pm, Michelle <serendipity1...@yahoo.com> wrote:

> >>I went out and got those 1/2 Terabyteexternalharddrives from both
> >>Maxtor and Seagate. When I plugged in its USB cable onto my Solaris
> >>10 x86 server, it tries to format theharddrive. But that's it. I
> >>can't mount either drive because the format doesn't even run.


> >>Is that anexternalharddrive system that is around 250 GB to 1
> >>Terabyte that works with Solaris 10? Thanks.


> > So I must have done something wrong. Can someone post the
> > instructions on how to format an
> >externalUSBharddrive on Solaris x86, and then, mounting it after
> > the format is completed?
> > Currently, whenever I plug in the USB cable, Solaris 10 wants to
> > format the drive, and then,
> > it just gets stuck there. Thanks.


> Here's a brief summary of my notes from setting up 400 & 750 GB Seagate
> drives w/ ufs. Setting up pcfs is similar:


> 0) disable vold & reboot


> mv /etc/vold.conf /etc/vold.conf_disabled


> init 6


> 1) plug in the drive and get the drive designation


> rmformat -l


> 2) clear the old MS cruft


> dd if=/dev/zero of=/dev/rdsk/???? bs=2048 count=10


> Note: I don't think this was really necessary.
> My notes don't say why I did it.
> Probably just habit.


> 2) get the number of sectors & create primary partition


> fdisk /dev/rdsk/????


> 3) format the drive w/ newfs


> newfs -v [your choice of options] -s number_of_sectors /dev/rdsk/????


> Thehardpart was figuring out I needed to give the "-s #_sectors" option.


> you'll get a message from newfs that the drive returns a size of zero,
> but a seek to the specified size succeeds so it is using the size you
> gave it. I've encountered the same message everytime I've formatted a
> USB drive. I assume it's a error in the USB mass storage driver failing
> to propagate the information properly.


> 4) mount -F ufs [your mount options] /dev/dsk/???? /mnt


> Have Fun!
> Reg- Hide quoted text -


> - Show quoted text -

This is what I've done:

# rmformat -l


Looking for devices...
1. Logical Node: /dev/rdsk/c1t0d0p0
Physical Node: /pci@0,0/pci-ide@14,1/ide@0/sd@0,0
Connected Device: SONY DVD RW AW-G170A 1.75
Device Type: DVD Reader/Writer
2. Logical Node: /dev/rdsk/c2t0d0p0
Physical Node: /pci@0,0/pci1043,81ef@13,5/storage@2/disk@0,0
Connected Device: Maxtor OneTouch 0121
Device Type: Removable


# fdisk /dev/rdsk/c2t0d0p0


Total disk size is 60800 cylinders
Cylinder size is 32130 (512 byte) blocks


Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 60799 60799
100


SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)


Enter Selection: 6


#


So now, what do I type in for the "newfs" command?
I don't know what the number of sectors is.
By the way, does the newfs command format the external hard disk?


Then after the "newfs" command, can I do this command:


# mount -F ufs /dev/rdsk/c2t0d0p0 /mnt


Ian Collins

unread,
Apr 17, 2008, 6:00:41 PM4/17/08
to
Michelle wrote:
>

>
> So now, what do I type in for the "newfs" command?
> I don't know what the number of sectors is.
> By the way, does the newfs command format the external hard disk?
>
>
> Then after the "newfs" command, can I do this command:
>
>
> # mount -F ufs /dev/rdsk/c2t0d0p0 /mnt
>
>

Why don't you just create a ZFS pool on the drive?

--
Ian Collins.

ITguy

unread,
Apr 17, 2008, 11:34:59 PM4/17/08
to
> 2. Logical Node: /dev/rdsk/c2t0d0p0
> Physical Node: /pci@0,0/pci1043,81ef@13,5/storage@2/disk@0,0
> Connected Device: Maxtor OneTouch 0121
> Device Type: Removable
>
> # fdisk /dev/rdsk/scconf -c -D name=dg1, syncp0

>
> Total disk size is 60800 cylinders
> Cylinder size is 32130 (512 byte) blocks
>
> Cylinders
> Partition Status Type Start End Length %
> ========= ====== ============ ===== === ====== ===
> 1 Active Solaris2 1 60799 60799
> 100
>

From your rmformat and fdisk commands, it looks like the disk is
partitioned correctly for Solaris.

> So now, what do I type in for the "newfs" command?
> I don't know what the number of sectors is.
> By the way, does the newfs command format the external hard disk?

You have an fdisk partition, but you still need to format the disk to
create slices. I don't believe you can run "newfs" against an fdisk
slice.
# format c2t0d0
<create slice(s)>

# newfs /dev/rdsk/c2t0d0s(X)
# mount -F ufs /dev/rdsk/c2t0d0s(X) /mnt

Or, just use ZFS
# zpool create <pool-name> c2t0d0

0 new messages