LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-14-2006, 10:05 PM   #1
indu.a
LQ Newbie
 
Registered: Nov 2006
Posts: 14

Rep: Reputation: 0
Smile copy a file to the flash disk and extract it from the flash disk


How do I copy a file present in one of the directories in linux to a flash disk, unmount it and then extract it back from the flash disk and store it on the linux drive?
 
Old 11-15-2006, 12:48 AM   #2
Mad_C
Member
 
Registered: Dec 2002
Location: Austria
Distribution: Slax, ccux-Linux, coLinux
Posts: 49

Rep: Reputation: 15
Quote:
Originally Posted by indu.a
How do I copy a file present in one of the directories in linux to a flash disk, unmount it and then extract it back from the flash disk and store it on the linux drive?
There is more than one way to skin a cat..
If your flash disk is not mounted,

mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
cp yourfile /mnt/sda1
sync
umount /mnt/sda1

should get the file onto the flash (if it's seen as sda1)

Restoring it is the same except for the cp line where the arguments are reversed (and of course the mkdir is only necessary the very first time).

Regards,

Chris
 
Old 11-15-2006, 03:22 AM   #3
indu.a
LQ Newbie
 
Registered: Nov 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks a lot ! That worked .
 
  


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
How can I extract flash from flash EXEs? kahlil88 Linux - Software 1 06-20-2006 06:19 PM
flash disk hernanimagal Linux - Newbie 4 06-05-2006 08:02 AM
flash disk copy giulioudo Linux - General 4 01-24-2006 12:32 PM
USB Flash Disk zillah Fedora 3 05-22-2005 03:25 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:14 AM.

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