Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Adding a hard drive

  1. #1
    Join Date
    Sep 2007
    Location
    UK
    Beans
    375
    Distro
    Ubuntu 11.04 Natty Narwhal

    Adding a hard drive

    Hi guys
    I have a ubuntu server 12.04 running minecraft
    I added a plugin that saves backups and now my hard drive is full.

    My backups are in /var/www/minecraft/backups

    I want to add a hard drive to store the backups separately. I have added a second drive using the virtual media manager.

    I'm not sure how to partition the drive though without the partitioning wizard that runs in the installer.

    How do I partition the drive and mount it correctly.

    I want the backups on one drive and everything else on the other.
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

  2. #2
    Join Date
    Oct 2011
    Location
    Albury, NSW, Australia
    Beans
    42
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding a hard drive

    Hi bigmonmulgrew,

    Is there a special reason for using the virtual media manager? It sounds like you're making it extra hard on yourself. Masochistic much?

  3. #3
    Join Date
    Sep 2007
    Location
    UK
    Beans
    375
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Adding a hard drive

    Basically I'm running it on virtual box
    I gave it 20GB of space which was plenty.

    Now There are backups its filled up almost completely.

    I thought it would be easier to create a second hard drive than to reinstall the server on a bigger virtual disc.
    Also the virtual HDD is on my SSD and I thought it would be better to put the virtual drive for the backup on my storage drive.

    Then I realised I don't know how to partition and mount the drive

    I'm happy to hear alternate suggestions
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

  4. #4
    Join Date
    Oct 2011
    Location
    Albury, NSW, Australia
    Beans
    42
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding a hard drive

    Sorry man . I'm not a virtualization expert, I run my server native on 12.04 LTS. Lean and mean. Adding extra drives is 'reasonably' simple for me. Fit it, format it, find the UUID, mount with fstab, fill it up.

    I'm guessing (and only guessing) that you are running Oracle Virtual Box within Windows/OSX?? You checked the VM wiki? https://www.virtualbox.org/manual/ch...ttings-storage

  5. #5
    Join Date
    Oct 2011
    Location
    Albury, NSW, Australia
    Beans
    42
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding a hard drive

    PS. You might want to re-post this in the Virtualisation forum instead of the Absolute Beginners . You might get some better help over there.

  6. #6
    Join Date
    Sep 2007
    Location
    UK
    Beans
    375
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Adding a hard drive

    Well its not a virtualisation question.

    I have added the hard drive in the virtual PC settings. As far as the rest of the process goes it should be the same as if I had a real server and added a physical hard drive

    Yes I'm using oracle on Windows
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

  7. #7
    Join Date
    Oct 2011
    Location
    Albury, NSW, Australia
    Beans
    42
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding a hard drive

    Ok. If it truly works the same as a native install, then this may help. Docs are at https://help.ubuntu.com/community/In...gANewHardDrive

    I run my server head-less from Windows with PuTTY, but I have the gui installed for convenience. When I want a GUI I use Xming to redirect X to my laptop.

    gparted is the partition manager I prefer to use in Ubuntu. It's a gui package. It's very intuitive. I haven't broken anything with it yet.
    fdisk is the command line only version. I got butterfly's when I've used it in the past.

    The docs show how to set partitions, set ownership, and mount at boot. I prefer to mount using UUID rather than by location. After formatting, find the UUID with sudo blkid and append it to /etc/fstab

    Good luck.

  8. #8
    Join Date
    Aug 2007
    Location
    FL
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Adding a hard drive

    If dmesg or fdisk -l can see the new drive, you are in business. (g)parted or fdisk would be the next tool to use. gparted is convenient since it is a gui and will do the partioning and formatting for you.

  9. #9
    Join Date
    Sep 2007
    Location
    UK
    Beans
    375
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Adding a hard drive

    ok I installed the xubuntu desktop as I'm familiar with gparted thought it would be best to use a gui

    I partitioned the drive using gparted
    I then followed the link above on how to mount.

    I have now moved my backups to the new drive and now the backups are going onto the new drive.

    I then decided to remove the gui.

    tried sudo apt-get remove
    xubuntu-desktop
    xubuntu*
    xcde*
    xorg*

    but im still getting the logon screen How do i restore the old gui
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

  10. #10
    Join Date
    Sep 2007
    Location
    UK
    Beans
    375
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Adding a hard drive

    or rather how do i restore the old cli
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •