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'?
|
Well, nope, hadn't tried that -- but, hey, it works (and now all I have to do is remember it, eh).
Thanks. |
Writing udev rules for your devices would be a good idea, too. Doing so allows you to have more meaningful device names than, e.g. "/dev/sdc".
|
Slackware also comes with a tool called 'exo-mount' that does it with hal
http://www.slackwiki.org/Mount_with_...m_command_line |
tronayne,
In fact you haven’t remember that command. Instead of that make a separate directory for the USB devices with the command: mkdir /mnt/usb and add the following line to /etc/fstab: Code:
/dev/sdb1 /mnt/usb vfat user,noauto,umask=000 0 0 |
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. Thanks again. |
tronayne,
I'm sure it's possible to disable automount feature in X Window and use manual mounting in your desktop environment or window manager. |
Quote:
Anyway, all is well that ends. Thanks. |
Quote:
|
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:
Code:
Option "AccelMethod" "EXA" |
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> |
Quote:
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 Code:
Section "Extensions" So, I'll try your kludge too and, maybe, problem goes away without tearing the box apart. Thanks again. |
All times are GMT -5. The time now is 04:09 PM. |