The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Linux HDD Trouble

TyrantCowTyrantCow Registered User regular
edited April 2007 in Help / Advice Forum
In my extrodinarily slow quest to convert to linux (kubuntu) I keep getting caught up on the seemingly simple things...

I installed Kubuntu on a 10GB harddrive I had... I also have a 120GB that was in a Windows box. Now, I got everything off the 120GB that I want, and I wanted to wipe it out and get rid of the NTFS. So, I went and downloaded a GParted LiveCD and ran that guy. I proceeded to delete every on the 120GB and format it as ext3 (figured that was the way to go?). GParted seemed to do it's thing and I rebooted.

I mounted the drive and everything seemed to look okay... but... I can't seem to write or read to it due to "permission denied". It's got a Lost&Found directory in it, which I'm assuming is default with ext3, I can't open it, and I can't write (create a file/directory) anywhere on it. The permission settings of the 10GB and 120GB don't look any different from eachother in Konqueror...

Here's /etc/fstab/
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/hdd /media/cdrom0 auto user,atime,noauto,rw,dev,exec,suid 0 0
/dev/hdb1 /mnt/hdb ext3 nouser 0 0

... hdb1 being the 120GB ...

TyrantCow on

Posts

  • JaninJanin Registered User regular
    edited April 2007
    I'm surprised KDE doesn't offer you some sort of GUI for managing partitions. Luckily, the fix is simple: change the /dev/hdb1 line to this:
    /dev/hdb1 /mnt/hdb ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
    

    Janin on
    [SIGPIC][/SIGPIC]
  • TyrantCowTyrantCow Registered User regular
    edited April 2007
    Changed fstab... nothing changed.

    If I try to go in to the Lost&Found folder, mentioned previously, I get: Could not enter folder /mnt/hdb/Lost&Found.
    If I try to create a file on the drive: Access denied.
    Could not write to /mnt/hdb/$filename.

    The Lost&Found folder's got a big 'ol lock on it too, as if to say...
    "There's obviously a permission issue here... good luck figuring it out."

    Could GParted have done something wonky? -- seems to work fine for other people out there on the internet...
    Both harddrives say they are owned by root...

    TyrantCow on
  • JaninJanin Registered User regular
    edited April 2007
    You'll have to reboot to have your fstab changes take effect. What's happening is that by default, only the super user may write to drives. The options I told you to add allow regular users access as well.

    Note that you may still have to create a directory /mnt/hdb/mystuff, and then change the permissions on that to be owned by your user. However, Konqueror should certainly be able to handle that. It'll probably ask for an admin password to do it.

    Janin on
    [SIGPIC][/SIGPIC]
  • TyrantCowTyrantCow Registered User regular
    edited April 2007
    This is after a reboot.
    There is GUI management for this; however, that just reflects the fstab entries.

    I cannot create a folder, when I try it results in one of the Konqueror errors listed above.

    I appreciate the help, jmill!

    TyrantCow on
  • TyrantCowTyrantCow Registered User regular
    edited April 2007
    I've been searching for hours now... trying umask, worthless... maybe repartition as FAT32 or something :x

    TyrantCow on
  • japanjapan Registered User regular
    edited April 2007
    I used this guide when I was adding a second drive to my Ubuntu box.

    It sounds like it's mounted, but the permissions aren't set right. Try "sudo chmod 777 /mnt/hdb1" in the command line. What that should do is set the permissions on the drive so that anyone can access it.

    japan on
  • TyrantCowTyrantCow Registered User regular
    edited April 2007
    That Site wrote:
    Next, here's one of the most important things....and somethng that I didn't find in any of the articles on the web when I was trying to figure out how to do this. You have to make the mount point directory 'writable'. In other words, you have to give it writable permissions. They have to be world-writable permissions since you aren't a member of the 'root' group in which all mount points are owned.

    Wow... that'd be it!
    Thanks japan & jmill!

    TyrantCow on
Sign In or Register to comment.