Programming :: Ext3 To FAT32 USB Drive Filename - Invalid Characters

Feb 13, 2011

I am using Debian Lenny 5.0.3 with a stock 2.6.26-2-amd64 kernel, and have a ~/Documents/HTMLS directory of 273.2MB (21590 files, 1063 sub-folders) which according to konqueror shows 1130 items - 572 files (60.8MB Total) - 558 folders, these were created by 'Save Page As' in Iceweasel 3.5.11. I am trying to copy the contents of this directory to a similar directory on a 2GB USB thumbdrive /dev/sdb1 which was partitioned and formatted as fat32 by Qparted. Problem is that the copying ceases after about 6 files transfer. I found that (as I am sure you know) the named.html files come with a matching named_files folder, and often there are what appear to be invalid characters such as '*','?',and ':' in the filenames in said named_files folders.

After exhaustive googling [I know we all say that] I found an instruction:
Code:
pax -rw -s '/[*?:]/_/gp' stuff /fat32/partition
that changes the name of the files, replacing said characters with '_', but whilst I can get pax from my repos, I really don't want to 'archive' the files - since I understand that pax was created to bridge a war between tar and cpio - because I want to be able to read the html files on an old (not connected to the Internet) WinXP tablet. So, I believe that I need to create a script, that scans all the filenames, greps and seds to replace said 'unacceptable' characters. I am assuming that Firefox on the Tablet PC will be able to open the htmls if I can get them onto the thumb drive. Are there any other known characters in filenames that M$ file systems can't handle?

View 1 Replies


ADVERTISEMENT

Software :: Move A Tar File From My Ext3 Box Onto A FAT32 Usb Flash Drive But Keep Getting?

Jul 3, 2010

I'm trying to move a tar file from my ext3 linux box onto a FAT32 usb flash drive but keep getting

mv: failed to preserve ownership for `/dir/blah.tar.gz': Operation not permitted

View 3 Replies View Related

Programming :: Bash - Test If First 2 Characters In A Filename Are Numbers?

Oct 21, 2010

I have a directory with files like this:

Code:

And what I'd like is to have the files renamed like this:

Code:

How could I code it so that it removes the numerical part of the filename (at the beginning), even with different patterns (like the 01 - artist vs the 01-artist)?

View 8 Replies View Related

Programming :: Script To Insert Characters At End Of Basename In A Filename

Aug 19, 2010

Enterprise Linux 4 (2.6.9-78 kernel)...rename not working! Need to insert "_T" at the end of every file in a directory, just before the ".extension"

I have tried sed substitution with no success (because I do not know the codes and effects of anchoring well enough).

An example filename:

My failed tests:

Code:

Code:

Code:

Code:

View 9 Replies View Related

Hardware :: Change My External Hard Drive's File System From Ext3 To Fat32?

Feb 9, 2010

i needed to change my external hard drive's file system from ext3 to fat32, to use it in windows, which i did the simple way: i shrunk the ext3 partition, made a fat32 partition, copied the files over, removed the ext3 and made the fat32 bigger. unfortunately, while gparted was making the partition larger, my computer shut down. i lost all my files and the partition messed up immediately. i made a new fat32 partition, after deleting the old one, but noticed that gparted was showing 100 gigs already in use (???). so now i have a 300 gb hard drive with only 200 gb i can use; i ran df to make sure gparted wasn't messing up, but indeed it shows the partition as being only 200 gigs in size. i haven't tried making any other kind of partition yet, such as ext3, for fear of losing my files again, and because it wouldn't be permanent anyway, because i need those files in windows and stupid microsoft won't make their OS ext3 compatible.

View 2 Replies View Related

General :: Parsing Err Or Invalid $END - Correct User Use Of Invalid Characters

Feb 10, 2011

Trying simply to insert into table. Have succeeded in doing this but now want to correct user use of invalid characters. If I'm understanding correctly, Real-escape-string seems to correct these, so I've been trying to figure out how to use it. A short, test code version gives me a syntax error at INSERT VALUES, which--because it still has the single quotes in the text--tells me the real-escape-string didn't work. The code below gives me a parseing error with invalid $END at </body>.

Insert Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' VALUES (UTC_TIMESTAMP,'What's happen' bra?')' at line 1 Parse error: syntax error, unexpected $end in /home/powere15/public_html/DB/exercises_insert_record.php on line 94
<html><head><title>Exercise Catalog Insert Record</title></head>
<body>
<?
/* Change db and connect values if using online */
[Code]....

View 2 Replies View Related

Fedora :: Short Filename Case Error On FAT/FAT32

Jun 15, 2010

I have some files and directories (some mixed case, and some all uppercase) that I have copied on a FAT32 USB stick, and when I load this on FC11 all the files and directories that have/are less then 8 characters (ie that fit into the 8.3 format) all go to lowercase.

View 1 Replies View Related

Fedora :: Delete Directory With ??? Characters In Filename?

Jun 6, 2010

I have downloaded torrent from some chinese tracker. It has ???? and some other symbol charaters in directory name. How to delete that file and directory?

View 5 Replies View Related

Ubuntu / Apple :: Save Dir In Ext3 Originally Written To Fat32?

Jan 1, 2011

I have 50 gigs worth of raw Digital Performer sd2 files originally saved on a fat32 external hd.

I don't have a spare fat32 laying around but I do have an ext3 disk (I run ubuntu 8.04 at home).

I have a feeling that saving these files to ext3 will render them unusable if they're ever transferred back to fat32.

I swear I've been burned by this before.

What would you do here?

Tar them first? A friggin dmg file?

View 1 Replies View Related

Ubuntu :: Convert External Drives From Fat32 To Ext3 Without Loss Of Data?

Feb 25, 2011

I have 2 external drives that I'm using for movies and they're both formatted to fat32. The problem I'm experiencing now is that some of the high quality mkv files are not able to be moved to the drive because of fat32's limitations.

I'd like to convert to ext3 (or 4) and I wanted to check to see if I can do it without having to reformat and without loss of data.

View 4 Replies View Related

Programming :: Convert A Dynamic Library (filename.so) To A Static Library (filename.a)?

Nov 18, 2009

How can we convert a dynamic library (filename.so) to a static library (filename.a) using gnu gcc . Can we get a static library form a dynamic library . I saw a few post in which the conversion form a static library to a dynamic library is mentioned but, unfortunately, not the other way.

View 4 Replies View Related

General :: Use The Second Drive For Backups, Both Manual And Using Back In Time \ Noticed That The Second Drive Was Formated In FAT32?

Nov 1, 2010

I have a second hard drive in my desktop and both the main dirve and second drive are 250GB. I use the second drive for backups, both manual and using back in time. The other day I noticed that the second drive was formated in FAT32. If I go to disk utility and look at the drive it says:Usage:FilesystemPartition Type:Linux (0x83)Type:FAT(32-bit version)Is this ok? I thought in Linux it should be Ext4. So far its been working fine for a while now but if I need to move my files and re format it to ext4 and move them back I would rather do it now when there is less data on the drive.

View 3 Replies View Related

Ubuntu :: Backing Up Files With "invalid Encoding" In The Filename?

May 10, 2010

I wish to install ubuntu 10.04 on my desktop PC, but before I do that I need to back up my HDD. Due to alot of filenames show as having a wrong encoding, ubuntu will not let me copy the files. We are talking hundres of files in many sub folders.

The way I see it, I either have to:

1. have ubuntu back up my files in annother way (and not simply dragging and dropping as I have tried)

2.use some sort of tool to convert/fix the filenames so I wil then be able to back them up.

I've tried the following using convmv as mentioned here, but with no succes.

Code:
convmv -r --notest -f windows-1255 -t UTF-8 *

I'm using a live cd, thus the files are not located in my home folder, but on a separate parrtition.

View 9 Replies View Related

Debian :: Format USB Pen Drive As FAT32?

Jun 5, 2010

Debian 5.0I need to format an USB pen drive as DOS FAT32 but I can't find;

mkfs
mkfs.vfat
mkdosfs

View 8 Replies View Related

Fedora :: Copy Files In Ftfs Drive To Ext3 Drive?

Dec 4, 2009

i want copy files in ftfs drive to ext3 drive. how am I do this?

View 2 Replies View Related

General :: Reformat An Ext3 Drive To A Windows Drive?

Mar 26, 2010

I have an external drive which is formatted for Linux (ext3) and want to re-format it to use it under windows. I have no data on the disk that I need, just want to re-format so I can use it for a backup for my windows7 laptop.

View 3 Replies View Related

Ubuntu :: Mount FAT32 Drive Automatically?

Jan 12, 2010

I am setting up a home server and have two hard drives. One is the main HD for system files and the other will be for personal files.

The personal HD is /dev/sdb.

I know I have to edit fstab in order to get it to mount automatically at boot, but I am having trouble with the commands.

I would like for it to mount at boot and have full read-write access from any user.

View 3 Replies View Related

General :: Set A Pattern That Will Output A Filename Equal To The Original Filename In SoundConverter?

Jan 23, 2011

$ uname -a
Linux a 2.6.35.10-74.fc14.i686.PAE #1 SMP Thu Dec 23 16:10:47 UTC 2010 i686 i686 i386 GNU/Linux
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch

[Code].....

How can I set a pattern that will output a filename equal to the original filename? E.g.

something.mp3 → something.ogg

And why isn't this implemented in SoundConverter?

PS: {Filename} doesn't work.

View 1 Replies View Related

Ubuntu :: Format A Flash Drive As FAT32 From Eeebuntu?

May 16, 2009

There is no obvious format command when I right-click on the drive.

View 2 Replies View Related

Hardware :: Can't Access Western Digital USB Fat32 Drive

Sep 14, 2009

I have Fedora 11 running on my server and I am trying to use an external WD 160mb usb fat32 drive. When the drive first fires up I am able to see the root file system, but then it fails. Thanks Rondo

Here is my fstab file

PHP Code:

[code].....

View 5 Replies View Related

Ubuntu :: Make A Single Fat32 Partition On Usb Flash Drive?

Jun 3, 2010

I am installing Debian on my netbook. I need to make a single fat32 partition on my usb flash drive. I really love linux and want it on my netbook.

View 4 Replies View Related

Ubuntu Servers :: Change Hard Drive From FAT32 To NTFS

Jun 12, 2010

Im usning ubuntu server 10.04 (Command-line)My second harddrive is FAT32 but i would like to change it to HTFS so i can store large files (larger than 2GB)

View 8 Replies View Related

General :: Lower-casing Filenames On Fat32 External Drive

Jan 6, 2010

I have an external harddrive which is fat32 (which was filled when I was on a windows system) with a lot of files on (> 200gb) which have mixed case filenames. I wanted to write a script to rename them all to lowercase however when I did I got an error saying that the filenames are the same (which I guess is true as FAT is case-insensitive). My issue is that I'm mounting this from a linux box now so it would make it a lot easier if things were lower case! I've already run a script to replace all spaces with underscores.

I know I could do this by first going through and renaming everything with a prefix and then renaming it back again (ie, rename File.Jpg to xFile.Jpg and then a second rename to strip that x off and rename lowercase to file.jpg) however I find this approach a bit messy and would prefer to do it all in one pass. Other than that, could I change the drive to ext4 without losing any files on it? The drive has a hell of a lot of stuff on there which is an archive of many years of files - I'd be absolutely gutted if I lost everything.

View 2 Replies View Related

General :: Roll Back Ubuntu Formatted Drive To FAT32?

Jan 21, 2010

I loaded Ubuntu 8.4 on a data drive (second drive no OS) from a Windows XP-SP3 system. I MEANT to load it on the main XP OS drive. Bottom line I formatted a FAT-32 with Ubuntu 8.4. Can I (freeware hopefully) roll back the Ubuntu formatted drive to FAT-32 so I can recover my data?

View 5 Replies View Related

General :: How To Add And Remove External FAT32 Usb Drive To RHEL Server?

Jan 8, 2010

I need to get a backup copy of a huge directory on one of our RHEL servers. Rather than hook the external USB drive up to my PC and manually copy it all across the network, can I just plug it in to one of my USB ports on the server and rsync it?I know how to do the rsync, I just don't know how to get the USB drive to show up when I do a df -h and how to properly remove it before unplugging it from the server. this is a live server, so I can't go playing around and possibly mess something up.

View 14 Replies View Related

General :: Recover Deleted Files From [formatted] FAT32/NTFS Drive?

Aug 22, 2011

Is there like EasyRecovery for Linux? Free open source command-line based software strongly preferred.Expecting something like:

$ fat32_recovery --some-arcane-options dump.img dir/
Recovery in progress...
~ILE1.TXT -> dir/XILE1.TXT

[code]....

View 1 Replies View Related

General :: Good Backup Utility / Script / App / Got External FAT32 Drive

Mar 10, 2011

I am working from a laptop where all my work is stored on a 80GB drive. I am now also an owner of an external 250GB USB hard drive, formatted with FAT32. I want to keep it FAT32, so that I can offer some of my files to people that run Mac OS or Windows and I don't want to have them install ext3 for windows and what not.I am in need of a strategy which will allow me to keep a mirror of my laptop drive on my new external drive, i.e. no history / versioning required. However, I do care about file permissions. The files don't have to be stored as-is, they can be stored within a large (80GB?) tar file, that is fine - it would be easier for me to coerce people to open a .tar file than to install an ext3 driver for their OS, I suppose. I don't think I can keep file permissions otherwise, can I?

I have previously used a self-written sh script that used rsync to keep an up-to-date copy of my laptop filesystem on a USB flash drive, but in that case I had the flash drive formatted with ext3, so no problem with file permissions there. This time, it's trickier.

View 9 Replies View Related

Software :: Got A Fat32 Extern Hard Drive And Would Like To Do A Defrag And A Scandisk On It With Fsck?

Feb 24, 2010

I got a Fat32 Extern Hard Drive and I would like to do a defrag and a scandisk on it with fsck? Can any one tell me what is the command to do it? I could not find it on google,

View 2 Replies View Related

General :: Shell - What's The Difference Between Filename And ./filename

Apr 23, 2010

What is the difference between filename and ./filename? Under what circumstances is one preferred to the other?

View 5 Replies View Related

Server :: Split A Filename Into Its Filename And Extension?

Apr 6, 2010

I need to split a filename into its filename and extension, so I can append a datestamp to the filename. I'm using bash.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved