-   Solaris / OpenSolaris (
-   -   How to manage newly added 2nd HDD ? (

kcarun 09-03-2007 07:58 PM

How to manage newly added 2nd HDD ?

I Attached a scond HDD ( 80 GB) to my system

# format
Searching for disks...done

      0. c0d0 <DEFAULT cyl 9726 alt 2 hd 255 sec 63>
      1. c1d1 <drive type unknown>
Specify disk (enter its number):

My Doubt is How can I make sure that this is a Faulty Or a Good One?


lostnhell 09-03-2007 08:11 PM

Have you tried using the HD manufacturer's installation disk to run a disk check? Most manufacturers like Maxtor, Seagate and Western Disigtal have free ISOs of the disk check utilities that you can download from their websites.

jlliagre 09-04-2007 12:42 AM

The format utility has an analyse functionality (read/write/compare tests) that will help detecting faulty disks.

kcarun 09-04-2007 10:15 AM

Hi thaks for your response,

I tried that read write and compare test , result is show below


format> analyze

        read    - read only test  (doesn't harm SunOS)
        refresh  - read then write  (doesn't harm data)
        test    - pattern testing  (doesn't harm data)
        write    - write then read      (corrupts data)
        compare  - write, read, compare (corrupts data)
        purge    - write, read, write  (corrupts data)
        verify  - write entire disk, then verify (corrupts data)
        print    - display data buffer
        setup    - set analysis parameters
        config  - show analysis parameters
        !<cmd>  - execute <cmd> , then return
analyze> compare
Ready to analyze (will corrupt data). This takes a long time,
but is interruptable with CTRL-C. Continue? y
Current Defect List must be initialized to do automatic repair.

How can I initialize Defect List??


jlliagre 09-05-2007 12:42 AM

I never saw that message. It seems to imply your disk isn't low level formatted but as far as I know, all IDE disks are. Perhaps this disk is just dead. You may want to try the "format" subcommand but the documentation tell it won't work with IDE ...

You can also try using it with Linux or Windows to see what these O/Ses think about the disk.

kcarun 09-05-2007 08:43 PM


My HDD is Maxtor, and I downloaded (Programe) Iso image from there site and , done the "Zero Filling".

After that ,with fdisk i created a single partition,


Searching for disks...done

            Total disk size is 9730 cylinders
            Cylinder size is 16065 (512 byte) blocks

      Partition  Status    Type          Start  End  Length    %
      =========  ======    ============  =====  ===  ======  ===
          1                Solaris2          1  9729    9729    100

as next step I tried to mount the device but the result is


bash-3.00# mount /dev/rdsk/c0d1s0 /mnt/2dHDD/
mount: /dev/rdsk/c0d1s0 not a block device

Or shall I use the "newfs" command before mount?


lostnhell 09-05-2007 10:29 PM


Originally Posted by kcarun (Post 2882657)
Or shall I use the "newfs" command before mount?


Did you mean to setup the disk type as a Solaris, rather than a Linux disk type?

You need to have a filesystem installed on the partition before you can mount it. You can use mkfs to add a filesystem to the partition.

kcarun 09-05-2007 11:02 PM


My aim is to install this second Disk as a Backup Storage Area for my Documents and Photos,

for that purpose which file type will be better ? and Nowadays I am using Solaris Only! and Linux File type will be recognize by solaris ?

Kindly Advice!


lostnhell 09-05-2007 11:36 PM

I was assuming that you were asking questions about a Debian distribution, not Solaris, so I apologize for the confusion.

Unfortunately I have not worked with Solaris enough to have opinions or know which file system types are possible. In reading Solaris documentation I found that UFS is the default filesystem, and in efforts to be safe I would recommend using the Solaris Partition type and the UFS filesystem.

But, the good news is that I will now get and install OpenSolaris in efforts to better assist with Solaris questions in the future.

jlliagre 09-06-2007 01:32 AM

I would recommend you to use ZFS for your second disk.

Just run the following commands:

zpool create disk1 c0d1
zfs create disk1/backup

You disk is then available under the /disk1/backup directory.

You should also take some time googling ZFS documentation and blogs to learn about very cool ZFS features, like snapshots, redundancy, compression and the likes.

kcarun 09-06-2007 08:42 PM

jlliagre ,

Yes it worked, Thanks a lot.


jlliagre 09-07-2007 12:54 AM

You are welcome !

Here's an interesting reading about ZFS:

All times are GMT -5. The time now is 12:22 PM.