LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 11: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, 01: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, 04:22 AM   #3
indu.a
LQ Newbie
 
Registered: Nov 2006
Posts: 14

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:19 PM
flash disk hernanimagal Linux - Newbie 4 06-05-2006 09:02 AM
flash disk copy giulioudo Linux - General 4 01-24-2006 01:32 PM
USB Flash Disk zillah Fedora 3 05-22-2005 04:25 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 03:45 PM


All times are GMT -5. The time now is 10:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration