Author Topic: mount thumb-drive from terminal  (Read 510 times)

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
mount thumb-drive from terminal
« on: April 03, 2012, 11:47:27 PM »
I have a new video card installed.  Linux will only boot to terminal mode.  I downloaded a driver for the video card on another machi8ne,
and copied it to a thumb-drive.  I have tried everything I could find in Google to mount the thumb-drive so I could run the driver, and for the life of me, I just can't do it!  Please, somebody, tell me in words of one syllable how to mount the thumb drive.
Its name in Dolphin on this other PCLOS computer is "Kingston", and its full name on the terminal only machine appears to be "kingston optical drive" if I remember correctly.  (I can't remember how I found that out.)  I really don't have any hair left to tear out, so Please
help!

Thanx--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4000
Re: mount thumb-drive from terminal
« Reply #1 on: April 04, 2012, 05:32:37 AM »
The easiest way is to su to root and run mount LABEL=Kingston /mnt/. This should work if you only have one Kingston device connected.

Alternatively, you could use fdisk -l to get the /dev/sdxn reference for the device and then run mount /dev/sdxn /mnt/ (substituting the actual letter and number for x and n.

You can then access the device at /mnt/.

When you are finished, don't forget (again as root) to issue umount /mnt and wait for the light on the device to stop flashing before you unplug it.
« Last Edit: April 04, 2012, 05:39:30 AM by kjpetrie »
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: mount thumb-drive from terminal
« Reply #2 on: April 04, 2012, 09:14:43 AM »
Its name in Dolphin on this other PCLOS computer is "Kingston", and its full name on the terminal only machine appears to be "kingston optical drive" if I remember correctly.

If you can see it on Dolphin, have you tried to click on it? Clicking on the device should mount it.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Online muungwana

  • Hero Member
  • *****
  • Posts: 6252
Re: mount thumb-drive from terminal
« Reply #3 on: April 04, 2012, 11:23:40 AM »
I have a new video card installed.  Linux will only boot to terminal mode. 
It does that probably because X server can not resolve contradiction it sees in the video card and what it is told to see in "/etc/X11/xorg.conf"

possible solution 1:
while on the terminal, log in as root and then run "XFDrake" to reconfigure your system to the new video card.

possible solution 2:
while on the terminal,log in as root,run "mv /etc/X11/xorg.conf /etc/X11/xorg.conf-mybackup".

The command will rename X server config file.
X is intelligent enough these days not to use the config file and it is largely optional these days.

After you have run the command run "startkde" to see if kde will start up(assuming you are using kde)
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: mount thumb-drive from terminal
« Reply #4 on: April 04, 2012, 11:53:13 PM »
Its name in Dolphin on this other PCLOS computer is "Kingston", and its full name on the terminal only machine appears to be "kingston optical drive" if I remember correctly.

If you can see it on Dolphin, have you tried to click on it? Clicking on the device should mount it.

Ohh, command line eh ... you probably don't need to mount the thumbdrive and probably just need to reconfigure your X.

If you are unable to reconfigure correctly, your best bet to get some sort of graphical display is VESA, and follow muungwana's instructions.

Good luck.


Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10686
  • MLUs Forever!
Re: mount thumb-drive from terminal
« Reply #5 on: April 05, 2012, 01:18:53 AM »
I have a new video card installed.  Linux will only boot to terminal mode.  I downloaded a driver for the video card on another machi8ne,
and copied it to a thumb-drive.  I have tried everything I could find in Google to mount the thumb-drive so I could run the driver, and for the life of me, I just can't do it!  Please, somebody, tell me in words of one syllable how to mount the thumb drive.
Its name in Dolphin on this other PCLOS computer is "Kingston", and its full name on the terminal only machine appears to be "kingston optical drive" if I remember correctly.  (I can't remember how I found that out.)  I really don't have any hair left to tear out, so Please
help!

Thanx--doug

I would tend to do the following ...
run a blkidid command to identify the existing partitions.
plug in the removable device
run the blkid command a second time after the removable device is inserted

the difference will be the partitions on the removable device.

then use the pmount command (as user) to mount the preferred partition

when finished use the pumount command to unmount the device.

The blkid command:
blkid -c /dev/null

The Pmount command
pmount <device>

The Pumount command
pumount <device>  ### device = /dev/sdXY
the device will be mounted as  /media/sdXY where X & Y are drive/partition designation

The Pmount command can also specify under what 'name' the device is mounted, if required
pmount <device> <name>

devices are mounted under /media and under user control when using pmount.

there is no need to create the mount point when using pmount as it creates it automatically

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 4000
Re: mount thumb-drive from terminal
« Reply #6 on: April 05, 2012, 05:32:51 AM »
Having slavishly answered the first post as a straight question, I now think muungwana's answer is more relevant. Rather than trying to install a driver from outside the repo, it would be better to get it going with what's in the repo - unless that's where you got what's on the stick.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf