Announcement

Collapse
No announcement yet.

Mounting Second Hard Drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mounting Second Hard Drive

    ok here's how I managed to get my second hard drive to mount automatically in Hardy. My second drive was a linux partition.

    Code:
    sudo fdisk -l
    This returned this info about my drive
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 9729 78148161 83 Linux
    So I made a directory as a mount point

    Code:
    sudo mkdir /slimmy
    And then did this

    Code:
    sudo nano /etc/fstab
    added this line *****EDIT***** I've changed it to show the UUID as per dibl's advice below.

    Code:
    UUID=2a3b71d4-7362-4b00-bc95-227d8aab516b /slimmy ext3 defaults 0 0
    Then I mounted all

    Code:
    sudo mount -a
    Other guides then tell you to change ownership of stuff.. that's how I messed up my install.

    I simply left it like that.. rebooted and I can get into my second hdd by entering /slimmy with no issues!!!

    Kev

    #2
    Re: Mounting Second Hard Drive

    OK, so you can edit /etc/fstab with Kate and set that up as an automatically mounted drive, right? Just follow the format of the /dev/sda partitions. But I would get the UUID of that drive, and mount it by UUID, like your others.

    Comment


      #3
      Re: Mounting Second Hard Drive

      Originally posted by dibl
      OK, so you can edit /etc/fstab with Kate and set that up as an automatically mounted drive, right? Just follow the format of the /dev/sda partitions. But I would get the UUID of that drive, and mount it by UUID, like your others.
      hrmm ok I will, but why? incase the "sdb" changes? I've noticed that this name of that drive changes a lot.

      Kev

      Comment


        #4
        Re: Mounting Second Hard Drive

        Originally posted by dibl
        OK, so you can edit /etc/fstab with Kate and set that up as an automatically mounted drive, right? Just follow the format of the /dev/sda partitions. But I would get the UUID of that drive, and mount it by UUID, like your others.
        Do you know how I would actually do that in fstab?

        Right now I think I should do the following

        Code:
        UUID=2a3b71d4-7362-4b00-bc95-227d8aab516b /slimmy ext3 defaults 0 0
        Is there a better way?

        Comment


          #5
          Re: Mounting Second Hard Drive

          That's it!

          Comment


            #6
            Re: Mounting Second Hard Drive

            Originally posted by dibl
            That's it!
            Cool Beans!



            Kev

            Comment

            Working...
            X