-   Linux - Newbie (
-   -   Mount Pendrive with SUDO (

dbshafi 02-09-2010 02:09 AM

Mount Pendrive with SUDO
i can login into my linux only as normal user "abc".
my slax is giving HAL error in automounting pendrive.

to mount a pendrive i have to login as root in a terminal
with SU command and then i can access the pendrive through command line.
i normally copies my files into "abc" home directory and browses it from
there in konquorer file browser......this is tedious job...everytime

My idea is to have an icon on "abc" desktop ...which onclick will execute
a shell script and manually mount my pendrive in READ WRITE mode at background and display the pendrive folder contents.... using KDE Scripting.

please help.......or any simple solution please suggest...

orangesky 02-09-2010 02:34 AM

replace ntfs-3g with ext3 if you formatted it as such.

cd /mnt/
mkdir removeable


mount -t ntfs-3g /dev/sdb /mnt/removeable -o force
It should automatically be in read and write mode, and the window manager should pop up a window of it.

KDE is just your display manager. Both gnome and kde use bash I believe so it doesn't matter.

sumeet inani 02-09-2010 05:07 AM

I came across a similiar problem when I got message related to invalid label of USB then
As one of senior members suggested to me
You can comment line containing /dev/sdb1 ( by prefixing # ) in /etc/fstab & append following
/dev/sdb1 /pendrive vfat defaults,user,noauto 0 0
Provided there is a folder named /pendrive.
Now , no need to go root for mounting , copying & unmounting USB.Just do as normal user.


$#lines beginning with # are for explanation only no need to type them in terminal
$#Insert USB
$mount /pendrive
$#access USB in your file manager
$umount /pendrive
$#Now you can eject USB

Also system will not prompt you when you insert USB so that you can plug out USB before you ran 'mount /pendrive' or after you ran 'umount /pendrive'.

If you find this useful than thank me by pressing thumbs up button.Thank You.

All times are GMT -5. The time now is 04:01 PM.