Re: [gentoo-user] Mounting USB Flash Drive
On Mon, 3 Apr 2006 17:33:55 -0700, Richard Fish wrote: As long as you had the hal USE flag set when you emerged KDE, it should detect the device and offer to mount it for you (KDE 3.5 has an option to mount it automatically). You may need to fiddle with the settings in the Storage Media section of the Control Centre. And your user needs to be a member of the group 'plugdev'... Ah, yes. I forgot about that. Good catch! -- Neil Bothwick A printer consists of three main parts: the case, the jammed paper tray and the blinking red light. signature.asc Description: PGP signature
Re: [gentoo-user] Mounting USB Flash Drive
On Sat, 01 Apr 2006 03:09:07 +, b.n. wrote: I can just nano /etc/fstab and add /dev/sda1? Not only you can: you actually have to! :) No you don't. The automounters in KDE and GNOME don't want fstab entries for the devices. -- Neil Bothwick Head: (n.) the part of a disk drive which detects sectors and decides which of the two possible values to return: 'lose a turn' or 'bankrupt.' signature.asc Description: PGP signature
Re: [gentoo-user] Mounting USB Flash Drive
On Fri, 31 Mar 2006 16:42:30 -0800, Lord Sauron wrote: No, I had to manually create a mount point via the GUI and then enable the thing and all this stuff. Then KDE just looked at /media and slapped that on my desktop. I mounted my windows partition (back when I had one) on /media so that I could have that on my desktop too. As long as you had the hal USE flag set when you emerged KDE, it should detect the device and offer to mount it for you (KDE 3.5 has an option to mount it automatically). You may need to fiddle with the settings in the Storage Media section of the Control Centre. -- Neil Bothwick SEX ON TV HAS TO GO! I keep falling off! signature.asc Description: PGP signature
Re: [gentoo-user] Mounting USB Flash Drive
Neil Bothwick wrote: No you don't. The automounters in KDE and GNOME don't want fstab entries for the devices. Not using automounters, I'm quite puzzled. Do they build a temporary mount point or what? What if I *want* them to use a mount point I decide? m. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
On Mon, 03 Apr 2006 20:15:31 +, b.n. wrote: No you don't. The automounters in KDE and GNOME don't want fstab entries for the devices. Not using automounters, I'm quite puzzled. Do they build a temporary mount point or what? What if I *want* them to use a mount point I decide? They mount on /media/devicename. If you want to override this, you can create an entry in fstab, but this is definitely not compulsory. A better way to change the mount name (IMO) is to use a udev rule to change the device name. All my removable devices mount with meaningful names. /media/cf, media/sd, /media/camera etc. -- Neil Bothwick Excuse me for butting in, but I'm interrupt-driven. signature.asc Description: PGP signature
Re: [gentoo-user] Mounting USB Flash Drive
On 4/3/06, Neil Bothwick [EMAIL PROTECTED] wrote: As long as you had the hal USE flag set when you emerged KDE, it should detect the device and offer to mount it for you (KDE 3.5 has an option to mount it automatically). You may need to fiddle with the settings in the Storage Media section of the Control Centre. And your user needs to be a member of the group 'plugdev'... -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
2006/4/1, Lord Sauron [EMAIL PROTECTED]: On 3/31/06, Mait [EMAIL PROTECTED] wrote: Hey! don,t hurry relax ~ : ) Relax? Sounds like something that unemployed people do : \ Sorry for my poor english : ) It means sorry, too many docs to read oh.. english drive me crazy It's also useful in traditional way $ man mount $ man fstab Wow... I didn't know that man had a fstab entry. I thought it was only for commands and stuff... -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
Don't know if it relates to your case but I had a similar problem until I realized the device was formatted FAT16. Once I added proper support to my kernel config it was smooth sailing. --- Lord Sauron [EMAIL PROTECTED] wrote: Hi - again. You are totally free to get tired of me and completely ignore me. Please, just make sure that you all don't do it all at the same time ; ) Anyways, I've been working to try and mount my USB Flash disk so that I can use the stuff I backed up from my old Kubuntu install. However, /dev/sda1 isn't in /etc/fstab, though usbfs is in /etc/mtab. Sort of a side thing... what's the difference between fstab and mtab? Well, I've narrowed it down to at least one thing: I don't have a mount point for my poor USB Disk. I looked through *all* the 1,400 some-odd lines in the mount command's man page, however, I got no clues, not even a related command. I also # ls /bin to see if there was anything there... I didn't see anything that made sense to me. I've only ever mounted stuff using the graphical tool that Kubuntu supplied, so that's where my ignorance comes from. Thanks for your help!' -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- gentoo-user@gentoo.org mailing list
[gentoo-user] Mounting USB Flash Drive
Hi - again. You are totally free to get tired of me and completely ignore me. Please, just make sure that you all don't do it all at the same time ; ) Anyways, I've been working to try and mount my USB Flash disk so that I can use the stuff I backed up from my old Kubuntu install. However, /dev/sda1 isn't in /etc/fstab, though usbfs is in /etc/mtab. Sort of a side thing... what's the difference between fstab and mtab? Well, I've narrowed it down to at least one thing: I don't have a mount point for my poor USB Disk. I looked through *all* the 1,400 some-odd lines in the mount command's man page, however, I got no clues, not even a related command. I also # ls /bin to see if there was anything there... I didn't see anything that made sense to me. I've only ever mounted stuff using the graphical tool that Kubuntu supplied, so that's where my ignorance comes from. Thanks for your help!' -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
Lord Sauron wrote: Sort of a side thing... what's the difference between fstab and mtab? Thanks for your help!' -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 The file fstab is what you edit. The file mtab is what the system uses to keep up with what is where and you should NOT edit it. No clue on the USB thing but I dread the day I have to start. Hope that helps. Dale :-) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
Anyways, I've been working to try and mount my USB Flash disk so that I can use the stuff I backed up from my old Kubuntu install. However, /dev/sda1 isn't in /etc/fstab, though usbfs is in /etc/mtab. Well, I've narrowed it down to at least one thing: I don't have a mount point for my poor USB Disk. If you have and /etc/fstab, and you already know your usb flash disk is /dev/sda1, well, just add the right fstab entry. Mine looks this way: /dev/sda1 /mnt/removable vfat noauto,async,user,exec 0 0 I looked through *all* the 1,400 some-odd lines in the mount command's man page, however, I got no clues, not even a related command. I also # ls /bin to see if there was anything there... I didn't see anything that made sense to me. your effort is nice, but have you thought about Google or another search engine? I've only ever mounted stuff using the graphical tool that Kubuntu supplied, so that's where my ignorance comes from. I think you refer to the hey-my-usb-disk-appears-magically-on-my-desktop! trick. I guess it's managed by HAL, you can have it on Gentoo too (don't ask me for info, since I don't use it) m. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
I can just nano /etc/fstab and add /dev/sda1? Not only you can: you actually have to! :) Check the Gentoo handbook for details. When I did install Gentoo (in december 2004), I had to write *all* my fstab by hand, I don't know if now it's different. I thought fstab was generated by the machine or something, and that it isn't a terribly good idea to edit it. A fstab file is ususally generated by the operating system installer, but, being it a plain text configuration file, it is thought to be editable by root. It has a pretty straightforward syntaxis. The machine-generated thing you shouldn't touch, instead, is /etc/mtab. This one contains the *current* state of mounted devices. I don't have a /mnt directory. Should I just create one? Well, you have to create an empty directory to use as a mountpoint. I create them inside a /mnt directory, but that's just historical habit. Many distro I see around now use /media as a root directory for removable media mountpoints. Nothing stops you from using /home/sauron/whatever, although I feel symlinks are a cleaner way to access mount points from your home... No, I had to manually create a mount point via the GUI and then enable the thing and all this stuff. Then KDE just looked at /media and slapped that on my desktop. I mounted my windows partition (back when I had one) on /media so that I could have that on my desktop too. That's the same of writing on the fstab, but managed by a gui instead of done by hand (editing fstab is really easy once you manage the logic of it). m. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
On 3/31/06, b.n. [EMAIL PROTECTED] wrote: I can just nano /etc/fstab and add /dev/sda1? Not only you can: you actually have to! :) Check the Gentoo handbook for details. When I did install Gentoo (in december 2004), I had to write *all* my fstab by hand, I don't know if now it's different. Well, the automated installer did most of it for me, so I never got the exposure to it. I thought fstab was generated by the machine or something, and that it isn't a terribly good idea to edit it. A fstab file is ususally generated by the operating system installer, but, being it a plain text configuration file, it is thought to be editable by root. It has a pretty straightforward syntaxis. Yeah, didn't take too long for me to figure out how to word what I wanted. Only a few tries and one reboot (don't ask). The machine-generated thing you shouldn't touch, instead, is /etc/mtab. This one contains the *current* state of mounted devices. Okay. That makes sense. I don't have a /mnt directory. Should I just create one? Well, you have to create an empty directory to use as a mountpoint. I create them inside a /mnt directory, but that's just historical habit. Many distro I see around now use /media as a root directory for removable media mountpoints. Nothing stops you from using /home/sauron/whatever, although I feel symlinks are a cleaner way to access mount points from your home... I made /mnt/sda1, 'cuz that's what I used about 4 years ago on a Red Hat Linux box. It was really messing me up with all this /media stuff when I used Kubuntu. No, I had to manually create a mount point via the GUI and then enable the thing and all this stuff. Then KDE just looked at /media and slapped that on my desktop. I mounted my windows partition (back when I had one) on /media so that I could have that on my desktop too. That's the same of writing on the fstab, but managed by a gui instead of done by hand (editing fstab is really easy once you manage the logic of it). Yeah, I can now see what the GUI did. From my experience with Qt I can safely say it was harder to make the GUI than to do it by hand. -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
basic method : $ mount [-t fstype...] [-o options...] /dev/sda1 /mountpoint $ ls /mountpoint convenient way : add entry in /etc/fstab, /dev/sda1/mountpointfstype...options then, you can mount this way $ mount /dev/sda1 or, $ mount /mountpoint more convenient, modern way : udev, hotplug, hald, dbus, gnome-volume-manager(or similiar thing in KDE) ... just plug in USB drive, and that will appear in your desktop(background, places menu, file-manager...) http://www.gentoo.org/doc/en/udev-guide.xml http://gentoo-wiki.com/HOWTO_Customizing_UDEV#Terminology http://gentoo-wiki.com/HOWTO_gnome-volume-manager http://gentoo-wiki.com/HOWTO_D-BUS%2C_HAL%2C_KDE_media:/ Hey! don,t hurry relax ~ : ) It's also useful in traditional way $ man mount $ man fstab -- Mait 2006/4/1, Lord Sauron [EMAIL PROTECTED]: On 3/31/06, b.n. [EMAIL PROTECTED] wrote: I can just nano /etc/fstab and add /dev/sda1? Not only you can: you actually have to! :) Check the Gentoo handbook for details. When I did install Gentoo (in december 2004), I had to write *all* my fstab by hand, I don't know if now it's different. Well, the automated installer did most of it for me, so I never got the exposure to it. I thought fstab was generated by the machine or something, and that it isn't a terribly good idea to edit it. A fstab file is ususally generated by the operating system installer, but, being it a plain text configuration file, it is thought to be editable by root. It has a pretty straightforward syntaxis. Yeah, didn't take too long for me to figure out how to word what I wanted. Only a few tries and one reboot (don't ask). The machine-generated thing you shouldn't touch, instead, is /etc/mtab. This one contains the *current* state of mounted devices. Okay. That makes sense. I don't have a /mnt directory. Should I just create one? Well, you have to create an empty directory to use as a mountpoint. I create them inside a /mnt directory, but that's just historical habit. Many distro I see around now use /media as a root directory for removable media mountpoints. Nothing stops you from using /home/sauron/whatever, although I feel symlinks are a cleaner way to access mount points from your home... I made /mnt/sda1, 'cuz that's what I used about 4 years ago on a Red Hat Linux box. It was really messing me up with all this /media stuff when I used Kubuntu. No, I had to manually create a mount point via the GUI and then enable the thing and all this stuff. Then KDE just looked at /media and slapped that on my desktop. I mounted my windows partition (back when I had one) on /media so that I could have that on my desktop too. That's the same of writing on the fstab, but managed by a gui instead of done by hand (editing fstab is really easy once you manage the logic of it). Yeah, I can now see what the GUI did. From my experience with Qt I can safely say it was harder to make the GUI than to do it by hand. -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
On 3/31/06, Mait [EMAIL PROTECTED] wrote: Hey! don,t hurry relax ~ : ) Relax? Sounds like something that unemployed people do : \ It's also useful in traditional way $ man mount $ man fstab Wow... I didn't know that man had a fstab entry. I thought it was only for commands and stuff... -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
On Fri, Mar 31, 2006 at 08:07:16PM -0800, Lord Sauron wrote $ man mount $ man fstab Wow... I didn't know that man had a fstab entry. I thought it was only for commands and stuff... There are man pages for just about every file in the /etc directory. For optional packages, you do need to have the package installed to get the manpage. Another cute trick if you've got something plugged in, but don't know which device it's listed as; as root, execute the command... fdisk -l The l (for list) option lists all connected block devices, even it they aren't mounted. -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 My musings on technology and security at http://tech_sec.blog.ca -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mounting USB Flash Drive
On 3/31/06, Walter Dnes [EMAIL PROTECTED] wrote: On Fri, Mar 31, 2006 at 08:07:16PM -0800, Lord Sauron wrote $ man mount $ man fstab Wow... I didn't know that man had a fstab entry. I thought it was only for commands and stuff... There are man pages for just about every file in the /etc directory. For optional packages, you do need to have the package installed to get the manpage. Neat. Another cute trick if you've got something plugged in, but don't know which device it's listed as; as root, execute the command... fdisk -l The l (for list) option lists all connected block devices, even it they aren't mounted. Neater. It's a wonder no one makes on great big document about all this... to me it looks like its spread all over the internet in ways that makes it hard to find... At least, I don't know about the great big authoritative document of documentation... -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 My musings on technology and security at http://tech_sec.blog.ca -- gentoo-user@gentoo.org mailing list -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list