Sponsored Content
Full Discussion: SUN Solaris Installation
Operating Systems Solaris SUN Solaris Installation Post 68883 by reborg on Thursday 7th of April 2005 07:13:39 PM
Old 04-07-2005
There is no need to get a cd/dvd for you 210. Jumpstart installation is really easy to get going for sparc systems.

If you are loopback mounting an image of the Solaris CD 1 you will not be able to see the second slice (s1), or if you have an incorrectly burned cd. s1 is a UFS filesystem on the cd.

You can either burn another copy or using the iso of disk one do the following:

(1) Get a copy of the VTOC (Virtual Table of Contents) from the ISO image:

# dd if=sol-9-u1-sparc-v1.iso of=vtoc bs=512 count=1

1+0 records in
1+0 records out


(2) Now find where Slice 1 starts in the image and how long it is. The starting cylinder for slice 1 is located at offset 452 (decimal) into the VTOC; the length in blocks is at offset 456, with both being 4 bytes long.

# od -D -j 452 -N 8 < vtoc
0000000 0000000888 0000546560
0000010


Slice 1 starts on cylinder 888, and is 546,560 blocks long. The CDs for the Solaris OS always have a fixed 640 blocks per cylinder, which means that one can calculate the starting block of slice 1 using the following:

# echo 888*640 | bc
568320


Slice one starts at block 568320 and is 546560 blocks long.

(3) Copy slice one into a separate file:

# dd if=sol-9-u1-sparc-v1.iso of=sol-9-u1-sparc-v1-s1.iso \
bs=512 skip=568320 count=546560

546560+0 records in
546560+0 records out


(4) Mount both slice 0 and slice 1. The setup_install_server script expects to find these two mounted beside each other, with slice 1 in a directory called "s1"
# mkdir /cd
# mkdir /cd/s0
# mkdir /cd/s1
# lofiadm -a /path_to/sol-9-u1-sparc-v1.iso
/dev/lofi/1
# lofiadm -a /path_to/sol-9-u1-sparc-v1-s1.iso
/dev/lofi/2
# mount -F hsfs -o ro /dev/lofi/1 /cd/s0
# mount -F ufs -o ro /dev/lofi/2 /cd/s1
# cd /cd/s0/Solaris_9/Tools/
# ./setup_install_server /destination_dir
 

10 More Discussions You Might Find Interesting

1. Solaris

boot problem in Installation i86 sun solaris

Hello everybody, I installed sun solaris i86 , the programme installation install the "Mini Root" and after that he doing shutdown. the camputer coming up and he can't boot. how i can to resuled this problem ??? Thenk you in advence..... (2 Replies)
Discussion started by: yanly
2 Replies

2. Solaris

Sun solaris Installation Procedure

hi, can any body tell me the exact installation of the Sun solaris........ (5 Replies)
Discussion started by: devotedsinner
5 Replies

3. Solaris

Needs help for HP OV Nodelock License Installation on SUN Solaris

Hi, I need help from Solaris and HP Openview expert. Can someone please tell me how to install the new Nodelock License in my SUN machine which is running on Solaris 7 and HP OV NNM 6.X 250? I got the new Nodelock License from HP but unfortunately I could not install it as I am not quite... (0 Replies)
Discussion started by: gkr
0 Replies

4. Solaris

How to verify Sun Solaris installation

Does anybody have an idea, how to verify Sun Solaris installation? (3 Replies)
Discussion started by: agarwal
3 Replies

5. Solaris

Assistance in the installation SUN Solaris 10

You can help me in order to install SUN Solaris 10 Thanks (2 Replies)
Discussion started by: insert
2 Replies

6. Solaris

Sun Solaris Installation

Hi, I am newbie in solaris administration. Can i get site/DOC for below tasks? 1.Solaris Operating System Installation 2.Creation of Mount points 3.Creation of Users and Groups Complete guide from scratch for new server.:b: Regards, Vinodh' Kumar (4 Replies)
Discussion started by: vino_hymi
4 Replies

7. Solaris

Installation of IBM Cognos 8 BI on Sun solaris operating system

Hi All, I am newbie to Sun solaris operating system. I am trying to install IBM Cognos 8 on it. However it can't execute the installation path when i insert to CD when i double click it. Anyone have any idea on installing it? or any documentation for me to view? (0 Replies)
Discussion started by: lkyow
0 Replies

8. Solaris

SUN SPARC rebooting problem, after Solaris 10 installation

Hi All, I had install the solaris 10 into the SUNFIRE V890 server, after installed, it keep rebooting. I wish to enter the OK mode again, and install back the Solaris 10. i had try the "break" button and "stop+A" button, but all fail. kindly advice... (4 Replies)
Discussion started by: SmartAntz
4 Replies

9. Solaris

Sun Solaris SPARC Installation Suggetion plaese

Hello Team, I am new to Sun Solaris. I badly need some help, how to install solaris sparc 8 on simics 3.0.31. I am using my Acer laptop with 320 GB HD, 8 GB of RAM, Intel Core i5 processor 430M. Windows 7 already installed on it. 1.Can i make Dual partions on this laptop with Win7 and... (7 Replies)
Discussion started by: faseeh
7 Replies

10. Solaris

Help with Solaris 8 10/00 Installation on Sun Fire V490 Server

cat note Hi Sun Solaris Experts, When I try to install Solaris 8 10/00 OS via the Solaris 8 Installation Disk on our Sun Fire V490 Server using the command , I get: boot: cannot open kernel/sparcv9/unix which means it can't find the unix kernel file on the installation disk . By the way, I... (5 Replies)
Discussion started by: ssabet
5 Replies
lofiadm(1M)						  System Administration Commands					       lofiadm(1M)

NAME
lofiadm - administer files available as block devices through lofi SYNOPSIS
/usr/sbin/lofiadm -a file [device] /usr/sbin/lofiadm -d file | device /usr/sbin/lofiadm [ file | device] DESCRIPTION
lofiadm administers lofi(7D), the loopback file driver. lofi(7D) allows a file to be associated with a block device. That file can then be accessed through the block device. This is useful when the file contains an image of some filesystem (such as a floppy or CD-ROM image), because the block device can then be used with the normal system utilities for mounting, checking or repairing filesystems. See fsck(1M) and mount(1M). Use lofiadm to add a file as a loopback device, remove such an association, or print information about the current associations. OPTIONS
The following options are supported: -a file [deviceAdd file as a block device. If device is not specified, an available device is picked. If device is specified, lofiadm attempts to assign it to file. device must be available or lofiadm will fail. The ability to specify a device is provided for use in scripts that wish to re-establish a particular set of associations. -d file | deviceRemove an association by file or device name, if the associated block device is not busy, and deallocates the block device. OPERANDS
The following operands are supported: file Print the block device associated with file. device Print the file name associated with the block device device. Without arguments, print a list of the current associations. Filenames must be valid absolute pathnames. When a file is added, it is opened for reading or writing by root. Any restrictions apply (such as restricted root access over NFS). The file is held open until the association is removed. It is not actually accessed until the block device is used, so it will never be written to if the block device is only opened read-only. EXAMPLES
Example 1: Mounting an Existing CD-ROM Image You should ensure that Solaris understands the image before creating the CD. lofi allows you to mount the image and see if it works. This example mounts an existing CD-ROM image (sparc.iso), of the Red Hat 6.0 CD which was downloaded from the Internet. It was created with the mkisofs utility from the Internet. Use lofiadm to attach a block device to it: # lofiadm -a /home/mike_s/RH6.0/sparc.iso /dev/lofi/1 lofiadm picks the device and prints the device name to the standard output. You can run lofiadm again by issuing the following command: # lofiadm Block Device File /dev/lofi/1 /home/mike_s/RH6.0/sparc.iso Or, you can give it one name and ask for the other, by issuing the following command: # lofiadm /dev/lofi/1 /home/mike_s/RH6.0/sparc.iso Use the mount command to mount the image: # mount -F hsfs -o ro /dev/lofi/1 /mnt Check to ensure that Solaris understands the image: # df -k /mnt Filesystem kbytes used avail capacity Mounted on /dev/lofi/1 512418 512418 0 100% /mnt # ls /mnt ./ RedHat/ doc/ ls-lR rr_moved/ ../ TRANS.TBL dosutils/ ls-lR.gz sbin@ .buildlog bin@ etc@ misc/ tmp/ COPYING boot/ images/ mnt/ usr@ README boot.cat* kernels/ modules/ RPM-PGP-KEY dev@ lib@ proc/ Solaris can mount the CD-ROM image, and understand the filenames. The image was created properly, and you can now create the CD-ROM with confidence. As a final step, unmount and detach the images: # umount /mnt # lofiadm -d /dev/lofi/1 # lofiadm Block Device File Example 2: Mounting a Floppy Image This is similar to Example 1. Using lofi to help you mount files that contain floppy images is helpful if a floppy disk contains a file that you need, but the machine which you are on does not have a floppy drive. It is also helpful if you do not want to take the time to use the dd command to copy the image to a floppy. This is an example of getting to MDB floppy for Solaris on an x86 platform: # lofiadm -a /export/s28/MDB_s28x_wos/latest/boot.3 /dev/lofi/1 # mount -F pcfs /dev/lofi/1 /mnt # ls /mnt ./ COMMENT.BAT* RC.D/ SOLARIS.MAP* ../ IDENT* REPLACE.BAT* X/ APPEND.BAT* MAKEDIR.BAT* SOLARIS/ # umount /mnt # lofiadm -d /export/s28/MDB_s28x_wos/latest/boot.3 Example 3: Making a UFS Filesystem on a File Making a UFS filesystm on a file can be useful, particularly if a test suite requires a scratch filesystem. It can be painful (or annoying) to have to re-partition a disk just for the test suite, but you do not have to. You can newfs a file with lofi Create the file: # mkfile 35m /export/home/test Attach it to a block device. You also get the character device that newfs requires, so newfs that: # lofiadm -a /export/home/test /dev/lofi/1 # newfs /dev/rlofi/1 newfs: construct a new file system /dev/rlofi/1: (y/n)? y /dev/rlofi/1: 71638 sectors in 119 cylinders of 1 tracks, 602 sectors 35.0MB in 8 cyl groups (16 c/g, 4.70MB/g, 2240 i/g) super-block backups (for fsck -F ufs -o b=#) at: 32, 9664, 19296, 28928, 38560, 48192, 57824, 67456, Note that ufs might not be able to use the entire file. Mount and use the filesystem: # mount /dev/lofi/1 /mnt # df -k /mnt Filesystem kbytes used avail capacity Mounted on /dev/lofi/1 33455 9 30101 1% /mnt # ls /mnt ./ ../ lost+found/ # umount /mnt # lofiadm -d /dev/lofi/1 Example 4: Creating a PC (FAT) File System on a Unix File The following series of commands creates a FAT file system on a Unix file. The file is associated with a block device created by lofiadm. # mkfile 10M /export/test/testfs # lofiadm -a /export/test testfs /dev/lofi/1 Note use of rlofi, not lofi, in following command. # mkfs -F pcfs -o nofdisk,size=20480 /dev/rlofi/1 Construct a new FAT file system on /dev/rlofi/1: (y/n)? y # mount -F pcfs /dev/lofi/1 /mnt # cd /mnt # df -k . Filesystem kbytes used avail capacity Mounted on /dev/lofi/1 10142 0 10142 0% /mnt ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of lofiadm: LC_CTYPE, LC_MESSAGES and NLSPATH. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ |ATTRIBUTE TYPE |ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
fsck(1M), mount(1M), mount_ufs(1M), newfs(1M), attributes(5), lofi(7D), lofs(7FS) NOTES
Just as you would not directly access a disk device that has mounted file systems, you should not access a file associated with a block device except through the lofi file driver. It might also be appropriate to ensure that the file has appropriate permissions to prevent such access. Associations are not persistant across reboots. A script can be used to re-establish them if required. The abilities of lofiadm, and who can use them, are controlled by the permissions of /dev/lofictl. Read-access allows query operations, such as listing all the associations. Write-access is required to do any state-changing operations, like adding an association. As shipped, /dev/lofictl is owned by root, in group sys, and mode 0644, so all users can do query operations but only root can change any- thing. The administrator can give users write-access, allowing them to add or delete associations, but that is very likely a security hole and should probably only be given to a trusted group. When mounting a filesystem image, take care to use appropriate mount options. In particular, the nosuid mount option might be appropriate for UFS images whose origin is unknown. Also, some options might not be useful or appropriate, like logging or forcedirectio for UFS. For compatibility purposes, a raw device is also exported along with the block device. For example, newfs(1M) requires one. The output of lofiadm (without arguments) might change in future releases. SunOS 5.10 17 Nov 1999 lofiadm(1M)
All times are GMT -4. The time now is 06:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy