Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22
hey guys, i just formatted my maxtor hard drive and added it to my linux computer. It is in ext3 format. I mounted it by modifying my fstab. I can't ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    11

    fstab issue, permissions issue with mount

    hey guys,

    i just formatted my maxtor hard drive and added it to my linux computer. It is in ext3 format. I mounted it by modifying my fstab. I can't seem to be able to write to it. It gives a permission error. Here is my fstab part for the new maxtor drive.

    /dev/hdc1 /mnt/maxtor ext3 rw,user,auto 0 0

  2. #2
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Try this:
    Code:
    /dev/hdc1	/mnt/maxtor	ext3	rw,user,auto,umask=000	0	0
    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    11
    hmm...now i get the following error when i try to click on the drive from my system:/media

    mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    11
    When i have the following set in the fstab, it lets me write to it as root but not as a regular user.

    /dev/hdc1 /mnt/maxtor ext3 rw,user,auto 0 0

    any ideas what i can do?

  5. #5
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    have you looked at the permissions of /mnt/maxtor?
    who has permissions to write?

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    post the output of fdisk -l command.







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Jan 2007
    Posts
    11
    this is the output of the fdisk -l command for the drive i want to mount

    Disk /dev/hdc: 122.9 GB, 122942324736 bytes
    255 heads, 63 sectors/track, 14946 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1 1 14946 120053713+ 83 Linux

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    add this code in /etc/fstab file.
    Code:
    /dev/hdc1     /mnt/maxtor    ext3    defaults 0 0
    execute 'mount -a' after editing fstab file.







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Jan 2007
    Posts
    11
    same situation. I can read and write with root and can only read with my user and not write

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    okk ! add uid and gid in the mount line.
    Code:
    /dev/hdc1        /mnt/maxtor     ext3   defaults,uid=<user_id>,gid=<group_id> 0 0
    check user's id and gid though 'id' command.




    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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