Find the answer to your Linux question:
Results 1 to 7 of 7
I have a freshly formatted ext3 250GB drive name sdb1. I want to mount it with read write privileges and add it to fstab. I added it to fstab but ...
  1. #1
    Just Joined! emerica's Avatar
    Join Date
    Jan 2008
    Location
    Tampa, FL
    Posts
    15

    Mount new hd?

    I have a freshly formatted ext3 250GB drive name sdb1. I want to mount it with read write privileges and add it to fstab. I added it to fstab but I don't know how to give everyone full control of the drive.

    fstab:

    Code:
    proc            /proc           proc    defaults        0       0
    /dev/sda1       /               ext3    errors=remount-ro 0       1
    /dev/sda5       none            swap    sw              0       0
    /dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
    /dev/sdb1	/media/stuff	ext3	defaults	1	2
    fdisk -l
    Code:
    Disk /dev/sda: 250.0 GB, 250058268160 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x2cb82cb7
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       30026   241183813+  83  Linux
    /dev/sda2           30027       30401     3012187+   5  Extended
    /dev/sda5           30027       30401     3012156   82  Linux swap / Solaris
    
    Disk /dev/sdb: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x036793b3
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1       30401   244196001   83  Linux
    Thanks for all help in advance.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You have to give ownership of mount_point ( folder ) to a Regular User.
    Execute id command and note down user_id and group_id of Regular User.
    Let say, user_id and group_id are emerica and emerica.
    Execute this
    Code:
    su -
    umount /dev/sdb1
    chown emerica:emerica /media/stuff
    mount -a
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined! emerica's Avatar
    Join Date
    Jan 2008
    Location
    Tampa, FL
    Posts
    15
    My username is travis so I did:

    Code:
    su -
    umount /dev/sdb1
    chown travis:travis /media/stuff
    mount -a
    It still is not letting me add/edit files and folders. Thanks for your help so far DC. Does everything in my fstab look ok?

  4. #4
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    hi

    you must give write permissions for regular user to the mount point
    Code:
    chmod 755 /media/stuff
    maybe you need add yourself to disk group, and change permissions the device node file
    Code:
    as root
    usermod -G disk travis
    chmod 664 /dev/sdb1

  5. #5
    Just Joined! emerica's Avatar
    Join Date
    Jan 2008
    Location
    Tampa, FL
    Posts
    15
    I have permissions for the folder because when this drive was NTFS it was fine plus I made the dir with my user. My hd still won't let me write to it.

  6. #6
    Just Joined! emerica's Avatar
    Join Date
    Jan 2008
    Location
    Tampa, FL
    Posts
    15
    The folder is not the problem because when I go to the drive directly through the computer browser application, I still can't write to it. Is there anyway to reformat it and give myself access to it?

  7. #7
    Just Joined! emerica's Avatar
    Join Date
    Jan 2008
    Location
    Tampa, FL
    Posts
    15
    FIXED IT!

    Logged in as root and just changed the permissions via gui.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •