升級 ESXi USB boot disk 遇到 Directory not empty

紅寶鐵軌客
Join to follow...
Follow/Unfollow Writer: 紅寶鐵軌客
By following, you’ll receive notifications when this author publishes new articles.
Don't wait! Sign up to follow this writer.
WriterShelf is a privacy-oriented writing platform. Unleash the power of your voice. It's free!
Sign up. Join WriterShelf now! Already a member. Login to WriterShelf.
寫程式中、折磨中、享受中 ......
20   0  
·
2023/12/28
·
2 mins read


我有一台很老的 ESXi 5.5 伺服器,用 USB 當 boot disk,很舊很舊了,但是還能用,只是版本真的太舊了,很多程式都不支援了,必須升級到 6.0,只是沒想到升級時踩到一個大坑。

長話短說,ESXi 5.5 USB boot 升級到 6.0 時可能會碰到下面這個錯誤:

"OSError: [Errno 39] Directory not empty: 'vmfs/volumes/xxx/System Volume Information'

造成的原因是:

這個 USB boot disk 曾經插在 Windows OS 上,所以 Windows 這孫猴子在上面留了個 'System Volume Information' 檔案夾,然後 ESXi 升級就報錯,其實,不只 Windows 會留下到此一遊,Dropbox 等等一干 Windows App 都會亂尿尿,真是很討厭。

解決辦法:

  1. 把這個 USB boot disk 插在 Linux 上,我是用 Ubuntu 
  2. Files 檔案管理會跳出三個硬碟,把它們的 'System Volume Information' 檔案夾、.dropbox.device、***.lnk 這些檔 shift-delete 永久殺掉。

這樣問題就解決了。

我發現,其實 ESXi 用 USB boot ,還真是很方便,我就是現把原來的 boot disk 複製後再升級的,還好是這樣,不然升級到一半報錯,就只能重灌了。

另外,複製 ESXi Boot Disk 務必用 Linux 的 DD,我因為手邊臨時沒有 Linux,就用 Windows 'USB image tool' 來複製,很簡單也很可靠的程式,結果浪費了我一天,因為 Win10 會自己改 partition 編號,你要在 option 裡選 "Fix GPT after Restore (prevents partition re-enumeration)"...

ˊˊ這件事讓我學到一點,在 ESXi 或是 Linux 的世界裡,所有的設備最好離 Windows 遠一點,因為你永遠不ˋ知道 Windows 這孫猴子會在上面留下什麼"到此一遊。"



WriterShelf™ is a unique multiple pen name blogging and forum platform. Protect relationships and your privacy. Take your writing in new directions. ** Join WriterShelf**
WriterShelf™ is an open writing platform. The views, information and opinions in this article are those of the author.


Article info

分類於:
標籤:
合計:413字


Share this article:
About the Author

很久以前就是個「寫程式的」,其實,什麼程式都不熟⋯⋯
就,這會一點點,那會一點點⋯⋯




Join the discussion now!
Don't wait! Sign up to join the discussion.
WriterShelf is a privacy-oriented writing platform. Unleash the power of your voice. It's free!
Sign up. Join WriterShelf now! Already a member. Login to WriterShelf.