LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find my USB stick (so I can install NIC drivers)? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-my-usb-stick-so-i-can-install-nic-drivers-4175523476/)

michellepace 10-27-2014 10:21 AM

How to find my USB stick (so I can install NIC drivers)?
 
Hello,

My machine as only IPCop installed on it. IPCop doesn't have a specific distribution underlying it, but I do know that the kernel is 3.4-2
http://www.ipcop.org/2.0.0/en/instal...roduction.html

I need to install two NIC drivers which are on my USB stick. How do I find my USB stick?

Thank-you, Michelle

TB0ne 10-27-2014 10:40 AM

Quote:

Originally Posted by michellepace (Post 5260292)
Hello,
My machine as only IPCop installed on it. IPCop doesn't have a specific distribution underlying it, but I do know that the kernel is 3.4-2
http://www.ipcop.org/2.0.0/en/instal...roduction.html

I need to install two NIC drivers which are on my USB stick. How do I find my USB stick?

IPCop isn't really a distribution, but made to turn a box into an appliance, which was covered in the thread you posted four years ago:
http://www.linuxquestions.org/questi...-using-820348/

Since you've said you use putty/ssh to get into the box, it would be FAR easier to mount the USB stick on your Windows system, and just use SCP to copy the files from the stick to the IPcop system. Seeing the IPCop documentation and tutorials is also a good thing..did you check there?
http://www.ipcops.com/wiki/howto:copying
http://www.ipcops.com/wiki/faq:start

michellepace 10-27-2014 11:52 AM

Goodness you're on the ball! Thanks for yet another reply TBOne.

Quote:

Originally Posted by TB0ne (Post 5260300)
IPCop isn't really a distribution, but made to turn a box into an appliance, which was covered in the thread you posted four years ago:
http://www.linuxquestions.org/questi...-using-820348/

Oh okay, they must have made a mistake when they wrote in the IPCop documentation "IPCop Linux is a complete Linux Distribution." http://www.ipcop.org/2.0.0/en/instal...roduction.html thanks for the correction

Quote:

Originally Posted by TB0ne (Post 5260300)
Since you've said you use putty/ssh to get into the box, it would be FAR easier to mount the USB stick on your Windows system, and just use SCP to copy the files from the stick to the IPcop system. Seeing the IPCop documentation and tutorials is also a good thing..did you check there?
http://www.ipcops.com/wiki/howto:copying
http://www.ipcops.com/wiki/faq:start

Unfortunately I can't ssh into a box that doesn't have a NIC driver - I can't even ping it. Unfortunately the IPCop documentation as well as forums was my first port of call but I had no luck which is why I've come here.

Does anyone else know how to find a USB stick in linux? Even if it's another kernel 3.x distribution it may be good enough

Thanks,
Michelle

TB0ne 10-27-2014 02:42 PM

Quote:

Originally Posted by michellepace (Post 5260334)
Goodness you're on the ball! Thanks for yet another reply TBOne.
Oh okay, they must have made a mistake when they wrote in the IPCop documentation "IPCop Linux is a complete Linux Distribution." http://www.ipcop.org/2.0.0/en/instal...roduction.html thanks for the correction

It is 'complete' in that it runs Linux. It is *NOT* complete if you're going to consider it a "Linux server". IPCOP was designed to do ONE THING: act as a firewall.

To draw an analogy, you may have a Linux kernel on your Android phone, but that does NOT make it a Linux server; you may have Windows as the base of your car entertainment center, but it's not a Windows server. These are specialized distros. This was explained in detail in your thread from four years ago.
Quote:

Unfortunately I can't ssh into a box that doesn't have a NIC driver - I can't even ping it. Unfortunately the IPCop documentation as well as forums was my first port of call but I had no luck which is why I've come here. Does anyone else know how to find a USB stick in linux? Even if it's another kernel 3.x distribution it may be good enough
Then this is a brand-new system you've built? Because the one you posted about previously was working, and you said you had successfully used putty to connect to it.

If you can log in at the console and get to a root prompt, you should see a device get created when you insert the USB stick. Chances are, your hard drive is something along the lines of /dev/sdaxx (where xx is 1, 2, etc., corresponding to the partitions on the drive). Your USB stick will probably come up as /dev/sdbxx. So, just mount it like you would any other drive in Linux.
Code:

mount /dev/sdbxx /path/to/mount/to
Create a directory if you want, and replace the /path/to/mount/to with it. Replace the sdbxx with whatever your USB stick has on it, chances are it'll be /dev/sdb1.

jefro 10-27-2014 03:20 PM

If you can't access the system remotely then how are you going to get the drivers on?

I would think it would automount to some place. That place tends to be /media in many distro's. It could be in /var down some place. Could be in /mnt.

Use command mount to see what is mounted if you can get to command line. And as I recall you should if you are at the physical machine.

michellepace 10-27-2014 11:52 PM

Hi TB0ne and Jefro, thank you both for your replies. I've got a screen plugged into my physical machine (and yes it's a new machine the other one died). Alright for the USB stick at last I have lift off! I'll just post my steps here for anyone else needing this (or myself in 4 years to come ha ha :) ).

Code:

# Before you plug your USB in:
$ lsusb
$ ls -l /dev/sd*

# Now plug in the USB and you should be able to identify it:
$ lsusb  #You must see your usb listed here which means your usb port is working - hooray
$ ls -l /dev/sd* #The additional "sdxx" is the "drive" your usb is in - I have sdb1

# Create a directory where your USB drive will be mounted
$ mkdir usb_stick  (...or you could put it in /mnt/usb_stick)

# Now "mount" your usb into this new directory so it is accessible
$ mount /dev/sdb1 /mnt/usb_stick

# Hooray! Now go see your USB stuff:
ls /mnt/usb_stick

Golly the easy part is done now... on to installing the NIC drivers.

Thanks again, Michelle

jefro 10-28-2014 02:51 PM

I think you have it solved. Good job. Let us know if we can help again.


All times are GMT -5. The time now is 11:38 PM.