LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-04-2009, 01:06 PM   #1
kutlu
LQ Newbie
 
Registered: Dec 2007
Posts: 27

Rep: Reputation: 15
automount usb hard drive at startup


I am trying to automountmount usb hard drive at computer startup

I have added following line to fstab:

/dev/disk/by-label/Fre... /home/kutlu/FreeAgent ntfs-3g defaults 0 0

This is ok at startup, but when I unplug and plug it, it does not mount again.

Do you now how to solve that problem
Or do you know how to mount all or some removable media at startup?


-----------
Debbian Lenny
Disk: Freeagent Go
Computer: XPS M1330
 
Old 01-04-2009, 01:11 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
I have never done this before but I think that the solution can be found using udev.

Have a look at the files in /etc/udev/rules.d and work it out. I used it for ethernet cards before, it should work for USB disks.
 
Old 01-04-2009, 01:59 PM   #3
kutlu
LQ Newbie
 
Registered: Dec 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Sorry about not giving enough detail

When I unplug and plug, conversation window that I always see in kde comes, ask me to open folder or etc, I say open, and It says "not enough permission".

So the required attemp is done, but there is a problem I cannot figure out.

There s also a problem with previously mounted folder. It is broken or sth when not unmounted before unplug.

Everything works fine if I do not add that line to fstab.
 
Old 01-04-2009, 02:05 PM   #4
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
Instead defaults I would add umask=022 that gives write/read permission for root and read permission for users
Code:
... ... ntfs-3g umask=022 0 0

Last edited by Nikosis; 01-04-2009 at 02:09 PM.
 
Old 01-04-2009, 02:32 PM   #5
kutlu
LQ Newbie
 
Registered: Dec 2007
Posts: 27

Original Poster
Rep: Reputation: 15
When I use defaults, After startup, I have each permission to everybody.

Reading is permissiable, problem with permissions is, I do not have permission to mount it after it is unplugged and plugged. But I don't know how to solve it.
 
Old 01-04-2009, 02:44 PM   #6
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
Try change umask from umask=022 to umask=0,user
Are you in plugdev group?

Last edited by Nikosis; 01-04-2009 at 03:00 PM.
 
Old 01-04-2009, 03:30 PM   #7
kutlu
LQ Newbie
 
Registered: Dec 2007
Posts: 27

Original Poster
Rep: Reputation: 15
adding "users" did something. I can umount it myself this time.
I had a new error, I thing it is about ntfs-3g
ntfs-3g-mount: failed to open /dev/fuse: Permission denied

yes, I'm in plugdev.
 
Old 01-04-2009, 04:12 PM   #8
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
What about this
Quote:
ntfs-3g defaults,umask=000,gid=46,uid=1000 0 1
 
Old 01-05-2009, 01:31 AM   #9
kutlu
LQ Newbie
 
Registered: Dec 2007
Posts: 27

Original Poster
Rep: Reputation: 15
I decided to use another method, I am using pmount. I added it to startup and it works fine with user account.
I cannot mount to desired directory, but I'm fine now.

Thanks, I will try last sugggestion sooner.
 
  


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
USB Drive Does Not Automount (GNOME) carlosinfl Debian 12 02-12-2009 09:21 PM
USB drive won't automount linuxhippy Slackware 25 11-24-2007 10:52 AM
automount of usb drive konramesh Linux - Hardware 1 12-02-2006 10:16 PM
Automount USB disk at startup becho4 Linux - Software 1 07-08-2005 08:36 AM
Automount second hard drive? Whiskers SUSE / openSUSE 2 05-06-2005 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:29 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
Open Source Consulting | Domain Registration