Discussion:
Setup_install_server from mounted iso file (Solaris 10)
Jim Curran
2005-05-19 15:35:45 UTC
Permalink
Does anyone have a way to build an install directory from CD 1
(Solaris 10, 3/2005) from a mounted ISO file? I'm getting this:

# ./setup_install_server /export0/install/2005_03
ERROR: Install boot image /mnt/Solaris_10/Tools/Boot does not exist
Check that boot image exists, or use [-t] to
specify a valid boot image elsewhere.
# ls -l Boot
lrwxrwxrwx 1 root other 11 Jan 22 22:44 Boot -
../../../s0
What path should I put behind -t ?

Thanks in advance,

Jim



Please check the Links page before posting:
http://groups.yahoo.com/group/solarisx86/links
Post message: ***@yahoogroups.com
UNSUBSCRIBE: solarisx86-***@yahoogroups.com
Juergen Keil
2005-05-19 15:56:50 UTC
Permalink
Post by Jim Curran
Does anyone have a way to build an install directory from CD 1
# ./setup_install_server /export0/install/2005_03
ERROR: Install boot image /mnt/Solaris_10/Tools/Boot does not exist
Check that boot image exists, or use [-t] to
specify a valid boot image elsewhere.
# ls -l Boot
lrwxrwxrwx 1 root other 11 Jan 22 22:44 Boot -
../../../s0
What path should I put behind -t ?
Are you trying to setup an install server for SPARC on X86?
Or vice versa? That doesn't work with CD images, because Solaris
cannot mount UFS slices using the "wrong" byte order. Use the DVD
image instead; with the DVD there's no need to mount the UFS slice
to setup an install server.


If you're trying to setup an X86 install server for X86 clients
(or SPARC server for SPARC client), use the extract_ufs_from_iso.sh
script from this group's file section
<URL:http://groups.yahoo.com/group/solarisx86/files/>, mount the
extracted UFS filesystem to /mnt/s0, and mount the CD1 image as
an HSFS filesystem to /mnt/s2.





Please check the Links page before posting:
http://groups.yahoo.com/group/solarisx86/links
Post message: ***@yahoogroups.com
UNSUBSCRIBE: solarisx86-***@yahoogroups.com
Jim Curran
2005-05-19 17:22:13 UTC
Permalink
This is x86 on x86. Here's what I'm doing:
After burning my 4th coaster from downloaded ISOs, I decided to mount
the ISO files via lofiadm to /mnt. Then I run setup_install_server from
inside the mount directory. Are you saying that the Boot link doesn't
exist on the DVD image?

Thanks for the help,

Jim
Post by Juergen Keil
Are you trying to setup an install server for SPARC on X86?
Or vice versa? That doesn't work with CD images, because Solaris
cannot mount UFS slices using the "wrong" byte order. Use the DVD
image instead; with the DVD there's no need to mount the UFS slice
to setup an install server.
Please check the Links page before posting:
http://groups.yahoo.com/group/solarisx86/links
Post message: ***@yahoogroups.com
UNSUBSCRIBE: solarisx86-***@yahoogroups.com
Juergen Keil
2005-05-19 17:57:14 UTC
Permalink
Post by Jim Curran
Post by Juergen Keil
Are you trying to setup an install server for SPARC on X86?
Or vice versa? That doesn't work with CD images, because Solaris
cannot mount UFS slices using the "wrong" byte order. Use the DVD
image instead; with the DVD there's no need to mount the UFS slice
to setup an install server.
This is x86 on x86.
OK, so there are no UFS byte order issues...
Post by Jim Curran
After burning my 4th coaster from downloaded ISOs, I decided to mount
the ISO files via lofiadm to /mnt. Then I run setup_install_server from
inside the mount directory. Are you saying that the Boot link doesn't
exist on the DVD image?
No.

The symbolic link points to the UFS filesystem that is included
on the CD1. Using a real CD media, the Solaris x86 vold daemon
would mount the ISO9660 filesystem part of CD1 to /cdrom/cdrom0/s2
and the UFS filesystem to /cdrom/cdrom0/s0.

On the DVD all of the Boot stuff is included on the ISO9660/HSFS
filesystem, so you don't have to mount the UFS filesystem.


Problem with the lofi mounted CD is that the lofi device does not
support SunOS disk labels, so all you can mount from the lofi CD1
image is the ISO9660/HSFS filesystem at the start of the image.
There's no device node to mount the UFS filesystem that is at the
end of the CD1 image.

To mount the UFS filesystem from the CD1 image, you must extract it
from the CD1 image into a separate file, attach a lofi device to it,
and mount it.




Please check the Links page before posting:
http://groups.yahoo.com/group/solarisx86/links
Post message: ***@yahoogroups.com
UNSUBSCRIBE: solarisx86-***@yahoogroups.com
Jim Curran
2005-05-19 18:19:25 UTC
Permalink
Thanks Juergen,

I have been working from this link:

http://www.bolthole.com/solaris/mount-cdrom.html

but both tricks to extract the s2 slice from the ISO didn't work for me.
Scanufs finds multiple UFS signatures on the cd1.iso image. Maybe i'm
doing something wrong.

So, are you saying the best option is to get DVD image or do you have
any ideas on extracting the s2 slice?

Thanks,

Jim
Post by Juergen Keil
The symbolic link points to the UFS filesystem that is included
on the CD1. Using a real CD media, the Solaris x86 vold daemon
would mount the ISO9660 filesystem part of CD1 to /cdrom/cdrom0/s2
and the UFS filesystem to /cdrom/cdrom0/s0.
On the DVD all of the Boot stuff is included on the ISO9660/HSFS
filesystem, so you don't have to mount the UFS filesystem.
Problem with the lofi mounted CD is that the lofi device does not
support SunOS disk labels, so all you can mount from the lofi CD1
image is the ISO9660/HSFS filesystem at the start of the image.
There's no device node to mount the UFS filesystem that is at the
end of the CD1 image.
To mount the UFS filesystem from the CD1 image, you must extract it
from the CD1 image into a separate file, attach a lofi device to it,
and mount it.
http://groups.yahoo.com/group/solarisx86/links
Yahoo! Groups Links
Please check the Links page before posting:
http://groups.yahoo.com/group/solarisx86/links
Post message: ***@yahoogroups.com
UNSUBSCRIBE: solarisx86-***@yahoogroups.com
Jim Curran
2005-05-19 19:00:33 UTC
Permalink
Oops - looks like the scanufs method did work. I can now mount the
ufs filesystem. I grabbed the wrong seek offset from the scanufs
output. Creating a mountpoint /s0 allowed
the /mnt/Solaris_10/Tools/Boot symlink to reference the right stuff.

Setup_install_server just exited with success. Onward with cds 2,3 and
4.

Thanks,

Jim

#
# lofiadm
Block Device File
/dev/lofi/1 /export0/tmp/sol-10-GA-x86-2005_03-v1.iso
/dev/lofi/2 /tmp/cd1.s1.img

# mount |egrep ^\/mnt\|\/s0
/mnt on /dev/lofi/1 read
only/setuid/devices/noglobal/maplcase/rr/traildot/dev=2400001 on Thu May
19 14:56:09 2005
/s0 on /dev/lofi/2
read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=2400002 on Thu May 19 14:56:59 2005

# pwd
/mnt/Solaris_10/Tools

# ls -l
total 225
lrwxrwxrwx 1 root other 11 Jan 22 22:44 Boot -
../../../s0
-rwxr-xr-x 2 root bin 66393 Jan 9 23:43 add_install_client
-rwxr-xr-x 2 root sys 1325 Jan 9 23:43 dial
-rwxr-xr-x 2 root bin 19074 Jan 9 23:43 rm_install_client
-rwxr-xr-x 2 root bin 26907 Jan 9 23:43
setup_install_server

# ls Boot
a cdrom etc mnt proc system
var
bin dev kernel opt reconfigure tmp
boot devices lib platform sbin usr

# ./setup_install_server /export0/install/2005_03/
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
Copying Install Boot Image hierarchy...
Install Server setup complete
Thanks Juergen,
http://www.bolthole.com/solaris/mount-cdrom.html
but both tricks to extract the s2 slice from the ISO didn't work for me.
Scanufs finds multiple UFS signatures on the cd1.iso image. Maybe i'm
doing something wrong.
So, are you saying the best option is to get DVD image or do you have
any ideas on extracting the s2 slice?
Thanks,
Jim
Post by Juergen Keil
The symbolic link points to the UFS filesystem that is included
on the CD1. Using a real CD media, the Solaris x86 vold daemon
would mount the ISO9660 filesystem part of CD1 to /cdrom/cdrom0/s2
and the UFS filesystem to /cdrom/cdrom0/s0.
On the DVD all of the Boot stuff is included on the ISO9660/HSFS
filesystem, so you don't have to mount the UFS filesystem.
Problem with the lofi mounted CD is that the lofi device does not
support SunOS disk labels, so all you can mount from the lofi CD1
image is the ISO9660/HSFS filesystem at the start of the image.
There's no device node to mount the UFS filesystem that is at the
end of the CD1 image.
To mount the UFS filesystem from the CD1 image, you must extract it
from the CD1 image into a separate file, attach a lofi device to it,
and mount it.
http://groups.yahoo.com/group/solarisx86/links
Yahoo! Groups Links
http://groups.yahoo.com/group/solarisx86/links
Yahoo! Groups Links
Please check the Links page before posting:
http://groups.yahoo.com/group/solarisx86/links
Post message: ***@yahoogroups.com
UNSUBSCRIBE: solarisx86-***@yahoogroups.com

Loading...