473,659 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

read a usb flash drive in linux

111 New Member
Hi, i'm new to linux, so this may be a really silly question.

But i've got this linux system (Red hat)
and i have a usb stick with some files on it.

i want to basically plug in my usb stick into the linux box, and save the files from the usb stick onto a directory on the linux machine.

The problem is when i plug my usb stick into the linux box, how do i know where it is. i.e. where is that drive

for example in windows, when you plug in a usb memory stick, a new drive is created in the "My Computer" folder. then by clicking on the new drive you would have access to the files on the usb.

thanks in advance
Aug 28 '07 #1
2 5248
Nepomuk
3,112 Recognized Expert Specialist
Hi, i'm new to linux, so this may be a really silly question.

But i've got this linux system (Red hat)
and i have a usb stick with some files on it.

i want to basically plug in my usb stick into the linux box, and save the files from the usb stick onto a directory on the linux machine.

The problem is when i plug my usb stick into the linux box, how do i know where it is. i.e. where is that drive

for example in windows, when you plug in a usb memory stick, a new drive is created in the "My Computer" folder. then by clicking on the new drive you would have access to the files on the usb.

thanks in advance
I don't know, if your Red Hat mounts the USB Stick automaticly, but you can check:
Use the console (always a good idea) and type
Expand|Select|Wrap|Line Numbers
  1. mount
  2.  
This will list all mounted devices. If one of them is called "sda", "sda1", "sdb", "sdb1" or similar, it's probably allready mounted and it will tell you, where it is mounted to.

If it isn't mounted, first of all you'll have to find out, which device it is. Use
Expand|Select|Wrap|Line Numbers
  1. ls /etc/sd*
  2.  
to list all "special devices". Your USB Stick will be one of them. Then you'll need a place to mount it to - normaly "/media/sda1" or "/mnt/sda1" (or equivalent). Create such a folder with mkdir directory (you can of course create it anywhere you like)
.

Now you have to be root (or have root priviliges, e.g. with sudo) - use:
Expand|Select|Wrap|Line Numbers
  1. mount /dev/sda1 -t auto /media/sda1
  2.  
(replacing the device and directory with those aplicable.)

Done! You USB Stick should be mounted.
Aug 28 '07 #2
nitinpatel1117
111 New Member
Thanks nepomok,

That was great.

the ls /etc/sd* list command didn't work for me, luckily the mount command worked and did the job.
Aug 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4545
by: news | last post by:
OP wrote: }in order to justify learning another language I'd first need to be }convinced that python could easily do the following:- } }ReadSectors2Bufr(hdx, StartSectr, SectrCnt, Bufr); <-- like linux:dd }PrintDecOf4Bytes(Offset, Bufr); <-- and also 1 and 2 byte values }OverWriteBufr(Offset, Bufr, Byte); }WriteBufr2Sectors ..... <-- like linux: dd } }I guess one would normally use bash, but I'd rather invest effort
5
6573
by: will.leighton | last post by:
I am working on concept where I want to deliver web-based content and functionality from a USB Flash drive for users who don't have access to the Internet. The functionality includes personaliztion features and preferences that will alter how the pages are served. It is a classic three-tier model. Does anyone have experience running a database on a USB flash drive and if so could you tell me: 1. Which database (Access, FoxPro, etc...)...
3
3890
by: Mike Joyce | last post by:
I am trying to write a portable script that will find removable media, such as compact flash, sd card, usb, etc. drive and then upload files from the media. I want this to be portable so that I can write and maintain one program for both Linux and Windows. Each platform uses different functions so even if I could find two platform dependent functions that would be fine. Basically, I would like to avoid checking fixed disks if possible. If...
3
3830
by: Putty | last post by:
Is there such a thing as a special version of python that I can run more efficiently from a flash drive? I'll be at college for hours every day with hours of free time for the next few months, but the only computers at my disposal are windows PCs that use GoBack to auto-revert every reboot. So I'm kinda stuck. I don't want to have to reinstall python AND wxPython AND PIL every stinking time I log on. However, using it from my flash...
3
3303
by: ryancol | last post by:
I have a couple usb 2.0 flash drives. I use them on either windows 2000 or windows XP. When I copy (drag and drop) a file folder to them such as a file folder with like 10 or 20 pictures in it the file folder will show that it made it to the flash drive. I can open it on the flash drive and the pics are in there. BUT if I properly eject the drive and plug it back in right away or plug it back in later, the file folder is there but it is empty....
0
12464
Chrisjc
by: Chrisjc | last post by:
<Excerpted from this thread> All of these questions and answers are great. But it comes down to this I have seen this more than enough times to know better... From my experience at home and as an IT in an office with well over 900 computers to look after I maybe get this question up to 3 times in a week... sadly I suspect that if you remove your FLASH drive with out safely disconnecting it the next PC will not recognize it for the soul...
3
2905
kestrel
by: kestrel | last post by:
Hey, I have an 8 gb flash drive. ive been using it to transfer all of my music from one computer (linux) to another (windows xp, if it really matters). After all my transfers were completed, i stuck the drive back into my linux computer and deleted all the files and folders. I noticed that only 3.5 gb of space were free, so i looked at the hidden files, and deleted the trash file. i looked at the free space, and it was only at 4.2 gb, with 0...
8
2427
by: Salad | last post by:
I was asked to get my daughter a flash drive. She needs to use it to copy files to it so she can transfer the files at school to her desktop at home. I've never used one but I figure some of you have. I see flash drives from on the net from 128 meg up to 16 gig. Prices range from $20 to $600. I see a lot of those ads referring to cameras. Are there USB flash drives specific for cameras and others for computers? Or do they all work...
0
2056
by: Daffydd | last post by:
Hi all, This one's driving me up a wall! We have a small office network, Windows SBS 2003, nothing fancy - recently upgraded from an old Compaq running Novell. Back in the day we used the "F" and "G" drive letters for our main network drives. This worked wonderfully until we started using flash drives recently - replacing floppies for portable data movement. Seems that, even tho we have 2 mapped drives as "F" and "G" Windows (XP and...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8535
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.