Announcement

Collapse
No announcement yet.

Kubuntu 12.4 second HDD access

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

    Kubuntu 12.4 second HDD access

    I have a second HDD on my system that I can't add folders or files to. The permission access says the owner, (my) has rwx abilities. I'm new to kubuntu and used fedora before and this same hassle also existed and wasn't resolved.

    #2
    Is it an internal HDD or connected externally via USB?
    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


      #3
      Originally posted by Snowhog View Post
      Is it an internal HDD or connected externally via USB?
      It's an internal HDD

      Comment


        #4
        Is there anything on the second HDD? Open a console and type:
        Code:
        sudo fdisk -l
        What is the /dev/sdx designation of the second HDD?
        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


          #5
          /dev/sdb1

          Comment


            #6
            In the console type:
            Code:
            sudo touch /dev/sdb1/junk.txt
            After you type in your password, there will be a file on the second HDD called junk.txt. It will be owned by root. Then type:
            Code:
            sudo chown -R username:username /dev/sdb1
            where username is your username. Assuming it's jim3297 you would type:
            Code:
            sudo chown -R jim3297:jim3297 /dev/sdb1
            This will change the ownership and group to your username for everything on the second HDD. You will then have no problem accessing it.
            Last edited by Snowhog; Feb 24, 2014, 10:17 AM. Reason: Correct syntax
            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


              #7
              Thanks, I appreciate the help.

              Comment


                #8
                I thought the problem was solved, but I am being denied access to second HDD, I don't have permission.

                Comment


                  #9
                  Look at my reply #6 again. I had a syntax error in the first action. Repeat the commands.
                  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


                    #10
                    There seems to be something else wrong. I repeated the line in #6 above and got: touch: cannot touch '/dev/sdb1/junk.txt': Not a directory

                    Comment


                      #11
                      Snowhog - can you access a block device that way? Did you mean to attempt a mount before the other test, or is this something I'm not aware of.

                      Please Read Me

                      Comment


                        #12
                        Is it formatted?
                        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                        – John F. Kennedy, February 26, 1962.

                        Comment


                          #13
                          I don't know what you mean.

                          Comment


                            #14
                            Yes, ext4

                            Comment


                              #15
                              Originally posted by jim3297 View Post
                              I don't know what you mean.
                              If this is directed at my comment, what I meant is AFAIK you can't access the file system using the block device.

                              /dev/sdb1 is a block device. One would have to mount the file system that is on the block device to access it at the file level.

                              You would have to do something like this:

                              sudo mkdir /mnt/sdb1
                              sudo mount /dev/sdb1 /mnt/sdb1


                              Then do Snowhog's commands using /mnt/sdb1 instaed of /dev/sdb1.

                              Please Read Me

                              Comment

                              Working...
                              X