IOSの更新でハマった

## 初期化方法

```sh
en
erase startup-config
reload
```

## flash確認

```sh
Switch#dir flash:
Directory of flash:/

    2  -rwx    12106358   Mar 1 1993 00:22:16 +00:00  c3750-ipbasek9-mz.122-55.SE9.bin
    3  -rwx        1156   Mar 1 1993 00:01:57 +00:00  vlan.dat
    4  -rwx        1048   Mar 1 1993 00:01:40 +00:00  multiple-fs
    5  drwx          64  Mar 27 2023 03:14:42 +00:00  crashinfo_ext
    9  drwx          64   Mar 1 1993 00:00:44 +00:00  crashinfo

15998976 bytes total (3596800 bytes free)
```

```sh:削除方法
Switch#delete flash:c3750-ipbasek9-mz.122-55.SE9.bin
Delete filename [c3750-ipbasek9-mz.122-55.SE9.bin]? 
Delete flash:c3750-ipbasek9-mz.122-55.SE9.bin? [confirm]
```

```sh:削除できたことを確認
Switch#dir flash:
Directory of flash:/

    3  -rwx        1156   Mar 1 1993 00:01:57 +00:00  vlan.dat
    4  -rwx        1048   Mar 1 1993 00:01:40 +00:00  multiple-fs
    5  drwx          64  Mar 27 2023 03:14:42 +00:00  crashinfo_ext
    9  drwx          64   Mar 1 1993 00:00:44 +00:00  crashinfo

15998976 bytes total (15703552 bytes free)
```

```sh:
Switch#copy tftp: flash:
Address or name of remote host []? 192.168.0.2
Source filename []? c3750-ipbasek9-mz.122-55.SE12.bin
Destination filename [c3750-ipbasek9-mz.122-55.SE12.bin]? 
Accessing tftp://192.168.0.2/c3750-ipbasek9-mz.122-55.SE12.bin...
Loading c3750-ipbasek9-mz.122-55.SE12.bin from 192.168.0.2 (via Vlan1): !OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!OO!O!OO!OO!OO!OOO!OO!OO!OO!OO!OO!O!OO!OO!OO!OO!OO!OO!OO!OO!OOO!OO!O!OO!OO!OO!OO!O
[OK - 12111413 bytes]

12111413 bytes copied in 273.997 secs (44203 bytes/sec)
```

* 5分ほどで転送できた。

```sh:受信できたことを確認
Switch#dir flash:
Directory of flash:/

    2  -rwx    12111413   Mar 1 1993 00:14:30 +00:00  c3750-ipbasek9-mz.122-55.SE12.bin
    3  -rwx        1156   Mar 1 1993 00:01:57 +00:00  vlan.dat
    4  -rwx        1048   Mar 1 1993 00:01:40 +00:00  multiple-fs
    5  drwx          64  Mar 27 2023 03:14:42 +00:00  crashinfo_ext
    9  drwx          64   Mar 1 1993 00:00:44 +00:00  crashinfo

15998976 bytes total (3591680 bytes free)
```




## IOSのバックアップ

```bash:
Switch#copy flash: tftp:
(略)
```

tftpサーバにIOSをputする時、

* tftpサーバ上に既に対象のファイルが存在し
* 書き込み権限が付与

されていないとput出来なかったのにハマった。

# tftpからflashにIOS転送失敗例

## Transfer aborted

```bash:
Switch#copy tftp: flash:
Address or name of remote host []? 192.168.0.2
Source filename []? c3750-ipbasek9-mz.122-55.SE9.bin
Destination filename [c3750-ipbasek9-mz.122-55.SE9.bin]?
Accessing tftp://192.168.0.2/c3750-ipbasek9-mz.122-55.SE9.bin...
Loading c3750-ipbasek9-mz.122-55.SE9.bin from 192.168.0.2 (via Vlan31): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!OOOOOOOOOOOO!OOOOOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOO!!!!!!!OOOO!!!!!!!!!!!!!OOOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOOO!!!!!!!!!!!!!OOOOOO!!!!!!!!!!!!!OOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOO!!!!OOOOOOOO!OOOOOOOOOO!OOOO!!!!!!!!!!!OOOOOOOOO!!!!!!!!!!!!OO!O!!!!!!!!!!!!OOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!O!!!OOOOOOOOOOOOO!!!!!!!!!!!!
%Error reading tftp://192.168.0.2/c3750-ipbasek9-mz.122-55.SE9.bin (Transfer aborted)
```


## No space left on device

```bash:
Switch#copy tftp: flash:
Address or name of remote host [192.168.0.2]?
Source filename [c3750-ipbasek9-mz.122-55.SE9.bin]?
Destination filename [c3750-ipbasek9-mz.122-55.SE9.bin]?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!!!!!!!!!OOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOOOOOOO!OOOOO!!!!!!!!!!!!!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOOOOOO!OOOOOOOOOOOOOOOO!OO!!!!OOO!OOOO!!!!!!!!!!!!OOOO!O!!!!!!!!!!!!OOOO!!!!!!!!!!!!!OOOOOO!!!!!!!!!!!!!OOOOOOOO!!!!!!!!!!!!
%Error writing flash:/c3750-ipbasek9-mz.122-55.SE9.bin (No space left on device)
```

> OOOOOOOOOO!OOOOO!!!!!!!!!!!!!OOOOOOOOOOOOOOOOOOOO

とかなる。

----

# 空き領域の確保

## cd

```bash:ディレクトリの存在を確認
Switch#show flash:

Directory of flash:/

    2  -rwx         616   Mar 1 1993 00:09:20 +00:00  vlan.dat
    5  drwx         192   Mar 1 1993 00:15:45 +00:00  c3750-ipbase-mz.122-25.SEB1

15998976 bytes total (8891904 bytes free)
```

15MB中の8MBが空き領域。
ここに12MBのISOを置くの無理だろ・・・

```bash:dirでも一緒
Switch#dir flash:c3750-ipbase-mz.122-25.SEB1
```

```bash:cd
Switch#cd c3750-ipbase-mz.122-25.SEB1
Switch#dir
Directory of flash:/c3750-ipbase-mz.122-25.SEB1/

    6  -rwx     5507235   Mar 1 1993 00:14:59 +00:00  c3750-ipbase-mz.122-25.SEB1.bin
    7  drwx        4032   Mar 1 1993 00:15:19 +00:00  html
  362  -rwx         579   Mar 1 1993 00:15:45 +00:00  info

15998976 bytes total (8891904 bytes free)
```

## flash:の中を再帰的に消す

`[confirm]`はENTER押しっぱなしで良いです。

```bash:flashの中を再帰的に消す方法
Switch#delete /recursive flash:
Delete filename [/c3750-ipbase-mz.122-25.SEB1/]? /
Delete flash:/c3750-ipbase-mz.122-25.SEB1/c3750-ipbase-mz.122-25.SEB1.bin? [confirm]
Examine files in directory flash:/c3750-ipbase-mz.122-25.SEB1/html? [confirm]
Delete flash:/c3750-ipbase-mz.122-25.SEB1/html/combo.js? [confirm]
(略)
Switch#
```

### show flash

```bash:
Switch#show flash

Directory of flash:/

    2  -rwx         616   Mar 1 1993 00:09:20 +00:00  vlan.dat

15998976 bytes total (15996928 bytes free)
```

# 空き容量確保したので再度転送

```bash:
Switch#copy tftp: flash:
Address or name of remote host []? 192.168.0.2
Source filename []? c3750-ipbasek9-mz.122-55.SE9.bin
Destination filename [c3750-ipbasek9-mz.122-55.SE9.bin]?
Accessing tftp://192.168.0.2/c3750-ipbasek9-mz.122-55.SE9.bin...
Loading c3750-ipbasek9-mz.122-55.SE9.bin from 192.168.0.2 (via Vlan31): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 12106358 bytes]

12106358 bytes copied in 266.481 secs (45430 bytes/sec)
```

## 確認


```bash:flashの中を確認
Switch#dir flash:
Directory of flash:/

    2  -rwx         616   Mar 1 1993 00:09:20 +00:00  vlan.dat
    3  -rwx    12106358   Mar 1 1993 00:55:17 +00:00  c3750-ipbasek9-mz.122-55.SE9.bin

15998976 bytes total (3890176 bytes free)
```

## BOOT path-list削除

```bash:BOOT&nbsp;path-list値確認
Switch#show boot
BOOT path-list      : flash:c3750-ipbase-mz.122-25.SEB1/c3750-ipbase-mz.122-25.SEB1.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
```

```bash:BOOT&nbsp;path-list値削除
Switch#conf terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#no boot system
Switch(config)#^Z
Switch#show boot
BOOT path-list      :
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Switch#
```

## reload

```bash:reload
Switch#reload

System configuration has been modified. Save? [yes/no]: yes
Building configuration...
[OK]
Proceed with reload? [confirm]
```

```bash:シリアル接続の出力
01:00:31: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
Base ethernet MAC Address: xx:xx:xx:xx:xx:xx
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...
flashfs[0]: 4 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 12110848
flashfs[0]: Bytes available: 3888128
flashfs[0]: flashfs fsck took 10 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs) installed, fsid: 3
done.
Loading "flash:/c3750-ipbasek9-mz.122-55.SE9.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(略)
File "flash:/c3750-ipbasek9-mz.122-55.SE9.bin" uncompressed and installed, entry point: 0x1000000
executing...

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(55)SE9, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Mon 03-Mar-14 22:44 by prod_rel_team
Image text-base: 0x01000000, data-base: 0x02D00000

Initializing flashfs...

flashfs[1]: 4 files, 1 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 15998976
flashfs[1]: Bytes used: 12110848
flashfs[1]: Bytes available: 3888128
flashfs[1]: flashfs fsck took 1 seconds.
(略)
```


新しいIOSで起動することを確認。