LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2010, 07:27 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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?
 
Old 11-14-2010, 07:50 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
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'?
 
1 members found this post helpful.
Old 11-14-2010, 08:23 AM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Well, nope, hadn't tried that -- but, hey, it works (and now all I have to do is remember it, eh).

Thanks.
 
Old 11-14-2010, 08:27 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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".
 
Old 11-14-2010, 08:41 AM   #5
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Slackware also comes with a tool called 'exo-mount' that does it with hal
http://www.slackwiki.org/Mount_with_...m_command_line
 
Old 11-14-2010, 09:05 AM   #6
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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
In result it’ll be enough to use the command mount /mnt/usb to mount the device and the command umount /mnt/usb to unmount it.
 
1 members found this post helpful.
Old 11-14-2010, 10:20 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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.
 
Old 11-14-2010, 10:27 AM   #8
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 11-14-2010, 10:36 AM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by w1k0 View Post
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...).

Anyway, all is well that ends.

Thanks.
 
Old 11-14-2010, 10:41 AM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Quote:
Originally Posted by allend View Post
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.
 
1 members found this post helpful.
Old 11-14-2010, 04:05 PM   #11
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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"
        Option      "MigrationHeuristic" "greedy"
Your friend's problem is probably different than mine but it's worth to try that method.
 
Old 11-14-2010, 04:48 PM   #12
serviteursociale
LQ Newbie
 
Registered: Nov 2010
Location: Elmira, NY
Distribution: Arch Linux x86_64, Slackware 13.1 x86_64
Posts: 3

Rep: Reputation: 0
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>
 
Old 11-15-2010, 07:48 AM   #13
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by w1k0 View Post
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:
Code:
        Option      "AccelMethod" "EXA"
        Option      "MigrationHeuristic" "greedy"
Hey, thanks for that, I'll give it a try.

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"
        Option  "Composite" "Disable"
EndSection
to xorg.conf. Yes, it's a kludge but it's a kludge that works.

So, I'll try your kludge too and, maybe, problem goes away without tearing the box apart.

Thanks again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mounting usb-stick manually j1alu Debian 10 10-21-2009 12:45 PM
how does one manually mount a usb stick ninja master Linux - Hardware 2 03-16-2009 02:17 PM
Howto mount CDROM manually in SOLARIS10 without the volmgt service running. koolks Solaris / OpenSolaris 1 02-14-2008 09:09 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
Manually mounting a USB stick in Suse 9.1 Celettu Linux - Hardware 4 09-14-2004 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration