LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-28-2006, 05:40 AM   #1
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Rep: Reputation: 15
unable to copy files to pen drive(size problem)..pls help


hi all
i have got a pen drive with around 80MB free space and now i am trying to copy 21 MB file but i am getting error message that there is no enough space.Its showing around 423KB on Fedora Core 6 whereas if i try in any other OS it shows correct spoace i.e. 80 MB free...
Any help would be greatly appriciated..
thanks in advance
 
Old 12-28-2006, 05:55 AM   #2
Shaddy
Member
 
Registered: Apr 2003
Location: Germany
Distribution: PC1: Xandros 4 Prof, PC2: Debian Sarge, NB: SLED10+Windows XP
Posts: 39

Rep: Reputation: 15
Hi,

I would not rely on that information. Have you controlled the size with fdisk?
Else, copy all existing files to your PC and format your stick.

Greetings

Shaddy
 
Old 12-28-2006, 06:44 AM   #3
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
Well i am quite new to linux, so i am not sure how to control the size with fdisk or how to format the disk.
Well i entered the command #fdisk /dev/sda1 which gave me another line to enter command i.e.
command (m for help)
Now what command should i give, i dont understand.
Any ideas how can i use all free space of my pen drive.
thanks
 
Old 12-28-2006, 07:39 AM   #4
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
well i dont want to format pen drive. There is nothing in it. its 80 MB of size which is available. Well but FC6 is not detecting the full size of it. It is just detecting around 423KB size which is not enough to transfer any file from FC6 to pendrive.
Any help!!!!!!!!
 
Old 12-28-2006, 08:23 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by anant
well i dont want to format pen drive. There is nothing in it. its 80 MB of size which is available. Well but FC6 is not detecting the full size of it. It is just detecting around 423KB size which is not enough to transfer any file from FC6 to pendrive.
Any help!!!!!!!!
The pen drive is only 80MB total capacity!!??

Sometimes there is a trash folder--maybe hidden. Do ls -a and see what you find.
 
Old 12-28-2006, 09:14 AM   #6
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
Thanks for reply

Yes pen drive is only 80MB and i am trying to copy 20MB file from fedora core 6 OS but as its detecting only 423KB memory in that Pen drive cos of which i am unable to copy it.
well i did entered this command ls -a but i am not able to get it...may be it makes some sense to you ...
pls look below for its output...

[root@localhost ~]# ls -a
. .dmrc .ICEauthority .recently-used.xbel
.. .eggcups install.log .redhat
anaconda-ks.cfg .esd_auth install.log.syslog .scim
.bash_history .evolution .kde .tcshrc
.bash_logout .gconf .local .thumbnails
.bash_profile .gconfd .metacity .Trash
.bashrc .gnome .mozilla .virt-manager
.beagle .gnome2 .nautilus .vnc
.config .gnome2_private .openoffice.org2.0 .wapi
.cshrc .gstreamer-0.10 .qt .xsession-errors
Desktop .gtkrc-1.2-gnome2 .recently-used

And as you said about trash folder, yeh there is one trash folder but thats only to store what i delete from my memory drive...and that is empty aswell. Now how to get access to that file...its kind a urgent...
Any more suggestions...

Thanks
 
Old 12-28-2006, 09:31 AM   #7
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
Did you do ls -a /dev/sda1?
The output looked like it came from your home dir rather than the pen drive.
If you have no data of any value on the pen drive formatting it should give you maximum free space. That is the route I would take.
 
Old 12-28-2006, 10:03 AM   #8
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
yeh i did ls -a /dev/sda1 aswell, but this giving me output as
/dev/sda1
for formating i tried this command
#fdisk /dev/sda
command (m for help): mkfs -t vfat /dev/sda1
but nothing is happening, it is just givin me help sectoion as output.
i tried with
#mkfs.vfat -F32 /dev/sda1
but nothing is working for me....Is it a common problem in linux that it doesnt show the correct amount of space in pen drive if tried without any modifications or its just happening with me.
I am using FC6 from last 2-3 weeks but i never tried to copy any file more then 1 MB ....today i did and got stucked....
Do you think formating could help me out, if yes then how should i format this now....is pen drive always allocated on /dev/sda1 or it could be /sda2 or something...
Thanks a lot
 
Old 12-28-2006, 10:51 AM   #9
anant
Member
 
Registered: Nov 2006
Distribution: Sles 10
Posts: 108

Original Poster
Rep: Reputation: 15
it worked :-)

mke2fs /dev/sda/
mkdir /mnt/usbthumb
mount -t ext2 /dev/sda1 /mnt/usbthumb

Above commands worked for me atlast.....
Thanks all of you who replied to my thread....
Happy New Year!!!!!!!!!!!!Enjoy
 
  


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
pen drive problem nirmaltom General 11 02-03-2008 05:00 AM
unable to mount usb pen drive in redhat 9.0 zero79 Linux - Hardware 9 01-25-2007 09:07 PM
Mepis, copy files to thumb drive, files deleted? vremenno Linux - Newbie 6 09-15-2006 11:21 PM
unable to change pen drive file permission linuxmandrake Ubuntu 2 08-29-2006 12:12 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM


All times are GMT -5. The time now is 02:00 AM.

Main Menu
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