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 ...
- 02-10-2008 #1
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:
fdisk -lCode: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
Thanks for all help in advance.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
- 02-10-2008 #2
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
- 02-10-2008 #3
My username is travis so I did:
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?Code:su - umount /dev/sdb1 chown travis:travis /media/stuff mount -a
- 02-10-2008 #4Linux User
- Join Date
- Feb 2006
- Posts
- 484
hi
you must give write permissions for regular user to the mount point
maybe you need add yourself to disk group, and change permissions the device node fileCode:chmod 755 /media/stuff
Code:as root usermod -G disk travis chmod 664 /dev/sdb1
- 02-10-2008 #5
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.
- 02-10-2008 #6
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?
- 02-10-2008 #7
FIXED IT!
Logged in as root and just changed the permissions via gui.


Reply With Quote
