Announcement

Collapse
No announcement yet.

[SOLVED!] Mounting Hard drives!!!!!

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

    #31
    Re: HELP!!!!!

    total 20
    drwxr-xr-x 5 root root 4096 2008-11-22 16:58 .
    drwxr-xr-x 20 root root 4096 2008-11-17 16:30 ..
    lrwxrwxrwx 1 root root 6 2008-11-17 16:10 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2008-11-17 16:10 cdrom0
    drwxr-xr-x 2 root root 4096 2008-11-17 16:10 cdrom1
    lrwxrwxrwx 1 root root 45 2008-11-17 16:13 .directory -> /etc/kubuntu-default-settings/directory-media
    drwxr-xr-x 5 root root 4096 2008-11-22 16:22 extra
    -rw-r--r-- 1 root root 0 2008-11-22 16:58 .hal-mtab
    lrwxrwxrwx 1 root root 42 2008-11-17 16:13 .hidden -> /etc/kubuntu-default-settings/hidden-media

    Comment


      #32
      Re: HELP!!!!!

      @ Snowhog

      Thanks for your explanation.

      Indeed, I just plugged in a usb stick to check and ls -la /media comes up with:

      drwxr-xr-x 5 ingo root 4096 1970-01-01 01:00 disk
      So it has given me ownership of the dynamically created mount point but kept the root group. In andreas' case we are dealing with a somewhat strange occurrence in that he put a hard mountpoint into a space which these days is primarily used for dynamic stuff. What I'm trying to say is that the root:root issue is of course to be expected but that rules applicable to dynamically changing mountpoints do not apply.

      The way I understand you is that you are saying we could create a mountpoint /bla which is root:root and mount something via fstab to which the user/any user has rw access. Is that right?
      Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

      Comment


        #33
        Re: HELP!!!!!

        Originally posted by toad
        The way I understand you is that you are saying we could create a mountpoint /bla which is root:root and mount something via fstab to which the user/any user has rw access. Is that right?
        Yes. My fstab file:
        # /etc/fstab: static file system information.
        #
        # <file system> <mount point> <type> <options> <dump> <pass>
        proc /proc proc defaults 0 0
        # /dev/sda1 Intrepid Ibex Root
        UUID=7fdf0d2b-dd11-441c-a577-4936232049f2 / ext3 relatime,errors=remount-ro 0 1
        # /dev/sda5 Intrepid Ibex Home
        UUID=b6fd75be-0522-4136-9d68-ae7d24d6c5bb /home ext3 relatime 0 2
        # /dev/sda2 Gutsy Gibbon Root
        UUID=3cb6e1de-7583-47a4-b487-58f1502c63a2 /media/sda2 ext3 defaults,relatime 0 2
        # /dev/sda6 Gutsy Gibbon Home
        UUID=47d4734a-2126-47be-97c5-283c1fa41e47 /media/sda6 ext3 defaults,relatime 0 2
        # /dev/sda3 Hardy Heron Root
        UUID=f6ca0eb3-83b3-461b-8cae-4809e701ea39 /media/sda3 ext3 defaults,relatime 0 2
        # /dev/sda7 Hardy Heron Home
        UUID=62d28f0b-82c2-483e-b0d7-e92059f35db2 /media/sda7 ext3 defaults,relatime 0 2
        # /dev/sda8
        UUID=90d97410-ea54-40e3-8795-43ee0443df4d none swap sw 0 0
        # /dev/sdc1 30G USB HD
        UUID=2a28790b-7755-4b68-8ed0-d0447b57eff8 /media/USB_30G ext3 defaults,relatime 0 2
        # /dev/sde1 60G USB HD
        UUID=100B-2074 /media/USB_60G vfat defaults,relatime 0 2
        # /dev/sdb1 5G pcmci HD
        UUID=1BD7-0D75 /media/PCMCIA_5G vfat defaults,relatime 0 2
        /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
        /dev/sdd /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
        and my /media directory:
        paul@laptop:~$ ls -l /media
        total 64
        lrwxrwxrwx 1 root root 6 2008-07-18 22:28 cdrom -> cdrom0
        drwxr-xr-x 2 root root 4096 2008-07-18 22:28 cdrom0
        lrwxrwxrwx 1 root root 7 2008-07-18 22:28 floppy -> floppy0
        drwxr-xr-x 2 root root 4096 2008-07-18 22:28 floppy0
        drwxr-xr-x 2 root root 4096 1969-12-31 14:00 PCMCIA_5G
        drwxr-xr-x 21 root root 4096 2008-07-04 11:30 sda2
        drwxr-xr-x 21 root root 4096 2008-10-15 20:00 sda3
        drwxr-xr-x 4 root root 4096 2007-12-05 12:16 sda6
        drwxr-xr-x 4 root root 4096 2008-04-05 17:40 sda7
        drwxr-xr-x 4 root root 4096 2008-11-09 10:33 USB_30G
        drwxr-xr-x 14 root root 32768 1969-12-31 14:00 USB_60G
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #34
          Re: HELP!!!!!

          I edited to the fstab to your post snowhog, but it didn't give me access...

          I'll wait for the cure from you two...

          Comment


            #35
            Re: HELP!!!!!

            Whatever, the proof of the pudding is in the eating!

            andreas - go ahead and change that line in your fstab to
            UUID=b0098e7f-b258-462d-bacc-c013a95da281 /media/extra ext3 defaults,relatime 0 0
            Now do a

            Code:
            sudo mount -a
            Now check whether you have rw access to /media/extra.

            If it doesn't work do a

            Code:
            sudo chmod your_username:your_group_name /media/extra
            where your_group_name is the same as your_username (so why didn't I write your_username:your_username? It is getting late...) followed by a

            Code:
            sudo mount -a
            One of these MUST work
            Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

            Comment


              #36
              Re: HELP!!!!!

              Well, stone me. Cheers, Snowhog. Have another pipe

              andreas - did you do a
              Code:
              sudo mount -a
              after you changed the fstab?
              Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

              Comment


                #37
                Re: HELP!!!!!

                Was just about to suggest running the sudo mount /media/extra command and reporting on the result. I'm in agreement, that the drive/partition should mount.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #38
                  Re: HELP!!!!!

                  I don't know what my group name is...

                  Comment


                    #39
                    Re: HELP!!!!!

                    If you are going to try toad's suggestion, then in the console you type:
                    Code:
                    sudo chown [user_name]:[user_name] /media/extra
                    where [user_name] is what you login under. Don't include the braces.
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #40
                      Re: HELP!!!!!

                      Weirdness....

                      I did the following command...

                      sudo nano /media/extra/testfile

                      I wrote some garbage in there, then saved it. The file appears to have written to the now mounted drive, but I can't access it through the GUI, or KDE4 I should say. I tried copying a file to the drive in Dolphin, and access denied.

                      Any ideas? seems we're getting close.

                      Comment


                        #41
                        Re: HELP!!!!!

                        I am happy you get the impression, but I don't since you did that as root. Can you follow the directions one by one (and read them carefully along the way ) and report back if it is working or not with explanation of what you have done?
                        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                        Comment


                          #42
                          Re: HELP!!!!!

                          Woohoo!!!!!!!!!!!!

                          seem to have access now! Let me reboot and see what happens...

                          Comment


                            #43
                            Re: HELP!!!!!

                            a little weirdness still going on, so I need to reboot again. it seems the sda5 swap and the sdb5 extra have switched places. extra is now designated as sda5. when i booted back in the first time, it dropped me back to the login screen three times before i could log in. this time, it came straight and and the sd thing is different. so, let me reboot once again, and see if everything is normal.

                            Comment


                              #44
                              Re: HELP!!!!!

                              That's why we use UUIDs in the fstab file instead of /dev/sdxx. Don't worry about it.
                              Windows no longer obstructs my view.
                              Using Kubuntu Linux since March 23, 2007.
                              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                              Comment


                                #45
                                Re: HELP!!!!!

                                you guys are great... thanks tons! everthing seems pretty solid once again, and I can access the drive. the next question is how do I redirect programs to that drive, because I only have a 18gig primary, but I'll save that for another post. this computer is going to my g-friends daughter, so I need to get it right before it leaves here. gonna be sad to see it go actually... lol

                                is it possible to make the scroll bars wider, and the minimize maximize buttons larger? can't seem to find a way to do this in kubunutu.

                                Comment

                                Working...
                                X