Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 18th February 2008, 23:24
yoyoman yoyoman is offline
Junior Member
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving data on other disk with “Virtual Hosting With PureFTPd And MySQL Ubuntu 7.10"


I’m 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’t 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: “Virtual 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’t have a partition yet, and I don’t have clue how to partition it with ubuntu. I googled around a little bit but couldn’t 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’t 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 )


Reply With Quote
Sponsored Links
Old 19th February 2008, 07:45
thecaoticone thecaoticone is offline
Join Date: Nov 2007
Posts: 89
Thanks: 1
Thanked 18 Times in 16 Posts

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:

Last edited by thecaoticone; 19th February 2008 at 07:47.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Mana ikkem HOWTO-Related Questions 33 8th June 2012 19:27
Virtual Hosting With PureFTPd And MySQL quota problem GaulHahn Server Operation 3 29th July 2008 15:32
Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) sEby HOWTO-Related Questions 3 22nd January 2008 04:21
Virtual Hosting with PureFTPd and MySQL - FC7 chalee HOWTO-Related Questions 1 6th September 2007 23:19
Virtual Hosting With PureFTPd And MySQL troubles Mave HOWTO-Related Questions 2 25th November 2006 04:08

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

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