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

iPad

January 30, 2010|生活記事

對上一部Laptop 已經係3年前既Macbook,
一直心思思想買一部netbook/tablet,
雖然唔似得係香港有咁多機會用得到….

等到 iState iPad announce, 有點失望,
係iphone OS, 唔係OSX, 有冇USB/Card Reader,
最重要係冇 Multitasking!
eBook for US only

不過USD$499 又唔算好貴…..

運動

January 25, 2010|生活記事

告別用左五年既web hosting, 搬左去US,
promotion ~USD 9 一年, bandwidth to AU 快好多.
冇excuse 唔打下字, 再唔打下可能連倉頡都唔記得了.

通常新一年都會打下回顧, 好明顯, 懶惰既我就冇做到,
一年過得好快, 最初適應新工作有點吃力,
香港講efficiency, 好多時唔會做review/documentation,
宜家連code 都會peer review 先commit,
最爽係create defect to 上司既code 🙂
相反俾人 notice defect 就….下次小心d

Xmas 前係公司附近租左間single room unit,
driving 既時間少左好多, 天氣唔熱既話行10-15mins到,
不過宜家仲係summer time, 行返工既話會熱死我
自己住既時間過得仲快, 主要係煮飯, 食飯, 睇電視, 洗碗, 上網, XBOX..

沿Broadwater 跑左兩次, 為左我返到HK 有多D quota 食食同食,
我要做多d 運動先得

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

...1020...29303132...60...

 

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

搜尋 Search

簡介 Bio

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

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

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




分類 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 Process Explorer srt telent VMware vpn vSphere WinXP wordpress XPEnology 專欄 網絡資訊 選股 風帆

日曆 Calendar

January 2021
M T W T F S S
  « Jan    
 123
45678910
11121314151617
18192021222324
25262728293031

Follow Me

Follow Us on RSSFollow Us on TwitterFollow Us on YouTube

文章存檔 Archives

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