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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-11-2007, 01:14 AM
|
#1
|
LQ Newbie
Registered: Apr 2007
Posts: 18
Rep:
|
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
|
|
|
10-11-2007, 02:54 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
10-11-2007, 10:50 AM
|
#3
|
LQ Newbie
Registered: Apr 2007
Posts: 18
Original Poster
Rep:
|
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:/ #
|
|
|
10-11-2007, 11:00 AM
|
#4
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
You haven't told fsck.vfat which drive it needs to repair/look at.
|
|
|
10-11-2007, 09:03 PM
|
#5
|
LQ Newbie
Registered: Apr 2007
Posts: 18
Original Poster
Rep:
|
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
|
|
|
10-11-2007, 09:21 PM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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".
|
|
|
10-11-2007, 10:50 PM
|
#7
|
LQ Newbie
Registered: Apr 2007
Posts: 18
Original Poster
Rep:
|
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 riginal/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
|
|
|
10-11-2007, 11:18 PM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
10-11-2007, 11:40 PM
|
#9
|
LQ Newbie
Registered: Apr 2007
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
10-11-2007, 11:45 PM
|
#10
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Rep:
|
Did you unmount the disk before you tried fscking it?
|
|
|
10-12-2007, 03:48 AM
|
#11
|
LQ Newbie
Registered: Apr 2007
Posts: 18
Original Poster
Rep:
|
Yes I did It gave me the same thing
|
|
|
All times are GMT -5. The time now is 06:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|