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

Thread: Attaching Data Drive

  1. #1
    Join Date
    Oct 2006
    Location
    Virginia
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Attaching Data Drive

    Hi Folks,

    I had previously installed Ubuntu Server in 80GB drive, and had attached another 300GB drive for data.

    Because I was playing too much with the changes, I was having problems with the Server, so I decided to wipe out everything on the 80GB drive, and reinstall Ubuntu Server, as my Data was secure on the 300GB drive.

    Now that I have re-installed Ubuntu, I am lost on how to attach (mount) the 300GB drive, and access all my data there.

    Could anybody point out where I can read-up on it? Or give me some pointers.

    TIA.
    Slowly and Surely, getting there.....

  2. #2
    Join Date
    Oct 2006
    Location
    Montreal
    Beans
    228
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Attaching Data Drive

    Just create a folder and mount it:

    mkdir /media/disk
    sudo mount /dev/sdb1 /media/disk

    If you want to mount it permanently just google /etc/fstab

    https://help.ubuntu.com/community/In...gANewHardDrive
    Last edited by druhboruch; July 12th, 2009 at 03:31 AM.

  3. #3
    Join Date
    Oct 2006
    Location
    Virginia
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Attaching Data Drive

    Quote Originally Posted by druhboruch View Post
    Just create a folder and mount it:

    mkdir /media/disk
    sudo mount /dev/sdb1 /media/disk

    If you want to mount it permanently just google /etc/fstab

    https://help.ubuntu.com/community/In...gANewHardDrive
    I use Webmin to manage my Server, and I was able to mount it, but am unable to get my data.

    TIA
    Slowly and Surely, getting there.....

  4. #4
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Attaching Data Drive

    You may have to adjust the mount point permissions. I would suggest using ssh to go into the server and check the permissions of /media/disk change the permission to 777 just to see if you can access the data at the prompt type:

    Code:
    sudo chmod -R 777 /media/disk
    If you can now access the files on the drive, then you can follow the link that druhboruch provided to setup /etc/fstab.

  5. #5
    Join Date
    Sep 2007
    Location
    Olympia, Washington
    Beans
    548
    Distro
    Ubuntu

    Re: Attaching Data Drive

    Permanently mount your drive in /etc/fstab using >

    Code:
    /dev/sdb1 /mount-pint ext3 defaults 0 0
    or if a samba share

    Code:
    //external/box /local-mount smbfs username=your-username,password=your-password 0 0
    ~Mark
    http://nwlinux.com - tech blog

  6. #6
    Join Date
    Oct 2006
    Location
    Virginia
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Attaching Data Drive

    Quote Originally Posted by cariboo907 View Post
    You may have to adjust the mount point permissions. I would suggest using ssh to go into the server and check the permissions of /media/disk change the permission to 777 just to see if you can access the data at the prompt type:

    Code:
    sudo chmod -R 777 /media/disk
    If you can now access the files on the drive, then you can follow the link that druhboruch provided to setup /etc/fstab.
    Nope, chmod 777 also did not bring out my old data. I can create new "folders" add other data, but can not see nor access my old data. It seems to be there still, as free space is reduced, but I just can not see it, nor access it.

    Did I mount it wrong? Like I mentioned before, I use Webmin for managing the server, and maybe I mounted the disk (or the partition, if that makes a difference) in a wrong way.

    Also another information: This data disk was still in and connected when I reinstalled Ubuntu Server on the smaller drive.

    TIA
    Slowly and Surely, getting there.....

  7. #7
    Join Date
    Oct 2006
    Location
    Montreal
    Beans
    228
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Attaching Data Drive

    Maybe you have more than one partition on your drive.

    Try to mount /dev/sdb2 and /dev/sdb3...

    What file system was data drive formated with?

  8. #8
    Join Date
    Oct 2006
    Location
    Virginia
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Attaching Data Drive

    Quote Originally Posted by druhboruch View Post
    Maybe you have more than one partition on your drive.

    Try to mount /dev/sdb2 and /dev/sdb3...

    What file system was data drive formated with?
    The drive has only one partition, and it was formatted as linux partition, ext3.

    Just curious, Ubuntu now has some other filesystem, LVM or something like that, which I guess is ext4. Does this make a difference?

    TIA
    Slowly and Surely, getting there.....

  9. #9
    Join Date
    Oct 2004
    Location
    Kingston, On
    Beans
    Hidden!

    Re: Attaching Data Drive

    Quote Originally Posted by Duwady View Post
    The drive has only one partition, and it was formatted as linux partition, ext3.

    Just curious, Ubuntu now has some other filesystem, LVM or something like that, which I guess is ext4. Does this make a difference?

    TIA
    No. Ubuntu can support many different filesystems at the same time.

    And LVM is just a way of making several drives (partitions) into one volume. You can put any filesystem you want on a volume. I think Ext4 is the default for the next release of Ubuntu. The default filesystem right now is still ext3.
    I lost a "z". Anyone seen it around here?

  10. #10
    Join Date
    Oct 2006
    Location
    Virginia
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Attaching Data Drive

    Quote Originally Posted by az View Post
    No. Ubuntu can support many different filesystems at the same time.

    And LVM is just a way of making several drives (partitions) into one volume. You can put any filesystem you want on a volume. I think Ext4 is the default for the next release of Ubuntu. The default filesystem right now is still ext3.
    Which brings me back to my original question, why do I not see my data on the mounted drive, which had only one partition and had been formatted with ext3?

    Another thought, (because I am a newbie in linux)... I am under the impression that I can mount the drive (or partition) under any name, and under any folder (Media or MNT). Please correct me if I am wrong.

    Until I can resolve this, or understand what is going on and why, I am scared to put any data in it anymore.

    TIA
    Slowly and Surely, getting there.....

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
  •