New_boy

A bit of that and the other


« windows on solaris... | Main | SPOT aka small progr... »
Κυριακή Φεβ 04, 2007

How to mount your supplemental cd that comes for your servers.

There was a question of how one could view the changelog of the bios/ipmi for the

supplemental cd's we provide by avoiding burning the cd and dropping to a dos prompt.
 

Here is the quick guide with duplicate of the troubleshooting guide.

 It applies for ultra20,ultra 40,x2100,x2200 (normal and M2 versions)

go to sun.com on the download page, login and accept the agreement
You need to accept the agreement to give you the proper link,
right click save link location

Then go to your terminal and do

/usr/sfw/bin/wget " link_location" -O blabla.iso
It will download to your $pwd that you run the command  from.

va64-v20zc-prg06<root># lofiadm -a /export/supp.cds/u40_1.4a.iso
/dev/lofi/1

va64-v20zc-prg06<root># mount -F hsfs /dev/lofi/1 /mnt

va64-v20zc-prg06<root># cp /mnt/boot.img /export/u40_1.4a.img

va64-v20zc-prg06<root># lofiadm -a /export/u40_1.4a.img
/dev/lofi/2

va64-v20zc-prg06<root># umount /mnt

va64-v20zc-prg06<root># mount -F pcfs -o ro /dev/lofi/2:c /mnt

va64-v20zc-prg06<root># more /mnt/flash/bios/latest/changes.txt
--------------------------<< Release >>---------------------------------
v1.40   - Date  : 09/15/2006
>       - Checksum      : 0xD109 (BIOS140.ROM)
       - Checksum      : 0x5C8B (BIOS140.WPH) 

 

Now the troubleshooting part

 
 va64-v20zc-prg06<root># lofiadm
Block Device             File
/dev/lofi/1              /export/u40_1.4a.iso
/dev/lofi/2              /export/supp.img/u40_1.4a.img

Lets check the file now

va64-v20zc-prg06<root># file u40_1.4a.img
u40_1.4a.img:   DOS executable (COM)

va64-v20zc-prg06<root># fstyp -v u40_1.4a.img
unknown_fstyp (no matches)

Conflicting information lets see what strings tells us.

va64-v20zc-prg06<root># strings u40_1.4a.img | grep -i torito
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION
EL TORITO SPECIFICATION

Ok so file was correct and it is a el torito dos disk lets go

va64-v20zc-prg06<root>#  mount -F pcfs /dev/lofi/2 /mnt
mount: I/O error

<snip>
>va64-v20zc-prg06<root># truss  mount -F pcfs /dev/lofi/2 /mnt
execve("/sbin/mount", 0x08047E50, 0x08047E68)  argc = 5
.......
sigaction(SIGINT, 0x08047D10, 0x08047D90)       = 0
mount("/dev/lofi/2", "/mnt", MS_DATA|MS_OPTIONSTR, "pcfs", 0x08063640,
12, 0x080631C4, 1024) Err#5 EIO
mountwrite(2, " m o u n t", 5)                  = 5
: write(2, " :  ", 2)                           = 2
I/O errorwrite(2, " I / O   e r r o r", 9)              = 9

write(2, "\n", 1)                               = 1
_exit(32)
</snip>

something does not seem right.

<snip>
va64-v20zc-prg06<root># mdb u40_1.4a.img <<EOF
> 0,10000::dump -g 1
> EOF
      \/  1  2  3  4  5  6  7   8  9  a  b  c  d  e  f  v123456789abcdef
0000:  eb 25 45 53 55 4b 02 00  03 00 04 00 00 00 28 43  .%ESUK........(C
0010:  29 32 30 30 34 20 45 55  52 4f 53 4f 46 54 20 28  )2004 EUROSOFT (
0020:  55 4b 29 20 4c 54 44 fa  33 c0 8e c0 8e d0 bc 00  UK) LTD.3.......
0030:  7c fb b8 c0 07 8e d8 bb  00 06 8b 36 08 00 b8 01  |..........6....
0040:  02 8b ce ba 80 00 bf 03  00 53 56 57 cd 13 5f 5e  .........SVW.._^
0050:  5b 73 09 33 c0 cd 13 4f  75 e4 eb 12 3b 36 0a 00  [s.3...Ou...;6..
0060:  74 07 46 81 c3 00 02 eb  d5 ea 00 00 60 00 be 83  t.F.........`...
0070:  00 8a 04 0a c0 74 0a b4  0e bb 07 00 cd 10 46 eb  .....t........F.
0080:  f0 eb fe 44 49 53 4b 20  52 45 41 44 20 45 52 52  ...DISK READ ERR
0090:  4f 52 00 00 00 00 00 00  00 00 00 00 00 00 00 00  OR..............
00a0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
00c0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
00d0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
00e0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
00f0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
0100:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
0110:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................

</snip>

Aha partition header
so the working cmd should look like

va64-v20zc-prg06<root># mount -F pcfs /dev/lofi/2:c /mnt
va64-v20zc-prg06<root># ls /mnt
COMMAND.COM   IBMDOS.COM    config.sys    psfru         wipedisk
DOS           OPENDOS.386   diags         readme.1st
IBMBIO.COM    autoexec.bat  flash         readme.txt


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

Today's Page Hits: 33