usb/cd automounting but access through command line
SlackwareThis Forum is for the discussion of Slackware 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.
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.
usb/cd automounting but access through command line
Hi all,
when I plug my usb drive in or put a cd in they pop up and ask what I want to do with them. If I say "open in new window" then they mount and show up in koquorer.
I can then type media:/sdb1 or media:/hdc at a later date to access them (or go to locations and choose media)
However I can't find where they are mounted when I am in the command line.
I have loads of directories under /mnt (which is where I have always mounted devices in the past manually) like cdrom/ cdrecorder/ hda/ hdb/ dvd/ etc.. but none of them contain my mounted media.
I also have /media but the folder names under there don't match up with what it shows in konqueror.
At the moment i am mounting them again using command line to a folder under /mnt, but this must be mounting them twice. where are they actually mounted when I plug them in so i can access them from the command line?
Now they are not mounted twice, unless if your first do "open in new windows" in KDE i.e. and then go to the console and mount them again. But, you can always check where something is mountet with "mount".
KDE mounts the drives as /media/DEVICE-LABEL, where DEVICE_LABEL is the label of the device, obviously. If you've got a CD labeled "MyCD" it'll be mounted at /media/MyCD. Likewise with USB drives (or partitions on a USB drive) and such. When you click "Open in new Window" or whatever it is, Konqueror uses the generic names (unfortunately), which I assume is because it attempts to mount it before it determines the device name. This inconsistency is really annoying, but you'll have to live with it for now.
I have my hard drive on a Serial ATA controller, and my CD-ROM on the primary IDE controller. So for my CD-ROM it is /dev/hda. For my USB drive, it is /dev/sdb1 or /dev/sdb2 (depending on the slot I put it in). Hope that helps.
I didn't know about the mount command, so I'll give that a go tonight. I presumed it must be mounted under /media as when in konq the path was media:/sdb1
But I don't think I could see it under there when I looked for it, obviusly couldn't see the wood for the trees!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.