Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-07-2006, 01:23 PM
|
#1
|
LQ Newbie
Registered: Jun 2006
Posts: 10
Rep:
|
Editing my fstab .... please help
Ok so i wish to set my computer so that when i plug in my 80gb usb drive it will automount (currently using "mount /dev/sda5"). Below is a copy of my /etc/fstab file
Code:
/dev/hda5 swap swap defaults 0 0
/dev/hda6 / reiserfs acl,user_xattr 1 1
/dev/hda7 /home reiserfs acl,user_xattr 1 2
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
I also have a dodgy drive D that sits on my desktop as a shortcut by when i click on it, it say "could not create dbus message"
So my question is what should the fstab look like so that the usb will mount automatically when plugged in and how do i remove the D drive sitting on my desktop.
p.s i use suse 10.1 with gnome and xgl
|
|
|
07-07-2006, 01:33 PM
|
#2
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
Change
Quote:
/dev/sda5 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
|
to
Quote:
/dev/sda5 /windows/D vfat auto,users,gid=users,umask=0002,utf8=true 0 0
|
should do the trick.
I don't think I understand your second question.
|
|
|
07-07-2006, 02:08 PM
|
#3
|
LQ Newbie
Registered: Jun 2006
Posts: 10
Original Poster
Rep:
|
Ok, doing what you suggested above removed the hdd icon from my desktop labelled D but in order to get access to the usb drive i still need to do "mount /dev/sda5" so that clicking on the "80gb usb" icon allows access
Any ideas?
When i type "mount /dev/sda5" the desktop symbol change slightly!
When i Click on the "80gb usb" symbol that appears when i plug in my usb drive results in the following error message:
/dev/sda5 found in /etc/fstab
does this mean that two things are asigned the same /dev/sda5?
Last edited by zcapx32; 07-07-2006 at 02:11 PM.
|
|
|
07-07-2006, 02:36 PM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Auto mount using "auto" option in fstab only works on boot. If you have the USB drive plugged in before you boot, linux assigns it differently than if you use hotplug. I think what you meant to say is:
"/dev/sda5 not found in /etc/fstab"
When you plug in the USB drive, do
dmesg | tail
and see where hotplug assigned it. Then, manually mount it, or make a line in fstab for that device, too.
|
|
|
07-07-2006, 02:50 PM
|
#5
|
LQ Newbie
Registered: Jun 2006
Posts: 10
Original Poster
Rep:
|
when i type dmesg | tail it says:
sda: sda1 <sda5>
So i am not to sure what that means?
That problem I have is before I changed suse 10.1 to run with xgl, plugging in my usb drive allowed me immediate access without the need for typing "mount /dev/sda5". Now when i plug it in a icon appears on the desktop and if i double click it, it says "/dev/sda5 found in /etc/fstab" (checked it again). When i then type "mount /dev/sda5" ithe icon changes and allows me to access it.
What I am looking to do is edit my fstab so that when linux is already booted plugging in my usb drive allows me to access it without out opening the terminal and typing "mount /dev/sda5"
IS this possible anymore?
P.s I am a newbie! So I would not know what to added to fstab to mount the usb device!
p.p.s Right clicking on the icon and selecting "mount" will produce the "/dev/sda5 found in /etc/fstab" error also?
Last edited by zcapx32; 07-07-2006 at 03:08 PM.
|
|
|
07-07-2006, 04:03 PM
|
#6
|
LQ Newbie
Registered: Jun 2006
Posts: 10
Original Poster
Rep:
|
Help Me Anyone?
|
|
|
All times are GMT -5. The time now is 06:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|