LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-09-2010, 02:09 AM   #1
dbshafi
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...
regards
shafi
 
Old 02-09-2010, 02:34 AM   #2
orangesky
Member
 
Registered: Jun 2009
Posts: 87

Rep: Reputation: 17
replace ntfs-3g with ext3 if you formatted it as such.
Code:
cd /mnt/
mkdir removeable
Code:
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, 05:07 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
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.

Just
Code:
$#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 05:41 AM.
 
  


Reply


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 08:00 AM
How to mount pendrive from terminal??? pusrob MEPIS 4 05-16-2007 12:55 PM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 09:00 AM
pendrive mount myuran Linux - Hardware 1 04-15-2006 02:27 AM
usb pendrive mount eg72 Linux - Hardware 1 05-16-2004 12:20 PM


All times are GMT -5. The time now is 07:45 AM.

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