PDA

View Full Version : Mounting extra disc


jwijgerd
15th May 2008, 20:11
Hi

I've just created an image with 270 GB disc (20+250). It appears that this is not mounted yet. Any help on how to mount the volume would be much appreciated!

kind regards

Joost

jeisenbe
16th May 2008, 09:15
Mr. van de Wijgerd,
The First and easiest option open to anyone adding a new disk to their virtual system is just to partition the disk as they require, format the partitions with the file system of their choice and then mount the new file systems in the location of their choice. You can also just use the whole device without partitions by formatting the device and then mounting this new filesystem in the location of your choice. An example of this is shown below using the ext3 file system presuming the new device is /dev/sda and mounting the new filesystem in /home
mkfs.ext3 /dev/sda
mount /dev/sda /homeYou will also want to place an entry in /etc/fstab to mount the filesystem on system boot, an example of this is shown below.
/dev/sda /home ext3 noatime 1 1

jwijgerd
16th May 2008, 10:06
Hi Jonathan,

The problem is that I don't know the name of the device, it is not easy to find out which device contains the extra disc of 250 GB.. I can only see a /dev/hda /dev/hda1 and /dev/hda2 but they seem to be already mounted..

will look for the /dev/sd<x> that you mention.. How do I know I have the right one?

Kind regards

Joost

jwijgerd
16th May 2008, 11:07
Hi Jonathan,

Ok, so I understand from you (by phone) that /dev/hda is the 20GB disc and /dev/sda is the 250GB disc.. I will procede with your suggestion to configure it from your post

thanks a lot!

kind regards

Joost

jwijgerd
16th May 2008, 11:26
Just finished it and it works perfectly.. put all mysql data at that partition

thanks

Joost

jeisenbe
19th May 2008, 09:45
glad to be of service Joost,

let us know how you get along.