HanG321 Blog
Be Shine, Be Smile, Be Wild
  • Home
  • Blog
    • 好文閱讀 readings
    • 生活記事 diary
    • 時事評論 commentary
    • 科技資訊 technology
    • 電腦編程 programming
    • 金融財經 finance
    • 音樂電影 music/movie
  • About

Raw Disk with VirtualBox, Win7 host, ubuntu guest

November 22, 2009|virtualbox rawdisk|科技資訊

reference:

http://virtualization.sysprobs.com/access-physical-disk-virtualbox-desktop-virtualization-software
http://vbox.innotek.de/pipermail/vbox-users/2009-August/006868.html
http://ubuntuforums.org/showthread.php?t=951588
http://www.supergrubdisk.org/w/index.php5?title=Howto_Boot_Linux_only

Background:

Host: Windows 7 Ultimate 64 bit
Guest: ubunut 9.04 64 bit
VirtualBox: 3.0.8 (someone report 3.0.10 fail to access raw disk,maybe fix on .11/.12)
Harddisk: 4 virtual disks on LSI 8344ELP RAID controller

Disk /dev/sda: 42.9 GB, 42949410816 bytes
Disk /dev/sdb: 64.4 GB, 64424509440 bytes
Disk /dev/sdc: 763.7 GB, 763726135296 bytes
Disk /dev/sdd: 85.8 GB, 85899214848 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5220 41929618+ 7 HPFS/NTFS
/dev/sdb1 1 7832 62910508+ 7 HPFS/NTFS
/dev/sdc1 2 92850 745809592+ f W95 Ext’d (LBA)
/dev/sdc5 2 84853 681573658+ 7 HPFS/NTFS
/dev/sdc6 84854 92850 64235871 7 HPFS/NTFS
/dev/sdd1 1 10013 80429391 83 Linux
/dev/sdd2 10014 10443 3453975 5 Extended
/dev/sdd5 10014 10443 3453943+ 82 Linux swap / Solaris

Create virtual disk for VirtualBox (VB)

– Manual, default at C:\Program Files\Sun\VirtualBox\doc, section 9.10 Using a raw host hard disk from a guest
– list all drive to ensure it drivename, e.g. PhysicalDrive[#|0,1,2,3]

C:\Program Files\Sun\VirtualBox>vboxmanage internalcommands listpartitions -rawd
isk \\.\PhysicalDrive0

VirtualBox Command Line Management Interface Version 3.0.8
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0x07 0 /1 /1 1023/254/63 40946 63

– create rawdisk, e.g linuxhost.vmdk, winxp.vmdk…. , mkdir first if required.
(for me, I need to create all 4 drives, don’t know why, I expected only 0,3)

C:\Program Files\Sun\VirtualBox>vboxmanage internalcommands createrawvmdk -filename c:\Users\{YourUsername}\.VirtualBox\HardDisks\linux.vmdk -rawdisk \\.\PhysicalDrive3

VirtualBox Command Line Management Interface Version 3.0.8
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
RAW host disk access VMDK file c:\Users\{YourUsername}\.VirtualBox\HardDisks\linux.vmdk created successfully.

– Run VB as administrator (this make me confuse too, I am power user…yet, UAC isn’t turn off)
– Virtual Manager > add those created virutal disk files (*.vmdk)
– create a new virtual machine
System: uncheck “Enable IO APIC”
Harddisk:
Enable additional controller: SCSI (LsiLogic)

Hard Disks

SCSI Port 0:

winxp.vmdk (Normal, 40.00 GB)

SCSI Port 1:

win7.vmdk (Normal, 60.00 GB)

SCSI Port 2:

windata.vmdk (Normal, 711.28 GB)

SCSI Port 3:

linux.vmdk (Normal, 80.00 GB)

N.B. : only add winxp.vmdk & linux.vmdk, blank screen with (00:00:03.291 Guest Log: BIOS: Booting from Hard Disk…) on VB log (right click VM, show log..)

– turn on VM, with 4 drives, now got GRUB 21 error.
good, at least it got the disk now….

– download Super GRUB disk, mount it as CD-ROM
follow this link:
http://www.supergrubdisk.org/w/index.php5?title=Howto_Boot_Linux_only
unmount, reboot, RORA !

– one more thing, install linux Guest Additions, manual section 4.3
sudo sh ./VBoxLinuxAdditions-amd64.run

Whale watching

September 6, 2009|生活記事

每月從乞衣兜搶走我的人工扣除20元的social club終於有活動~~
whale watching
自問從沒有暈船, saling 都冇問題, 應不用事前食藥.
結果…在broadwater 沒有問題, 到pacific ocean 開始覺得有點冷
搵到whale 停船, 盪下盪下就嘔了…..
要船隻開始行駛才沒有暈船, 臭大了….
幸好看到 whale

由於攜眷活動(family members/ partner), 我”隻身附會”實在不化算,
這些支出實在不應該替公司節省, 理論上我出20公司出20….
可惜 Elvie 唔近GC, 扮partner 用返夠個quota.

諸事不順, 郁悶非常…
計畫總是跟不上變化

社交恐懼症

September 3, 2009|生活記事

近期由於病患, 故此甚少更新.
經著名精神科醫生Dr. S Chan 自我診斷為 社交恐懼症
病徵是臉紅、發抖、異常冒汗、心跳加速、心悸、輕微頭痛,
長時間的把自己關在家裡孤立自己

最近每個星期開會都係重複般, 總覺得自己的進度得慢
但上司卻說我做得幾快, 有時比他做得更快
或許這都係東西文化差異
外國人普遍係正面評價, 比較ego, 自信有能力做好手頭上的事情吧.

關注物業市場中, 租屋一般要200-300 per week
mortgage 大約 $350-400, 但未計 body crop., council fee, bills.. etc
而且是一輩子的 debt…但pay rent 即是替人家供樓….
什麼選擇才是最好的……

...1020...30313233...60...

 

如果你喜歡我的文章,請幫忙按 1-10次 LikeButton 化讚為賞,非常感謝!越喜歡當然可以越按越多 😛

搜尋 Search

簡介 Bio

香港人,現居南十字星空下。

為人貪心,科技、生活、財經、散文 皆有興趣,周身刀冇張利。

思想矛盾,喜歡現在work-life balance 既生活又懷念a city never sleep。

 

每月送我一杯咖啡支持我: liker.land/hang321




分類 Categories

  • 好文閱讀
  • 時事評論
  • 未分類
  • 生活記事
  • 科技資訊
  • 金融財經
  • 電腦編程
  • 音樂電影

文章存檔 Archives




熱門文章 Popular Posts

  • Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8)
    Install XPEnology (DSM) 5.1 on ESXi 6 (HP MicroServer Gen 8) June 8, 2015
  • 呢幾日個blogger 有問題….
    呢幾日個blogger 有問題…. October 28, 2004
  • assembly
    assembly February 11, 2006
  • 新工作
    新工作 January 6, 2009
  • 嫁人要嫁工程師
    嫁人要嫁工程師 April 27, 2006

標籤雲 Tag Cloud

CentOS Character chroot Cluster crash cryptography DD-WRT debug Domino DSM Dual Core DWA email ESXi GCP git google HylaFax IE Java Javascript JRE LikeCoin Linux log LotusScript mint MX MySQL nginx PKI PowerShell Qwiklabs srt telent VMware vpn vSphere WinXP wordpress XPEnology 專欄 網絡資訊 選股 風帆

日曆 Calendar

May 2025
M T W T F S S
  « Feb    
 1234
567891011
12131415161718
19202122232425
262728293031  

Follow Me

Follow Us on RSSFollow Us on TwitterFollow Us on YouTube

文章存檔 Archives

Copyright © 2004-2021 hang321.net. All Rights Reserved