LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I can't copy files into my D Drive (https://www.linuxquestions.org/questions/linux-newbie-8/i-cant-copy-files-into-my-d-drive-590969/)

carlsonultimate 10-11-2007 01:14 AM

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

jschiwal 10-11-2007 02:54 AM

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.

carlsonultimate 10-11-2007 10:50 AM

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:/ #

XavierP 10-11-2007 11:00 AM

You haven't told fsck.vfat which drive it needs to repair/look at.

carlsonultimate 10-11-2007 09:03 PM

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

pixellany 10-11-2007 09:21 PM

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".

carlsonultimate 10-11-2007 10:50 PM

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: (offset:original/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

jschiwal 10-11-2007 11:18 PM

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.

carlsonultimate 10-11-2007 11:40 PM

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.

AceofSpades19 10-11-2007 11:45 PM

Did you unmount the disk before you tried fscking it?

carlsonultimate 10-12-2007 03:48 AM

Yes I did It gave me the same thing


All times are GMT -5. The time now is 08:13 PM.