mac下安裝bochs,使用bximage建立磁碟時 報錯:could not write disk image
阿新 • • 發佈:2018-11-11
人生處處不是坑啊。真的是打死不想當運維。。。
這次這個坑是我們用bochs下的bximage建立磁碟的時候:
$ bximage ======================================================================== bximage Disk Image Creation / Conversion / Resize and Commit Tool for Bochs $Id: bximage.cc 12690 2015-03-20 18:01:52Z vruppert $ ======================================================================== 1. Create new floppy or hard disk image 2. Convert hard disk image to other format (mode) 3. Resize hard disk image 4. Commit 'undoable' redolog to base image 5. Disk image info 0. Quit Please choose one [0] 1 Create image Do you want to create a floppy disk image or a hard disk image? Please type hd or fd. [hd] hd What kind of image should I create? Please type flat, sparse, growing, vpc or vmware4. [flat] flat Enter the hard disk size in megabytes, between 10 and 8257535 [10] What should be the name of the image? [c.img] hd10m.img Creating hard disk image 'hd10m.img' with CHS=20/16/63 ERROR: flat file is not writable
注意最後一句ERROR: flat file is not writable
報錯,解決方法,在第一句bximage前面加上sudo
報錯二:Issue 2: install: cannot stat ./bochsdbg: No such file or directory
Solution: #cp bochs bochsdbg
另外,感謝一個部落格,沒有它,我可能已經放棄這本書的學習了吧。。。
http://imushan.com/2018/07/11/os/Bochs學習-安裝配置篇/
對,我真的就是環境裝不好,學習的心都沒有了,所以,不當運維,不當運維,不當運維。。。