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

format /c0t0d0s0?

285 views
Skip to first unread message

hadi motamedi

unread,
Jul 19, 2010, 12:27:21 AM7/19/10
to
Dear All
I need to format a hard disk for my solaris8 machine . I connected it
to its IDE and placed solaris8 install cd and then booted my machine
like 'ok>boot cdrom' . At the os prompt, I tried to use format command
and its output shows one disk on /c0t0d0 but it cannot format hard
drive . Can you please let me know what options do I have to try to
format it ?
Thank you

solx

unread,
Jul 19, 2010, 3:38:03 AM7/19/10
to


To format the disk boot Solaris, start an install using the GUI when you
get to the GUI, start a console and then

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c2t0d0 <DEFAULT cyl 30269 alt 2 hd 255 sec 63>

/pci@7c,0/pci10de,376@a/pci1033,125@0/pci8086,335@4/pci1000,3008@e/sd@0,0

Specify disk (enter its number): 0 <- enter disk number
selecting c2t1d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c2t1d0s7 is currently mounted on /home. Please see umount(1M).


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
fdisk - run the fdisk program (used by Sol x86)
repair - repair a defective sector
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
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> fdisk (to create Solaris Disk partition)

format> partition (to create Solaris filesystem partitions)

format> label (to write Solaris filesystem partitions to disk!!)

format> quit

You can then use newfs to format the defined partitions with UFS to
allow them to be mounted.


hadi motamedi

unread,
Jul 19, 2010, 4:27:40 AM7/19/10
to

Sorry. My solaris8 booting from 'ok>boot cdrom' does not show the
format>fdisk utility . Can you please let me know why I don't have
format>fdisk ? Can I try for something equivalent instead?

Paul Gress

unread,
Jul 19, 2010, 2:41:35 PM7/19/10
to
On 07/19/10 04:27 AM, hadi motamedi wrote:
> On Jul 19, 12:38 am, solx<nos...@example.net> wrote:
>> On 19/07/2010 05:27, hadi motamedi wrote:
>>
>>> Dear All
>>> I need to format a hard disk for my solaris8 machine . I connected it
>>> to its IDE and placed solaris8 install cd and then booted my machine
>>> like 'ok>boot cdrom' . At the os prompt, I tried to use format command
>>> and its output shows one disk on /c0t0d0 but it cannot format hard
>>> drive . Can you please let me know what options do I have to try to
>>> format it ?
>>> Thank you

>> fdisk - run the fdisk program (used by Sol x86)

>


> Sorry. My solaris8 booting from 'ok>boot cdrom' does not show the
> format>fdisk utility . Can you please let me know why I don't have
> format>fdisk ? Can I try for something equivalent instead?


"fdisk" is for X86 computers only. The fact that your booting from the CD with "OK> boot cd" says your computer is Sparc based, there is no fdisk.

So then just do:


format> partition (to create Solaris filesystem partitions)

format> label (to write Solaris filesystem partitions to disk!!)

format> quit


Also, don't forget to put a file system on the disk after formating, use either "newfs" or "mkfs". "newfs" is easier to use.


Paul

hadi motamedi

unread,
Jul 20, 2010, 1:29:02 AM7/20/10
to

I tried as the following :
format>partition>print
format>label
format>quit
#newfs -m 1 /dev/rdsk/c0t0d0s0
#reboot
ok>boot disk
But it returned as :
'failed to read super block
file not executable'

chuckers

unread,
Jul 20, 2010, 1:35:50 AM7/20/10
to

Assuming disk returns the same things as /dev/rdsk/c0t0d0s0 you don't
have
an O/S installed on on your disk if that is the procedure you
followed.

Just formatting the disk does nothing for you. The system doesn't
know what to
do with a blank disk. No O/S does. You need to have certain files on
it to tell
the boot loader what to do.

Install an O/S on the disk and try again.

hadi motamedi

unread,
Jul 20, 2010, 1:53:27 AM7/20/10
to

I tried as :
insert solaris8 install cd
ok>boot cdrom
But it ended with the following message :
error : could not label disk
error : could not update disk with new configuration
#
At this os prompt, I tried as :
#newfs -m 1 /dev/rdsk/c0t0d0s0
#installboot /usr/platform/'uname -i'/lib/fs/ufs/bootblk /dev/rdsk/


c0t0d0s0
#reboot
ok>boot disk

But it returned :
short disk read

Richard B. Gilbert

unread,
Jul 20, 2010, 8:27:54 AM7/20/10
to

Those messages strongly suggest that there is no disk "c0t0d0s0" or that
the disk is not usable!

It *might* help if you would tell us your hardware configuration *in
detail*:
a. Manufacturer and model of your computer.
b. Number and model(s) of disk(s).
c. The amount of RAM installed

Kees Nuyt

unread,
Jul 20, 2010, 2:48:31 PM7/20/10
to
On Mon, 19 Jul 2010 22:53:27 -0700 (PDT), hadi motamedi
<motam...@gmail.com> wrote:


>I tried as :
>insert solaris8 install cd
>ok>boot cdrom
>But it ended with the following message :
>error : could not label disk
>error : could not update disk with new configuration
>#
>At this os prompt, I tried as :
>#newfs -m 1 /dev/rdsk/c0t0d0s0
>#installboot /usr/platform/'uname -i'/lib/fs/ufs/bootblk /dev/rdsk/
>c0t0d0s0
>#reboot
>ok>boot disk
>But it returned :
>short disk read
>failed to read super block
>file not executable

Did you try to scan the devices from the Ok prompt?
Did you define the devalias "disk" to point at the correct disk
device (hardware path)?
I don't know the appropriate commands from the top of my head.
Apparently the setting for cdrom is ok, but the disk might be at
an other channel / target / disk. Perhaps it's not c0t0d0?
Best regards,
--
( Kees Nuyt
)
c[_]

hadi motamedi

unread,
Jul 20, 2010, 11:46:15 PM7/20/10
to
On Jul 20, 5:27 am, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:

Please find below the required info :
model of computer : Naturetech 888p
manufacturer : naturetechws.com
no. of disks : 1
model of disk : HTS548040M9AT00
amount of RAM : 512 MB

hadi motamedi

unread,
Jul 21, 2010, 12:14:07 AM7/21/10
to

Sorry. What do you mean by 'scanning devices from the ok prompt'? Do
you mean ok>test-all ?
I checked for devalias and I found that the alias for 'disk' is
correct . It is as :
disk /pci@1f,0/pci@1,1/ide@d/disk@0,0

Richard B. Gilbert

unread,
Jul 21, 2010, 8:29:02 AM7/21/10
to
hadi motamedi wrote:
> On Jul 20, 5:27 am, "Richard B. Gilbert" <rgilber...@comcast.net>
> wrote:
>> hadi motamedi wrote:
>>> On Jul 19, 10:35 pm, chuckers <chucker...@gmail.com> wrote:
>>>> On Jul 20, 2:29 pm, hadi motamedi <motamed...@gmail.com> wrote:
>>>>> On Jul 19, 11:41 am, Paul Gress <pgr...@pb.net> wrote:
>>>>>> On 07/19/10 04:27 AM, hadi motamedi wrote:
>>>>>>> On Jul 19, 12:38 am, solx<nos...@example.net> wrote:
>>>>>>>> On 19/07/2010 05:27, hadi motamedi wrote:
>>>>>>>>> Dear All
>>>>>>>>> I need to format a hard disk for my solaris8 machine . I connected it
>>>>>>>>> to its IDE and placed solaris8 install cd and then booted my machine
>>>>>>>>> like 'ok>boot cdrom' . At the os prompt, I tried to use format command
>>>>>>>>> and its output shows one disk on /c0t0d0 but it cannot format hard
>>>>>>>>> drive . Can you please let me know what options do I have to try to
>>>>>>>>> format it ?


Please provide the full and *exact* text of all messages issued when you
try to use format command.

This completed without error???

>>> #installboot /usr/platform/'uname -i'/lib/fs/ufs/bootblk /dev/rdsk/
>>> c0t0d0s0

Did this complete without error?


>>> #reboot
>>> ok>boot disk
>>> But it returned :
>>> short disk read
>>> failed to read super block
>>> file not executable
>> Those messages strongly suggest that there is no disk "c0t0d0s0" or that
>> the disk is not usable!
>>
>> It *might* help if you would tell us your hardware configuration *in
>> detail*:
>> a. Manufacturer and model of your computer.
>> b. Number and model(s) of disk(s).
>> c. The amount of RAM installed
>
> Please find below the required info :
> model of computer : Naturetech 888p
> manufacturer : naturetechws.com
> no. of disks : 1
> model of disk : HTS548040M9AT00
> amount of RAM : 512 MB

Okay, that tells me that it's a 40 GB IDE disk from Hitachi and that you
have more than the required minimum of RAM. Taken together with your
earlier message, it strongly suggests that there is no operating system
on the disk! It also suggests an X86 (PC) architecture.

You might find it helpful to go to docs.sun.com. There you will find
downloadable copies of hardware and software documentation. ISTR that
you can also read it on line.

Chris Ridd

unread,
Jul 21, 2010, 8:33:23 AM7/21/10
to
On 2010-07-21 13:29:02 +0100, Richard B. Gilbert said:

> hadi motamedi wrote:
>> Please find below the required info :
>> model of computer : Naturetech 888p
>> manufacturer : naturetechws.com
>> no. of disks : 1
>> model of disk : HTS548040M9AT00
>> amount of RAM : 512 MB
>
> Okay, that tells me that it's a 40 GB IDE disk from Hitachi and that
> you have more than the required minimum of RAM. Taken together with
> your earlier message, it strongly suggests that there is no operating
> system on the disk! It also suggests an X86 (PC) architecture.

Yes, but I think he's running qemu on his x86 box in order to emulate a SPARC.

--
Chris

Richard B. Gilbert

unread,
Jul 21, 2010, 8:41:42 AM7/21/10
to
*That*, I can't help him with!

Wouldn't it be simpler to run the X86 version of Solaris?

Paul Gress

unread,
Jul 21, 2010, 8:43:04 AM7/21/10
to

A google search on Naturetech:

Naturetech 888P is a single UltraSPARCIIi based Solaris workstation that provides high reliability, availability and serviceability features.

Basically it's a Sparc based Laptop.

hadi motamedi

unread,
Jul 23, 2010, 11:52:40 PM7/23/10
to

At last, I wired from formatting that hard disk and so obtained
another one. I formatted it on my Windows machine and then 'newfs' &
'installboot' on Sparc machine from solaris8 install cd. At now, I
have os installed on the new hard disk.
Thank you very much for all of your helps

0 new messages