Found this nice post: http://chrisschuld.com/2007/08/reload-fstab-etcfstab/
After you edit the /etc/fstab, use mount -a.
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Sunday, February 19, 2012
Add a VirtualBox Disk to Linux
I've started to play around with linux in VirtualBox. I'm going to start posting things I find useful, since I'm a Windows man by trade. This is the first:
I was adding a new VirtualBox disk for my data (so I can keep the OS/programs seperate from my personal stuff). Here's how I did it.
I was adding a new VirtualBox disk for my data (so I can keep the OS/programs seperate from my personal stuff). Here's how I did it.
- Create the disk in the VirtualBox GUI.
- Format the disk in Linux:
- Find the disk (probably /dev/sdb or some such path): fdisk -l
- Format the disk: fdisk /dev/sdb
- Edit the fstab to mount the disk where you want it:
- /dev/sdb /home/david ext2 defaults 0 0
- Note that I mounted to my home directory, so I need to move my existing home dir (which has all the crappy Windows type folders) and then create it again so that the mount can find the folder.
- Remount: mount -a
- EDIT 2012-02-19: Copy all of the .* files from the old user dir to the new one.
- Done! (I think, I'm new at this)
Subscribe to:
Posts (Atom)