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.
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 - 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
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'
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.
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
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
>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[_]
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
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
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.
> 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
Wouldn't it be simpler to run the X86 version of Solaris?
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.
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