LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-11-2007, 01:14 AM   #1
carlsonultimate
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Rep: Reputation: 0
Question I can't copy files into my D Drive


I'm running suse 10.2 dual with xp. I partitioned a D drive fat32 so I could transfer files back and forth between the OS's. I first had this problem when I installed suse but fixed it by changing the fstab file. But about a week ago it just started not leting me copy any things from the linux side to the D drive. Any ideas?

heres my fstab
/dev/sda7 / ext3 acl,user_xattr 1 1
/dev/sda8 /home ext3 acl,user_xattr 1 2
/dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 /windows/D vfat rw,users,gid=users,umask=0002,utf8=true,exec 0 0
/dev/sda6 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Last edited by carlsonultimate; 10-11-2007 at 01:18 AM. Reason: change highlitght color
 
Old 10-11-2007, 02:54 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Check it the filesystem is OK. Use fsck.vfat to repair it. If there is a problem with the filesystem, it might be mounted read-only.
 
Old 10-11-2007, 10:50 AM   #3
carlsonultimate
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
I can't figure that command out. I tried typing it in the console but it just spits me back out. Can you give me a specific command to do this. Heres what I tried.


linux-4rlh:/ # fsck.vfat -u
fsck.vfat: option requires an argument -- u
usage: fsck.vfat [-aAflrtvVwy] [-d path -d ...] [-u path -u ...]
device
-a automatically repair the file system
-A toggle Atari file system format
-d path drop that file
-f salvage unused chains to files
-l list path names
-n no-op, check non-interactively without changing
-r interactively repair the file system
-t test for bad clusters
-u path try to undelete that (non-directory) file
-v verbose mode
-V perform a verification pass
-w write changes to disk immediately
-y same as -a, for compat with other *fsck
linux-4rlh:/ # fsck.vfat -au
fsck.vfat: option requires an argument -- u
usage: fsck.vfat [-aAflrtvVwy] [-d path -d ...] [-u path -u ...]
device
-a automatically repair the file system
-A toggle Atari file system format
-d path drop that file
-f salvage unused chains to files
-l list path names
-n no-op, check non-interactively without changing
-r interactively repair the file system
-t test for bad clusters
-u path try to undelete that (non-directory) file
-v verbose mode
-V perform a verification pass
-w write changes to disk immediately
-y same as -a, for compat with other *fsck
linux-4rlh:/ # fsck.vfat -- a
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
open a:No such file or directory
linux-4rlh:/ # fsck.vfat -- u
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
open u:No such file or directory
linux-4rlh:/ # fsck.vfat -a /windows/D
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
open /windows/D:Is a directory
linux-4rlh:/ # fsck.vfat -a media:/sda5
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
open media:/sda5:No such file or directory
linux-4rlh:/ # fsck.vfat -a /sda5
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
open /sda5:No such file or directory
linux-4rlh:/ # fsck.vfat
usage: fsck.vfat [-aAflrtvVwy] [-d path -d ...] [-u path -u ...]
device
-a automatically repair the file system
-A toggle Atari file system format
-d path drop that file
-f salvage unused chains to files
-l list path names
-n no-op, check non-interactively without changing
-r interactively repair the file system
-t test for bad clusters
-u path try to undelete that (non-directory) file
-v verbose mode
-V perform a verification pass
-w write changes to disk immediately
-y same as -a, for compat with other *fsck
linux-4rlh:/ #
 
Old 10-11-2007, 11:00 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You haven't told fsck.vfat which drive it needs to repair/look at.
 
Old 10-11-2007, 09:03 PM   #5
carlsonultimate
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
I tried that and it says

dr-xr-xr-x 1 root users 8192 2007-10-07 20:57 C
drwxrwxrwx 12 root users 16384 1969-12-31 16:00 D
linux-4rlh:/windows # fsck.vfat D
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Read 512 bytes at 0:Is a directory
 
Old 10-11-2007, 09:21 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
fsck wants the device name, not the mount point. Using "fdisk -l" + "mount", figure out what the device name is. It will be something like /dev/hda2, /dev/sda4, etc.

Just looked at your original post---you want "fsck.vfat /dev/sda5"

Note: On my machine, even though "man fsck.vfat" produced a document, the actual command was not there. I had to use "dosfsck".
 
Old 10-11-2007, 10:50 PM   #7
carlsonultimate
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks
heres what I got
/Blow is a movie I downloaded and it disappeared after I moved it to the D drive.

linux-4rlh:/ # fsck.vfat /dev/sda5
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offsetriginal/backup)
65:01/00
1) Copy original to backup
2) Copy backup to original
3) No action
? 1
/Blow
Contains a free cluster (12742). Assuming EOF.
Reclaimed 45107 unused clusters (739033088 bytes).
Free cluster summary wrong (632403 vs. really 909493)
1) Correct
2) Don't correct
? 1
Leaving file system unchanged.
/dev/sda5: 983 files, 370058/1279551 clusters
 
Old 10-11-2007, 11:18 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What is this drive? Is it the drive that windows uses to boot? You could repair it in windows. That's one option. Since it won't mount it probably is bad and option 2) may be what you want if you do it in Linux. About the movie. How big was it. If it is over 4GB then that exceeds the filesize limit.
 
Old 10-11-2007, 11:40 PM   #9
carlsonultimate
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
I think the movie might have been bigger then 4GB. I tried deleting Blow but it won't let me it says input/output error.
I use the drive to move files back and forth between linux and windows. It does not have windows on it my C drive has windows on it. The D drive is fine in windows, it lets me move delete or write to what ever I want.
 
Old 10-11-2007, 11:45 PM   #10
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Did you unmount the disk before you tried fscking it?
 
Old 10-12-2007, 03:48 AM   #11
carlsonultimate
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Yes I did It gave me the same thing
 
  


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
copy files from telnet session to local drive rkemp Linux - Networking 7 03-11-2009 05:01 AM
Mepis, copy files to thumb drive, files deleted? vremenno Linux - Newbie 6 09-15-2006 11:21 PM
Need to copy files from a very old SCSI drive Dapper Dan Linux - Hardware 5 07-10-2004 06:57 AM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM
find files and copy them to zip drive william47304 Linux - Newbie 1 02-03-2002 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 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