- Select your vbox image that you want to add additional harddisk. Left click -> Settings -> Storage -> Add Hard Disk -> Create new disk -> VDI -> Dynamically allocated -> Select location and size
- Launch your virtualbox system
- ls /dev/sd* (the one without numbers is the new disk)
- su -
- fdisk /dev/sdb (depending on where your hdd is mounted)
- Enter c then u.
- Enter p
- Select your partition number
- Enter the sectors needed
- Enter w to write the changes
- ls /dev/sd* ( Your new harddisk will show up with number, i.e. sda1, sdb1, etc
- mkdir /backup
- mkfs.ext4 -L /backup /dev/sdb1
- mount /dev/sdb1 /backup
- mount ( look for your new drive)
- Add LABEL=/backup /backup ext4 defaults 1 2 to your /etc/fstab
- Reboot
- cd / (You should notice backup folder is created. Your new hard disk is mounted to it.
- You can start using the new drive.
A blog for electronic enthusiast. Topics covered from electronic components to PIC as well as programming
Sunday, January 26, 2014
Addding Harddisk to VirtualBox
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment