LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-03-2007, 07:58 PM   #1
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Rep: Reputation: 15
How to manage newly added 2nd HDD ?


Friends,

I Attached a scond HDD ( 80 GB) to my system
Code:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 9726 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
       1. c1d1 <drive type unknown>
          /pci@0,0/pci-ide@1f,1/ide@1/cmdk@1,0
Specify disk (enter its number):
My Doubt is How can I make sure that this is a Faulty Or a Good One?

reg
Arun
 
Old 09-03-2007, 08:11 PM   #2
lostnhell
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Distribution: Slackware-current
Posts: 50

Rep: Reputation: 17
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.
 
Old 09-04-2007, 12:42 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
The format utility has an analyse functionality (read/write/compare tests) that will help detecting faulty disks.
 
Old 09-04-2007, 10:15 AM   #4
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Original Poster
Rep: Reputation: 15
Hi thaks for your response,

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

Code:
format> analyze


ANALYZE MENU:
        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
        quit
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.
analyze>
How can I initialize Defect List??

..arun
 
Old 09-05-2007, 12:42 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 09-05-2007, 08:43 PM   #6
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Original Poster
Rep: Reputation: 15
Hi

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,


Code:
Searching for disks...done

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

                                               Cylinders
      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

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

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

..Arun
 
Old 09-05-2007, 10:29 PM   #7
lostnhell
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Distribution: Slackware-current
Posts: 50

Rep: Reputation: 17
Quote:
Originally Posted by kcarun View Post
Or shall I use the "newfs" command before mount?

..Arun
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.
 
Old 09-05-2007, 11:02 PM   #8
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Original Poster
Rep: Reputation: 15
Hi,

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!

reg
Arun

Last edited by kcarun; 09-05-2007 at 11:03 PM.
 
Old 09-05-2007, 11:36 PM   #9
lostnhell
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Distribution: Slackware-current
Posts: 50

Rep: Reputation: 17
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.
 
Old 09-06-2007, 01:32 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I would recommend you to use ZFS for your second disk.

Just run the following commands:
Code:
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.
 
Old 09-06-2007, 08:42 PM   #11
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Original Poster
Rep: Reputation: 15
jlliagre ,

Yes it worked, Thanks a lot.


..Arun
 
Old 09-07-2007, 12:54 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You are welcome !

Here's an interesting reading about ZFS: http://blogs.sun.com/constantin/entr...y_tips_for_zfs
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i mount newly added H.D using SuSe 9.0 elbrens Linux - Software 3 08-14-2007 01:51 PM
No sound for newly added user... Lufbery Slackware 9 07-07-2007 08:51 PM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM
X and Firefox don't recognize newly added fonts tom221 Linux - General 2 03-08-2005 04:19 PM
newly added harddrive not showing.... pdmackenzie Linux - Hardware 4 03-02-2003 05:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration