![]() |
How to get rid of bogus file?
Learned the hard way that there's a 4GB file limit. Now I have a directory with a bogus entry. I was copying a 5GB file from another machine, and this is what it looked like there:
% scp In\ the\ Shadow\ of\ the\ Moon\ \(Recorded\ Jul\ 16,\ 2009,\ TDCC\).mpg user@192.168.1.1:/media/mmc1 user@192.168.1.1's password: In the Shadow of the Moon (Recorded Jul 16, 2 80% 4098MB 744.8KB/s 22:48 ETAFile size limit exceeded In the Shadow of the Moon (Recorded Jul 16, 2 80% 4098MB 708.7KB/s 23:58 ETAlost connection This is what it looks like on the Nokia (N810, OS2008): /media/mmc1 $ ls -l ls: ./In the Shadow of the Moon (Recorded Jul 16, 2009, TDCC).mpg: Value too large for defined data type I can't get an inode: /media/mmc1 $ ls -i ls: ./In the Shadow of the Moon (Recorded Jul 16, 2009, TDCC).mpg: Value too large for defined data type Based on the output of df, the file doesn't exist, but its header does. I tried rebooting, no difference. How do I repair this directory? I don't think I can just create another directory and move everything into it, because /media/mmc1 is the mount point for the external card. |
Re: How to get rid of bogus file?
Which file system?
|
Re: How to get rid of bogus file?
It's FAT32 obviously.
I assumed you already tried to remove the file with rm -f (as root) If this file was saved to the external SD card, did you try putting into a desktop/laptop (Linux) and mounting it? There might be another way to delete it that is slipping my mind... Hope you have the files backed up as you might need to format that card's partition. |
Re: How to get rid of bogus file?
fsck in linux/checkdisk in windows?
|
Re: How to get rid of bogus file?
Quote:
I'm running an scp now but it estimates it's going to take another hour or so... Quote:
Code:
$ perl -le 'unlink "In the Shadow of the Moon (Recorded Jul 16, 2009, TDCC).mpg";' Code:
# umount /dev/mmcblk1p1 |
Re: How to get rid of bogus file?
1 Attachment(s)
Quote:
Quote:
I'm attaching an (earlier) Fremantle busybox binary built on Diablo, just in case it helps you. Do not put it in /bin, just somewhere where it can be executable and use it with an explicit path. For example: Code:
scp busybox.gz root@<tablet>: Code:
# gunzip /root/busybox.gz |
Re: How to get rid of bogus file?
Quote:
|
Re: How to get rid of bogus file?
Quote:
Code:
rm: cannot stat '4gbfile': Value too large for defined data type |
Re: How to get rid of bogus file?
Thanks, that worked! I am embarrassed that I assumed a straight unlink wouldn't work and didn't bother to try perl... since I am the author of three books on Perl :-)
|
All times are GMT. The time now is 19:13. |
vBulletin® Version 3.8.8