Now we mount /dev/sdb1 (read-only) # mount -o ro /dev/sdb1 /mnt/backupĭrwx- 2 user user 4096 Jan 1 07:45 backup/ĭrwx- 2 user user 4096 Jan 1 07:45. Starting off we have an empty folder 'backup' to serve as the mount point,ĭrwxr-x- 5 root root 4096 May 30 20:59. Then user will become the owner of the mount point upon successful mount. So if /dev/sdb1 contains an ext4 filesystem (say a backup) owned by user The mount point upon mounting become those of the filesystem tree being Unless overridden by mount options GID= or UID= the owner and permissions of You can then set ownership and permissions. Is there some reason you need to use FAT ? If not, I would back up the data and use a linux native file system. On a side note, bodhi.zazen made a good point See for some examples of propper file permissions If you need the media user to access it, you can set the permissions to 764, and add them to the security group. You can set the permissions on the mount point once it's mounted with chmod or specify them in /etc/fstab. Remove that option and it will mount on startup. The "noauto" makes this NOT automatically mount when the system starts and parses the /etc/fstab file. When you set the permission open it worked when you server# sudo mount /dev/sdb2 /home/storage -o umask=000Īs for it not auto mounting on reboot UUID=8C52-C1CD /home/storage auto user,umask=000,utf8, ->noauto<- 0 0 The permissions for everything are determined by how the drive is mounted. FAT / FAT32 formatted drives don't support file permissions. Your problem seems to be about the permissions you have set. if this is not possible - I would like to know how to remount my USB after every reboot. I'm puzzled how then this works with all the people posting on the net their success stories. It seems fstab should hold only mounts for static drives, not any sort of usb stuff. What am I doing wrong? I do suspect I messed up something:) Mountall: Filesystem could not be mounted: /etc/fstab:Īnd also - sudo mount -a never really does anything. Mountall: mount /etc/fstab: terminated with status 32 I tried vfat too, but always on the reboot Ubuntu stops when processing fstab (I think) with the message (took from the log): fsck from util-linux 2.20.1 The fstab line I added: UUID=8C52-C1CD /home/storage auto user,umask=000,utf8,noauto 0 0 So I thought I'll be fine if I use fstab to mount this partition ( /dev/sdb2) every time i reboot. BUT - that is manually mounted - now i need it to remount on every reboot. A bit overdone of course, since the storage folder becomes writable for everyone. If I use mount with options: server# sudo mount /dev/sdb2 /home/storage -o umask=000 I get what I need. If I use mount command without sudo as the user media - i'm not allowed. It mounts but the /home/storage receives root as owner and group and doesn't allow media user to write there. If I just use server# sudo mount /dev/sdb2 /home/storage Ultimately I need a perma-mount /dev/sdb2 to /home/storage with access right (rw) for the user media. I know there are similar questions but I get some specific problem I can't overcome.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |