HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   HOWTO-Related Questions (
-   -   Saving data on other disk with 天irtual Hosting With PureFTPd And MySQL Ubuntu 7.10" (

yoyoman 18th February 2008 23:24

Saving data on other disk with 天irtual Hosting With PureFTPd And MySQL Ubuntu 7.10"

I知 trying to create a ftp server with 500 gb of storage. And my goal was to keep the costs down, so I gathered computer components from all over the house. I found an old Compaq motherboard, 256 mb ram and a Pentium 3 Cpu (500 mhz). I wanted to test this setup first on a 6.5 gb disk before I went and bought the 500 gb I put in later. The disk I bought is a sata2 disk from Hitachi. Of course my computer doesn稚 have any sata connectors so I bougt a sata controller pci card from sitecom. With this sata controller this disk is not bootable so I wil have to install ubuntu on my 6.5 gb disk and store all the data on my 500 gb disk. This is no problem of course, but it poses some challenges.

I followed this tutorial: 天irtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Ubuntu 7.10 (Gutsy Gibbon)

This works when I store my data on the 6.5 gb disk. (in the folder /home/test). But now I want to change this so it will store all ftp data on the 500 gb disk.

First of all, the 500 gb disk doesn稚 have a partition yet, and I don稚 have clue how to partition it with ubuntu. I googled around a little bit but couldn稚 find how I can do this. There is one thing about this question I do know, there are going to be large files on the disk, so Fat isn稚 an option.

And last but not least, how can I make the current installation of ubuntu refer to my 500 gb disk? So I can store my data there.

Thanks for reading (and answering ;) )



thecaoticone 19th February 2008 07:45

Ubuntu comes with fdisk and cfdisk for partitioning hard drives ( cfdisk is a little more user friendly).
Issue the command:

fdisk /dev/sda


cfdisk /dev/sda

replace "sda" with your sata drive.

After the partition(s) are created you will need to format the partition(s) using the type of file system you choose.

ext2 = mke2fs
ext3 = mke2fs -j
reiserfs = mkreiserfs
xfs = mkfs.xfs
jfs = mkfs.jfs

for a reiserfs file system issue the command

mkreiserfs /dev/sda

Then create an entry in your /etc/fstab for the device to be mounted:

/dev/sda /storage reiserfs defaults 0 1

Reboot the system.

Change your ftp set-up to upload files to the /storage partition.

You may need to do a chmod to set permissions for the /storage drive.

More about fstab options can be found here:

for fdisk look here:

All times are GMT +2. The time now is 15:14.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.