cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
160
Views
2
Helpful
2
Replies

getfw - Error: Extraction Failed

SamUrai
Level 3
Level 3

I'm trying to extract CIMC and BIOS firmware off of HUU ISO but no matter what OS I use Kernel 2.x to 5.x  I always get this error while using ucs-c240m4-huu-3.0.1c.iso  I even tried 4.1 HUU but no avail. I've c240M4 server running CIMC 2.0 version and need to update it to 3.0 first.  

Any idea?

Thanks

 

1 Accepted Solution

Accepted Solutions

Steven Tardy
Cisco Employee
Cisco Employee

What exact steps did you take?
Where did you mount the .iso file?
Did you mount the .iso to /mnt instead of somewhere else?

getfw uses /mnt as scratch storage and wants to create some temporary directories in /mnt.
So you MUST use a directory besides /mnt to mount the .iso.

Did you follow the steps I posted on thread:
https://community.cisco.com/t5/unified-computing-system-discussions/getfw-error-invalid-huu-iso-image/td-p/4261797


Nerdy Details:

(Can skip this if needed.)

How did I know this? I didn't.
But ran into the same error when testing in the lab:

[root@LinuxServer ~]# mkdir extracted
[root@LinuxServer ~]# mount /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
[root@LinuxServer ~]# /mnt/GETFW/getfw -s /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso -d extracted Error: Extraction Failed

Using a little Linux know-how ran `strace` to see what is happening:

[root@LinuxServer ~]# strace -f /mnt/GETFW/getfw -s /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.4r.iso -d extracted

 To see:

..snip..
[pid 10074] execve("/bin/sh", ["sh", "-c", "mkdir -p /mnt/TISO/ /mnt/TEFW /m"...], 0x7ffe8bcb7448 /* 26 vars */) = 0
..snip..

Thought to self: /mnt/ is not a great place to put things, but whatever.

[root@LinuxServer ~]# umount /mnt
[root@LinuxServer ~]# mkdir /mnt/c240m4
[root@LinuxServer ~]# mount /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso /mnt/c240m4/ mount: /dev/loop0 is write-protected, mounting read-only [root@LinuxServer ~]# /mnt/c240m4/GETFW/getfw -s /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso -d extracted FW/s available at 'extracteducs-c240m4-huu-3.0.1c'

\o/

Hope that helps.

View solution in original post

2 Replies 2

Steven Tardy
Cisco Employee
Cisco Employee

What exact steps did you take?
Where did you mount the .iso file?
Did you mount the .iso to /mnt instead of somewhere else?

getfw uses /mnt as scratch storage and wants to create some temporary directories in /mnt.
So you MUST use a directory besides /mnt to mount the .iso.

Did you follow the steps I posted on thread:
https://community.cisco.com/t5/unified-computing-system-discussions/getfw-error-invalid-huu-iso-image/td-p/4261797


Nerdy Details:

(Can skip this if needed.)

How did I know this? I didn't.
But ran into the same error when testing in the lab:

[root@LinuxServer ~]# mkdir extracted
[root@LinuxServer ~]# mount /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso /mnt
mount: /dev/loop0 is write-protected, mounting read-only
[root@LinuxServer ~]# /mnt/GETFW/getfw -s /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso -d extracted Error: Extraction Failed

Using a little Linux know-how ran `strace` to see what is happening:

[root@LinuxServer ~]# strace -f /mnt/GETFW/getfw -s /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.4r.iso -d extracted

 To see:

..snip..
[pid 10074] execve("/bin/sh", ["sh", "-c", "mkdir -p /mnt/TISO/ /mnt/TEFW /m"...], 0x7ffe8bcb7448 /* 26 vars */) = 0
..snip..

Thought to self: /mnt/ is not a great place to put things, but whatever.

[root@LinuxServer ~]# umount /mnt
[root@LinuxServer ~]# mkdir /mnt/c240m4
[root@LinuxServer ~]# mount /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso /mnt/c240m4/ mount: /dev/loop0 is write-protected, mounting read-only [root@LinuxServer ~]# /mnt/c240m4/GETFW/getfw -s /srv/repo/UCS/C-Series/C240/ucs-c240m4-huu-3.0.1c.iso -d extracted FW/s available at 'extracteducs-c240m4-huu-3.0.1c'

\o/

Hope that helps.

SamUrai
Level 3
Level 3

That was it. Thank you!

Review Cisco Networking for a $25 gift card

Review Cisco Networking for a $25 gift card