Announcement

Collapse
No announcement yet.

Mounting 2nd Hard Drive

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

    Mounting 2nd Hard Drive

    My brain has turned into toast. I've tried alot of things over the last several hours and still can mount my 2nd hard drive. I need to find a place where I can download a manual on how to do this for Linux. (Kubuntu) My 2nd hard drive would be used only for Linux (as is my primary drive). I need to know what gets edited in fstab,mstab,creating desktop link to the device, change all permissions from 'root' to any 'user' , so that it can be accessed without 'root permission.'

    I want to use this drive for digital photo manipulation and stitching panorama's.

    I formated and created an ext3 filesystem . . . .on this 2nd drive . . .it would be considered I guess as an 'extended'drive? As my primary drive is my first hard drive?. .. . with a mount point of what?

    I need some help with this, it's driving me crazy and need a simple to follow tutorial on how to set this drive up.

    I've played around with qtparted, KwickDisk, and even used my 'Partition Commander Windoze disk'. (I think one of my problems is this 'root' permission ' stuff. . .


    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 5374 43166623+ 83 Linux
    /dev/hda2 5375 5605 1855507+ 5 Extend ed
    /dev/hda5 5375 5605 1855476 82 Linux swap / Solaris

    Disk /dev/hdb: 46.1 GB, 46103371776 bytes
    255 heads, 63 sectors/track, 5605 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 1 5605 45022131 83 Linux

    /etc/fstab: static file system information.

    proc /proc proc defaults 0 0
    /dev/hda1 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
    /dev/hda5 none swap sw 0 0
    /dev/hdb1 / ext3 users,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
    /dev/hdc /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0


    etc/mtab information:

    /dev/hdb1 / ext3 rw,errors=remount-ro 0 0
    proc /proc proc rw 0 0
    /sys /sys sysfs rw 0 0
    varrun /var/run tmpfs rw 0 0
    varlock /var/lock tmpfs rw 0 0
    procbususb /proc/bus/usb usbfs rw 0 0
    udev /dev tmpfs rw 0 0
    devpts /dev/pts devpts rw,gid=5,mode=620 0 0
    devshm /dev/shm tmpfs rw 0 0
    lrm /lib/modules/2.6.15-26-386/volatile tmpfs rw 0 0


    Any help in editing changes that would work would be appreciated. :P

    Rich :P

    #2
    Re: Mounting 2nd Hard Drive

    Don't touch mtab, that file is updated by the system (it tells what filesystems are currently mounted)

    Then follow these steps:

    1. create a directory you want the drive to mount to, for example
    Code:
    sudo mkdir /media/drive2
    2. add the partition to /etc/fstab
    /dev/hdb1 /media/drive2 ext3 defaults,umask=0000 0 2
    - '/media/drive2' is the directory you created
    - 'umask=0000' gives rwx rights to all (don't need root permissions)
    - change the final number from 1 to 2 (1 is reserved for root filesystem, so it's checked first during boot-up, 2 is for additional filesystems you want checked at boot)

    3. mount it with
    Code:
    sudo mount /dev/hdb1
    (it will mount automatically during boot)

    Comment


      #3
      Re: Mounting 2nd Hard Drive

      1. create a directory you want the drive to mount to, for example
      Code:
      sudo mkdir /media/drive2

      2. add the partition to /etc/fstab
      /dev/hdb1 /media/drive2 ext3 defaults,umask=0000 0 2
      - '/media/drive2' is the directory you created
      - 'umask=0000' gives rwx rights to all (don't need root permissions)
      - change the final number from 1 to 2 (1 is reserved for root filesystem, so it's checked first during boot-up, 2 is for additional filesystems you want checked at boot)

      3. mount it with
      Code:
      sudo mount /dev/hdb1
      (it will mount automatically during boot)
      Ok I made a dir #1

      but how do I make a partition?

      Comment


        #4
        Re: Mounting 2nd Hard Drive

        What do you mean with "make a partition"?
        We assume your secondary disk is partitioned as EXT3, right?
        All you need to do is to let Linux know that this drive has a partition you would like to mount on a given mount-point, which was what Kubicle showed.

        Comment


          #5
          Re: Mounting 2nd Hard Drive

          Look at pic, and notice it is disabled and i cannot figure out how to enable it
          been trying for 2 days now

          it shows up in media but it is my main drive not the 37 gig one
          Attached Files

          Comment


            #6
            Re: Mounting 2nd Hard Drive

            I think it is disabled because it is not currently mounted.
            What happens if you run:
            sudo mount /dev/hda5 /media/drive2

            Do it and list this directory contents. The partition will probably show as "enabled" now.

            Comment


              #7
              Re: Mounting 2nd Hard Drive

              You said this was a 2nd hard drive(hdb1). In you attachment hdb1 is a Burner DVDRW LH-20A1H

              Hda5 and hdb1 both have the same mount point. This will get very confusing. Your fstab shows hda5 as a swap. Your att. shows sdb5 as swap

              Post your /etc/fstab again to see the changes.

              EDIT: I just realized that this was two different poster with similar problems. Now I'm confused.
              ~$sudo make me a sandwich

              Comment


                #8
                Re: Mounting 2nd Hard Drive

                when i run "/dev/hda5 /media/drive2"
                it says cannot run specifiird command
                Attached Files

                Comment


                  #9
                  Re: Mounting 2nd Hard Drive

                  It should be:

                  sudo mount -t ext3 /dev/hda5 /media/drive2
                  ~$sudo make me a sandwich

                  Comment


                    #10
                    Re: Mounting 2nd Hard Drive

                    what I am trying to do is:
                    I have a windows drive and a linux drive and a ................3rd drive seen by both so I transfer files between both OS's

                    I can see this drive from windows

                    Comment


                      #11
                      Re: Mounting 2nd Hard Drive

                      ron@ickie-k:~$ sudo mount -t ext3 /dev/hda5 /media/drive2
                      Password:
                      mount: wrong fs type, bad option, bad superblock on /dev/hda5,
                      missing codepage or other error
                      In some cases useful info is found in syslog - try
                      dmesg | tail or so

                      Comment


                        #12
                        Re: Mounting 2nd Hard Drive

                        It looks like the drive is not actually formatted ext3. Especially if windows can see the drive without any extra software. How does windows report the drive(fat32 maybe)?

                        There are apps to let windows read linux discs if that is what you have done.Post the output of:

                        sudo fdisk -l
                        ~$sudo make me a sandwich

                        Comment


                          #13
                          Re: Mounting 2nd Hard Drive

                          It doesn't matter the "-t ext3". That's why I omitted it, for many known file systems, mount don't need the type to be explicitly passed. The command would autodetect the proper file system via magic numbers and mount it.
                          Anyway, if the system reports it as EXT3, you try to mount it explicitly as EXT3 and it doesn't work, then something is wrong with the disk.

                          Comment


                            #14
                            Re: Mounting 2nd Hard Drive

                            nothing is wrong with the disk, heck until saturday i had linux on it
                            i just reformatted it ntfs

                            Comment


                              #15
                              Re: Mounting 2nd Hard Drive

                              Ok we are trying to mount a ext3 instead of ntfs. Try this

                              sudo mount -t ntfs /dev/hda5 /media/drive2
                              ~$sudo make me a sandwich

                              Comment

                              Working...
                              X