Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
|
|
01-28-2007, 11:58 AM
|
#1
|
Member
Registered: Jan 2007
Location: Missouri
Distribution: Arch, openSUSE, Debian
Posts: 32
Rep:
|
cannot delete drive from root desktop - cannot mount usb flash drive - openSuSE 10.2
I have a pqi 1 gig flash drive - I finally got it working to where it will auto mount when I'm logged in as a user, but I cannot access it as root.
On the root desktop shows a drive labeled "Intellistick-2" or something like that (not logged in as root now). I cannot delete this drive. When trying to mount the drive, it says /dev/sda1 does not exist.
When the drive is mounted as a user, it's shows /media/sda1 in konquerer, and /media/disk on the computer tab of my K Menu.
I'm a newbie (less than 3 weeks total linux experience), and this is all a little confusing. I had problems opening the drive at first, so I edited my /etc/fstab file. I changed it so that it would mount /dev/sda1 to /media/usb. That worked for a while, then all of a sudden I could not access the drive any longer. I tried to copy a file there and it gave me an error. I'm guessing it has something to do with the fact that I removed the drive, and plugged it back in. I also noticed that while the drive was removed, and I browsed to the /media/usb folder, I could still see my files from the drive (though I couldn't access them, obviously). I went back to /etc/fstab I noticed that there was no reference to my 40 gig usb hard drive (which shows up as /dev/sdb1) in the file, so I deleted the /dev/sda1 entry, and now it works perfectly (as a user).
Back to root: I was getting the error about "/dev/sda1/ does not exist" before and after I deleted the /dev/sda1 entry from /etc/fstab. So that is apparently not the issue.
The questions is: how do I get rid of the junk drive on the root desktop, and mount the flash drive properly?
I'm using KDE as a user, and GNOME as root.
|
|
|
01-28-2007, 12:30 PM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
post the line you are using in /etc/fstab.
Brian
|
|
|
01-28-2007, 12:52 PM
|
#3
|
Member
Registered: Jan 2007
Location: Missouri
Distribution: Arch, openSUSE, Debian
Posts: 32
Original Poster
Rep:
|
thanks Brian1 for responding -
here is a copy of the file:
/dev/hdb2 / ext3 acl,user_xattr 1 1
/dev/hdb3 /home ext3 acl,user_xattr 1 2
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb1 swap swap defaults 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
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
btw: I have 2 hard drives - 1st for Windows XP, 2nd for openSuSE 10.2. I also have a floppy drive, a CDRW drive, a DVDRW drive, a usb hard drive, and the usb flash drive (aka problem child).
|
|
|
01-28-2007, 07:36 PM
|
#4
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Not sure how to handle the automount idea. Never use it that way. Just old school and mount manually. but I would use a line like this in fstab
Code:
/dev/sda1 /mnt/sda1 auto umask=000,users,noauto,owner,rw,dirsync 0 0
Make sure /mnt/sda1 directory exist. This is the way I do it.
Brian
|
|
|
01-28-2007, 08:01 PM
|
#5
|
Member
Registered: Jan 2007
Location: Missouri
Distribution: Arch, openSUSE, Debian
Posts: 32
Original Poster
Rep:
|
thanks again Brian1 -
but, i'm not sure that will help me get rid of the pesky "Intellistick-2" drive on root's desktop, and that might interfere with the drive mounting properly as a user
i'm guessing if i could find away to get rid of that useless drive, then it would automount properly
---
so the real question [i think] is: how do i get the "Intellistick=2" drive removed from root's desktop?
when i try to put it in the trash can, i cannot, and when i right-click and go to 'properties' it does not appear to belong to any user (root or otherwise)
i tried to modify the mount options through the properties menu and restart (both w/ the drive in and out), but no dice. i did not create the drive on root's desktop, and the flash drive does not have a given name - like my usb hard drive; which i named "Backup POS". the drive must have automounted while i was logged in as root, and created it's own name, and made it self "sticky"
|
|
|
01-28-2007, 08:14 PM
|
#6
|
Member
Registered: Jan 2007
Location: Missouri
Distribution: Arch, openSUSE, Debian
Posts: 32
Original Poster
Rep:
|
okay - never mind
i didn't do anything different, but i just now logged in as root -- the "sticky" drive still can't be deleted, but now it's [generically] named: "984.0 MB removable drive" -- it was automounted, and I could access the contents of my flash drive... i also logged back in as a user and accessed the drive just fine as well...
strange
i think ultimately: removing the /dev/sda1 line from /etc/fstab did the trick
thanks again Brian1 for responding
|
|
|
01-29-2007, 04:18 PM
|
#7
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Just not a user of the automatic mount stuff. Causes to much headache on the hardware I have.
Anyways glad to see it is working.
Brian
|
|
|
All times are GMT -5. The time now is 02:05 AM.
|
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
|
|