Announcement

Collapse
No announcement yet.

New Hard Drive

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

    New Hard Drive

    I just installed a new 500gb SATA for media.

    I created a single partition with gparted in the ext3 filesystem, all good n done

    Right... now how do I get it to show up in my storage media? or is this not possible?
    I can mount it to Media, though I've not tried moving anything to it as I'd rather it auto mounted as a drive rather than just a folder in my media.

    help appreciated

    thanks in advance
    Compy: AMD 64x2 6000+, Crosshair mobo, Enermax PSU, 4GB DDR2 800, 8800GTS 640mb, 24in cheapy monitor + secondary 17in, aprrx 1.6tb storage (internal) + external DVDrw, lots of nice big blue shiny quiet fans.

    #2
    Re: New Hard Drive

    Mounting/Fstab

    man fstab
    The file fstab contains descriptive information about the various file
    systems. fstab is only read by programs, and not written; it is the
    duty of the system administrator to properly create and maintain this
    file.
    How to fstab
    http://ubuntuforums.org/showthread.php?t=283131

    How to edit and understand /etc/fstab - 1.1
    http://www.tuxfiles.org/linuxhelp/fstab.html

    fstab
    http://en.wikipedia.org/wiki/Fstab


    fstab is text file -> you can edit it with text editor.

    So:
    Press Alt + F2:
    kdesu kate /etc/fstab

    Backup it before you edit it !

    Here is, as example, my fstab from Feisty
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # root
    # /dev/sdb1
    UUID=1997f920-2c24-4495-8dc8-5e6c6731e406 / ext3 defaults,errors=remount-ro 0 1
    # home partition
    # /dev/sdb2
    UUID=baef320e-0368-4c3d-8243-041307bcd4b0 /home ext3 defaults 0 2
    # fat partitions
    # /dev/hda6
    UUID=2A3D-1CD4 /media/hda6 vfat defaults,utf8,umask=007,gid=46 0 0
    # /dev/hda7
    UUID=333B-1CDD /media/hda7 vfat defaults,utf8,umask=007,gid=46 0 0
    # data partitions
    # /dev/sda2
    UUID=4319687d-5dd9-481f-b081-5fa1d21cde72 /media/sda2 ext3 defaults 0 2
    # /dev/sda4
    UUID=30172fdc-6826-499c-8770-0f8608e8559f /media/sda4 ext3 defaults 0 2
    # /dev/sdb3
    UUID=3f52a60d-c660-4b40-8905-be26544da3a6 /media/sdb3 ext3 defaults 0 2
    # /dev/sdb4
    UUID=be6013dc-b208-49e6-bf69-acc403e6f3db /media/sdb4 ext3 defaults 0 2
    # swap
    # /dev/sda3
    UUID=f505860a-9d5e-4386-b6a8-9b6b97134f23 none swap sw 0 0
    # DVD/CD/floppy
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

    Links:
    Topic: IDE monsters under my bed!
    http://kubuntuforums.net/forums/inde...opic=3085982.0

    Topic: Can't create directory on mount FAT drive
    http://kubuntuforums.net/forums/inde...opic=3086448.0
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: New Hard Drive

      Thanks

      Made a backup... then got totally confused :P the fstab does not seem to correlate to storage media list and the drive description of my new drive is there as an ntfs created by Automatix rather than etx3 lol

      I'm going to run the Automatix thing I ran yesterday again to see if it sorts itself out. I used it to make all my NTFS windows drives writable.

      will check back.

      If in the meantime you've got any ideas of a quick solve to just get the icon into the storage media drop-down so I can mount from there that would be great. fstab doesn't seem to do that :S
      Compy: AMD 64x2 6000+, Crosshair mobo, Enermax PSU, 4GB DDR2 800, 8800GTS 640mb, 24in cheapy monitor + secondary 17in, aprrx 1.6tb storage (internal) + external DVDrw, lots of nice big blue shiny quiet fans.

      Comment


        #4
        Re: New Hard Drive

        ok, I am confused lol, please help me out, my brain is a little squidgy today:

        here is my fdisk -| result:

        Code:
        Disk /dev/hda: 60.0 GB, 60022480896 bytes
        255 heads, 63 sectors/track, 7297 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        
          Device Boot   Start     End   Blocks  Id System
        /dev/hda1  *      1    6994  56179273+ 83 Linux
        /dev/hda2      6995    7297   2433847+  5 Extended
        /dev/hda5      6995    7297   2433816  82 Linux swap / Solaris
        
        Disk /dev/sda: 80.0 GB, 80026361856 bytes
        255 heads, 63 sectors/track, 9729 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        
          Device Boot   Start     End   Blocks  Id System
        /dev/sda1  *      1    9327  74919096  83 Linux
        /dev/sda2      9328    9729   3229065  5 Extended
        /dev/sda5      9328    9729   3229033+ 82 Linux swap / Solaris
        
        Disk /dev/sdb: 500.1 GB, 500107862016 bytes
        255 heads, 63 sectors/track, 60801 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        
          Device Boot   Start     End   Blocks  Id System
        /dev/sdb1  *      1    60801  488384001  83 Linux
        
        Disk /dev/hdb: 160.0 GB, 160041885696 bytes
        139 heads, 1 sectors/track, 2248789 cylinders
        Units = cylinders of 139 * 512 = 71168 bytes
        
          Device Boot   Start     End   Blocks  Id System
        /dev/hdb1        1   1931189  134217635  7 HPFS/NTFS
        
        Disk /dev/sdc: 320.0 GB, 320072933376 bytes
        255 heads, 63 sectors/track, 38913 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        
          Device Boot   Start     End   Blocks  Id System
        /dev/sdc1  *      1    38913  312568641  7 HPFS/NTFS
        and here is my fstab:

        Code:
        # /etc/fstab: static file system information.
        #
        # <file system> <mount point>  <type> <options>    <dump> <pass>
        proc /proc proc defaults 0 0
        # /dev/hda1
        UUID=6ae756b0-b796-487d-92a9-b6686098ce12 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
        # /dev/hda5
        UUID=147a517c-a560-4586-a771-8784cdc35cdd none swap sw 0 0
        /dev/hdc /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
        /dev/hdd /media/cdrom1 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
        /dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0
        
        # Generated by Automatix
        /dev/hdb1  /media/hdb1  ntfs-3g defaults,locale=en_US.utf8  0  0
        /dev/sdb1  /media/sdb1  ntfs-3g defaults,locale=en_US.utf8  0  0
        ## End of Automatix mounted partitions
        Compy: AMD 64x2 6000+, Crosshair mobo, Enermax PSU, 4GB DDR2 800, 8800GTS 640mb, 24in cheapy monitor + secondary 17in, aprrx 1.6tb storage (internal) + external DVDrw, lots of nice big blue shiny quiet fans.

        Comment


          #5
          Re: New Hard Drive

          Your new disk is /dev/sdb1 (only one partition)

          You could make new mount point in /media/. Maybe /media/data/
          Code:
          sudo mkdir /media/data
          Give rights (read,write,execute)
          Code:
          sudo chmod -v 777 /media/data
          777 means that:
          owner: read, write and execute permissions,
          group: read, write and execute permissions,
          others: read, write and execute permissions.

          and add in the stab:
          Code:
          /dev/sdb1 /media/data   ext3  defaults    0    2
          That is how i did (do) it.


          You can make symlink between your new hard drive and folder in the home folder:
          Code:
          sudo ln -s /media/data/ /home/USER/Videos_or_something_else
          So if you click Videos_or_something_else icon in konqueror/dolphin ZAP You are in /media/data (but it will look like it is /home/USER/Videos_or_something_else/)

          Note
          USER is you log in name.

          More:
          Topic: linking folders across accounts
          http://kubuntuforums.net/forums/inde...opic=3086040.0


          Links:
          Linux permissions help
          http://zzee.com/solutions/linux-permissions.shtml

          Chmod help
          http://zzee.com/solutions/chmod-help.shtml
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Re: New Hard Drive

            ok, got that drive accessible now, however, caused another issue:

            I can now no longer access my external USB drive, it shows the drive but not even root has permission to edit permissions...

            fstab is as follows:

            Code:
            # /etc/fstab: static file system information.
            #
            # <file system> <mount point>  <type> <options>    <dump> <pass>
            proc /proc proc defaults 0 0
            # /dev/hda1
            UUID=6ae756b0-b796-487d-92a9-b6686098ce12 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
            # /dev/hda5
            UUID=147a517c-a560-4586-a771-8784cdc35cdd none swap sw 0 0
            /dev/hdc /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
            /dev/hdd /media/cdrom1 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
            /dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0
            # /dev/hdb1
            /dev/hdb1  /media/hdb1  ntfs-3g defaults,locale=en_US.utf8  0  0
            # /dev/sdc1
            /dev/sdc1  /media/MEDIA EXTERNAL  ntfs-3g defaults,locale=en_US.utf8  0  0
            # /dev/sdb1
            /dev/sdb1 /media/sdb1   ext3  defaults    0    2
            Compy: AMD 64x2 6000+, Crosshair mobo, Enermax PSU, 4GB DDR2 800, 8800GTS 640mb, 24in cheapy monitor + secondary 17in, aprrx 1.6tb storage (internal) + external DVDrw, lots of nice big blue shiny quiet fans.

            Comment


              #7
              Re: New Hard Drive

              Finally got it all sorted

              thanks for your help!

              here is the final fstab that worked:

              Code:
              # /etc/fstab: static file system information.
              #
              # <file system> <mount point>  <type> <options>    <dump> <pass>
              proc /proc proc defaults 0 0
              # /dev/hda1
              UUID=6ae756b0-b796-487d-92a9-b6686098ce12 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
              # /dev/hda5
              UUID=147a517c-a560-4586-a771-8784cdc35cdd none swap sw 0 0
              /dev/hdc /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
              /dev/hdd /media/cdrom1 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
              /dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0
              /dev/sdb1 /media/sdb1   ext3  defaults    0    2
              
              # Generated by Automatix
              /dev/hdb1  /media/hdb1  ntfs-3g defaults,locale=en_US.utf8  0  0
              /dev/sdc1  /media/sdc1  ntfs-3g defaults,locale=en_US.utf8  0  0
              ## End of Automatix mounted partitions
              Compy: AMD 64x2 6000+, Crosshair mobo, Enermax PSU, 4GB DDR2 800, 8800GTS 640mb, 24in cheapy monitor + secondary 17in, aprrx 1.6tb storage (internal) + external DVDrw, lots of nice big blue shiny quiet fans.

              Comment

              Working...
              X