orang's 一個作業系統 主機win7 64位,虛擬機器LINUX時的一些注意事項

來源:互聯網
上載者:User

標籤:

主機64位windows7 虛擬機器Debian 8 64位

 

1、vbox虛擬機器linux掛載windows檔案夾64位系統

  mount -t vboxsf /共用的windows目錄名 /linux下裝備要掛載的目錄名

  mount -o loop 要掛載的檔案名稱 /linux下的目錄名

  cp 準備複製的檔案名稱 /用mount -o loop 掛載的目錄名

  umount /用mount -o loop 掛載的目錄名   ;取消掛載

 

2、debianLinux :mount時出現檔案系統有問題時解決方案

      Sudo apt-get install gcc make

   Sudo apt-get install linux-headers-amd64

   sudo apt-get install dkms       

       再進入:VBOXADDITONS光碟機執行sh  .run結尾的檔案

 

3、掛載映像檔案到相應目錄

  mount -o loop pm.img /mnt/p

  cp pmtest1.com /mnt/p

  umount /mnt/p

 

4、

  nasm -f elf -o f.o f.asm

  gcc -c -m32 -o f1.o f1.c

  d -m elf_i386 -s -o ff1 f.o f1.o\ 

  使用以上命令時,發現使用-m32參數後,編譯提示錯誤,如下:

  _x86_64 elf_i386 i386linux elf_l1om elf_k1om i386pep i386pecollect2: error: ld returned 1 exit status

以下需要連網更新

  首先要開啟64位系統對32位的支援

  第一步:確認64為架構的核心

  dpkg --print-architecture 輸出: adm64

  說明已擁有64位架構核心。

  第二步:確認開啟了多架構支援功能

  dpkg --print-foreign-architectures 輸出: i386

  說明已開啟,如果沒有需要手動開啟

  開啟多架構支援

  sudo dpkg --add-architecture  i386

  sudo apt -get update

  sudo apt-get dist-upgrade

  如此這般你就擁有了64位系統對32位的支援

  其次是安裝gcc multilab

   apt-get install gcc-multilib g++-multilib  

 

5、在做boot.bin 裝入loader.bin時,先在BOCHS下運行FREEDOS格式化BOOT.IMG檔案,然後在LINUX下複製LOADER.BIN到映像檔案,然後再在WINDOWS command 命令列下,用DD把BOOT.BIN複製到映像檔案,步驟不要錯要不然BOCHS運行會出現問題

orang's 一個作業系統 主機win7 64位,虛擬機器LINUX時的一些注意事項

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.