mac下安装bochs,使用bximage创建磁盘时 报错:could not write disk image

人生处处不是坑啊。真的是打死不想当运维。。。

这次这个坑是我们用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学习-安装配置篇/
对,我真的就是环境装不好,学习的心都没有了,所以,不当运维,不当运维,不当运维。。。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

五月的天气

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值