LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2012, 08:38 AM   #1
walkman9314
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
Smile Copying files from Fedora to a usb flash drive?


I am in a Linux/Unix beginners class, and the text book we are using has me create files to use with the commands throughout the chapters. So what I need to know is how to copy files to a usb flash drive, so I can transfer files from home to school.

Thank you
 
Old 02-15-2012, 08:48 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
if you are running any type of GUI you can use the automount tools that will pop up and then just copy/paste the file from your HDD to the flash drive.

to do it from the CLI is a bit more complicated:

Code:
$ su -
# mkdir /mnt/usb     <call it what ever you want>
# chmod -R 4777 /mnt/usb
# tail -f /var/log/messages    <now plug in the flash drive and look for the drive letter,  example sdb>
# vi /etc/fstab  <add a line that looks something like the below>
# /dev/sdb1 <what ever the drive letter is in dmesg> /mnt/usb       auto      noauto,users,rw  0 0
# fdisk /dev/sdb  <again what ever the drive letter is from dmesg>
     d    <this will delete all partitions on the drive>
     n    <create a new partition>
     p    <you want a primary partition>
     1    <or how ever many partitions you want>
     w    <write the partition and exit>
# mkfs -t ext3 /dev/sdb1   <again what ever drive letter from dmesg>
# mount /mnt/usb
# chmod -R 4777 /mnt/usb
# umount /mnt/usb
# visudo
   <find your user name and at the end add the following after a , >
  /bin/mount /mnt/usb, /bin/umount /mnt/usb       <this will allow the USER to mount and umount the drive>
# exit
$ mount /mnt/usb
$ touch /mnt/usb/test
If the above works, you are golden and can then just cp or mv files around in the CLI like you would under normal situations. KEEP IN MIND that MS Windows will no longer be able to read this device if you format it in ext3 unless you install a 3rd party app that allows MS Windows to (read only) the drive.

If you need to use this device on both MS Windows and Linux, leave it formatted FAT32. Then you would mount it as either -t vfat or -t fat.
 
1 members found this post helpful.
Old 02-15-2012, 05:05 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,020

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
for the current fedora 16 there are no commands needed .
nor have there been any needed for a while now.

plug in the usb drive and Gnome will auto mount it to /media
as /media/???( the device name)
 
Old 02-17-2012, 03:02 PM   #4
walkman9314
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
That worked great thank you
 
  


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
copying files from one external USB hard drive to another zeelog Linux - Newbie 10 08-02-2011 08:22 PM
Copying files to USB Flash Drive Mr. Alex Ubuntu 2 11-10-2010 11:29 PM
Transferring/copying files to an external USB hard drive rasupi Linux - Newbie 1 12-17-2008 03:04 AM
Problem copying to/from USB flash drive Joe Soap Linux - General 1 06-05-2008 06:10 AM
copying files from my home directory to my USB Flash Disk neo_phyte Red Hat 9 04-24-2006 12:32 AM


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