Manually Mount a USB Stick in Console (No X Running)
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.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Manually Mount a USB Stick in Console (No X Running)
I'd like to be able to manually mount a USB stick in console (before X is started) and I can't seem to find a good way to do that. I'm not too smart about HAL and UDEV and I don't want to undo the auto mount feature when X is running but still be able to manually mount and unmount as necessary; like for installing patches and packages after an install or version upgrade. It seems like there should be an entry in /etc/fstab and a directory in /mnt or /media but danged if I can find something that points the way.
Can anyone suggest a good, solid, dependable method for doing this?
Have you tried plugging the stick and then looking at the output of 'dmesg | tail' to see a dev name like sdb1, then, as root, 'mount /dev/sdb1 /mnt/tmp'?
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Original Poster
Rep:
Thanks to all for all the above.
The /etc/fstab entry, however, seems to most practical (given that I've got about 10 of these things, different manufacturers, different sizes, heck, even different colors) as a general-purpose, mount the blasted thing, let me do what I need to, unmount it and get on with other things. The automagic mount-to-file-manager when X is running does it's thing and this manual method for pre-startx pretty much covers all the bases.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Original Poster
Rep:
Quote:
Originally Posted by w1k0
I'm sure it's possible to disable automount feature in X Window and use manual mounting in your desktop environment or window manager.
Yeah, I know that's doable but it's not for my servers -- a friends' system needs to go from 13.0 to 13.1 and has had some problems with KDE simply freezing (which is why it went back to 13.0); I'm somewhat sure that the problem is associated with the Radeon board and open-source drivers (which I'm going to shut off in the BIOS and see what happens). Just need to do all the patching before starting X (and couldn't remember how to mount a stick, getting old is... uh, I forget what it is...).
Have you tried plugging the stick and then looking at the output of 'dmesg | tail' to see a dev name like sdb1, then, as root, 'mount /dev/sdb1 /mnt/tmp'?
As an alternative to dmesg | tail, you can also run fdisk -l as root to get the device name.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
I had some specific problem concerning Radeon graphics card (it freezed when I used Midnight Commander within the second X Window session started with startx -- :1). I solved that problem by generating xorg.conf with X -configure command and adding to the section Device two following lines:
Distribution: Arch Linux x86_64, Slackware 13.1 x86_64
Posts: 3
Rep:
Mount by label
Hi, in addition to the fstab method mentioned earlier, you could also try mounting by label instead of the device name, if its partition is labelled; I do this frequently with my system because I can never quite predict the order devices will be picked up in. At a terminal you could (as root of course) do this:
#mount -L <label here> -o <options here> <mount point here>
Or, if you want to use fstab, you could try:
LABEL=<label here> <mount point here> <fs type here> <options here> <dump> <fsck>
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Original Poster
Rep:
Quote:
Originally Posted by w1k0
I had some specific problem concerning Radeon graphics card ... I solved that problem by generating xorg.conf with X -configure command and adding to the section Device two following lines:
There seems to be a common thread of problems with Radeon cards (and, perhaps, with the open source drivers). I have gotten the drivers from AMD and will try installing those on the next go-round. If they work, problem solved and on to other things; if they don't, I'll give the above a try before I disable/remove/kill the Radeon card and rely on the built-in Intel controller (they don't do anything that requires a super-jazzy graphic controller anyway, so...).
I have added an XP guest in VirtualBox. That has had "crazy colors" or "reverse image" or whatever you call it whenever VirtualBox is started (not the virtual machine but the reset of display). That particular problem seems associated with Radeon cards and a fix is to add
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.