Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-09-2010, 01:09 AM   #1
LQ Newbie
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
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...
Old 02-09-2010, 01:34 AM   #2
Registered: Jun 2009
Posts: 87

Rep: Reputation: 17
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.
Old 02-09-2010, 04:07 AM   #3
sumeet inani
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
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.

Last edited by sumeet inani; 02-09-2010 at 04:41 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudo let-me-use-my-pendrive ? howarddevore Ubuntu 6 12-17-2007 07:00 AM
How to mount pendrive from terminal??? pusrob MEPIS 4 05-16-2007 11:55 AM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 08:00 AM
pendrive mount myuran Linux - Hardware 1 04-15-2006 01:27 AM
usb pendrive mount eg72 Linux - Hardware 1 05-16-2004 11:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration