Thread: how to mount and umount a partition as user (not root) can it be done?
i have been working on problem trying automounting lvm'd partition. problem solved following instructions given in (absolute beginners) forum (which btw).
first setup mount point
1) "sudo mkdir /media/storage
have give full write permissions directory. command.
code:
2)sudo chmod 777 /media/storage
have edit /etc/fstab"
there suggestion format ntfs with:
3)" /dev/(something) /media/storage ntfs-3g ro,user,auto,fmask=0177,dmask=0077,uid=1000 0 0"
drive, , partition, partitioned ext3 , want ext3 now...
have fstab setup like:
***********************
# /etc/fstab: static file system information.
#
# use 'blkid -o value -s uuid' print universally unique identifier
# device; may used uuid= more robust way name
# devices works if disks added , removed. see fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/volumegroup1-root / ext3 errors=remount-ro 0 1
# /boot on /dev/sda1 during installation
uuid=90615dd1-c985-46d6-a441-de6d6a058e90 /boot ext3 defaults 0 2
/dev/mapper/volumegroup1-home /home ext3 defaults 0 2
/dev/mapper/volumegroup1-swap none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/mapper/volumegroup1-data4 /media/storage ext3 defaults 0 0
**********************
tried "user,auto,fmask=0177,dmask=0077,uid=1000" , out rw couldn't work... these options yielded error message, failed mount drive , listed above works auto mount it, giving me read , write permission partition volumegroup1-data4 .
so....
close... automounting it, when plugin usb key, unlike usbkey, can't umount gui. auto mount done fstab , @ root level, necessitating "sudo umount /dev/mapper/volumegroup1 which lot remember , type each time want unmount partition.
how can unmount drive external usb drive? suppose script it, there must more elegant way... wanted have read/write permission in automounted drive , have it, usbkey... can write drive , delete drive...
thanks,
wyatt
hi
open terminal , type: mount -a
the system give answer question
cia
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] how to mount and umount a partition as user (not root) can it be done?
Ubuntu
Comments
Post a Comment