General :: Scripting Copying Files From A NTFS Partition?

Jan 22, 2010

I record my lectures at school using my mobile phone then send them over wifi to my laptop and use a program to do volume correction all in windows. However, I want a exact copy of that folder in my home folder on my ubuntu install on a separate partition.I've been manually copying them over so far but I want to make a script that I can run to copy all new files over. I know a little bit about scripting, mounting the drive and actually copying files is easy, its figuring out how to determine new files and copy only those that I don't know how to do.

View 4 Replies


Ubuntu :: Scripting - Copying Files Listed In A Text File ?

Apr 15, 2010

I've got a text file with a list of .gz files, these .gz files are in various sub directories of one parent directory and I've hacked this little script together to copy them from their current location to a new one and spit out any it can't find to "/home/user/not_found" but for the life of me can't get it to run properly!

The shell script as it currently looks:


View 4 Replies View Related

Fedora :: Copying Data From A (western Digital) Usb Drive (ntfs Partition)?

Feb 20, 2009

I'm actually not a Linux newbie, but I'm DEFINITELY no expert either... I'm trying to copy all my data(approx 50 GB) from a usb drive(western digital 250GB) with ntfs partition in one go... The problem is that it only fails for big transfers... works fine for smaller transfers like 1Gigs or less... I have just one internal hdd partitioned into two ext3 partitions.. so I have sda1(Primary.. mount pt /), sda2(swap) and sda3(mount pt /piyush)... The usb drive comes up as sdb(sdb1).. just has one ntfs partition... I've also installed the ntf-3g drivers.... but doesn't seem to work... I've also noticed that when the machine hangs and I try to shut down, it fails and I get a message again again... (sdb1- no sense detected) or something like this... don't remember the exact message... will post the exact one if no one is able to figure out what's wrong...

View 4 Replies View Related

General :: Ubuntu 10.04 - Search A Ntfs Partition For Files?

Aug 24, 2010

My Linux system has an NTFS disk attached to it. How can I search for all *.txt files on the NTFS partition using Linux?

View 2 Replies View Related

OpenSUSE Install :: Partition Becomes Read-only When Copying Files To It

Mar 3, 2009

I've been having trouble copying files. When I try to copy something, it starts copying, and after a few GB, I suddenly get an error. It tells me its unable to write to the disk. After this, the only way to be able to write to the disk again, is to reboot the system. I then get to copy a few more files before the same error appears. The partition in question is formatted as ext3, using opensuse 11.0 with KDE.

View 3 Replies View Related

Ubuntu :: Copying Files To / From SD Card With Partition And Windows PC

Mar 4, 2010

I have an SD card that I formatted using my Ubuntu machine to contain one raw Linux partition and one FAT32 partition. Does anyone know of a way to be able to copy files to/from the SD card and my Windows PC? Right now, when I plug the SD card into my Windows PC, the FAT32 partition doesn't appear. When I try to copy files from my Windows PC to the raw Linux partition on the SD ard, I get "bad magic number" errors on the device that I use the SD card with. Is there some utility I can use on my Windows PC to be able to correctly read this SD card? It would be very convenient to have that for travel, etc when I don't have easy access to the Ubuntu machine.

View 1 Replies View Related

Ubuntu :: Ubuntu 9.10 + NTFS-Config And Files Missing From NTFS Partition?

Apr 22, 2010

First off let me say that I love working with Ubuntu. It's a great OS to learn Linux on. Now on to my problem. I have a laptop that dual boots. Ubuntu 9.10 x64 and Windows 7 Ultimate x64. Been working just fine. I was using NTFS-Config to auto mount the Win7 partition during startup of Ubuntu. It has been running fine. I am able to move files between the linux partition and the NTFS partition with no problem. Now I've come across a problem. I big problem. Just this week I installed VirtualBox onto Ubuntu. I started creating virtual machines. 6 in all (3 Win 2k3, 1 2k8 and 1 Win7). I was saving the virtual machines to the NTFS drive as this was by far my largest drive. I used a directory titled "virtualbox" under the c:/users/public directory. This setup was working great. Was able to get my vm's patched and up to date. Created several snapshots. Basically I was a happy camper.

Last night I booted into Windows 7. OS started fine. I was just surfing the web. After that I rebooted the system and entered Ubuntu and started Virtualbox. I tried to start a vm and it complained that the virtual harddrive was missing. I checked to make sure that the path was correct for the virtual drive and discovered that the entire virtualbox directory that I created on the NTFS partion was gone!!! Everything else was in place and intact including music and large video files that I had downloaded to the Ubuntu partion and moved the the NTFS partion.

I save these virtual machines???? Should I abandon using NTFS-Config. This is somewhat critical since I had took sometime to create this test lab and to have it disappear from simply booting into Windows 7 is crazy.

View 5 Replies View Related

Hardware :: Ran Mkfs.vfat Over Top Ntfs Partition - Any Way To Restore Ntfs Partition Info?

Oct 12, 2010

I was attempting to format a flash drive, and well, used the wrong sdX device. I've run DiskInternals Partition Recovery tool, and all my files are still there (you have to pay $139 to have it restore the files). Is there any way using tools in linux to restore the ntfs partition/files? It was a single disk with the partition taking the entire drive. I've tried mounting it with the -t option, but it says invalid ntfs signature. Man, two lessons the hard way, make sure you backup (duh) and be careful what you type as root.

View 8 Replies View Related

Ubuntu :: Not Seeing All Files On NTFS Partition?

Sep 11, 2010

I just got a new laptop and am dual booting Windows 7 and Ubuntu 10.04. I tried mounting the Windows partition to access some files (such as documents), but they won't show up in Nautilus. I double checked their location from inside Windows, but they're not where they should be.

View 3 Replies View Related

Ubuntu Installation :: Resizing Windows Partition - Install Files On A Non Windows NTFS Partition

Jul 22, 2010

Now however its not letting me resize the Windows partition, mounted or unmounted. It currently occupies the whole disk. I would rather not reinstall the whole thing over again, but I will if I have to. Isnt there an easy way to shrink a Windows partition? I swear Ive done this before and it wasnt this hard. Could it be a problem with the Mint installer that now asks me if I want to unmount my disks before it goes into install mode? On this PC I would like to have

Windows XP
One of the E17 OSs
Puppy Linux (to create a remix)

I am probably going to put most of the linux partitions on the second laptop drive but I want to install files on a non WIndows NTFS partition.

View 6 Replies View Related

Ubuntu :: Recovering Files From NTFS Partition?

Apr 17, 2010

By mistake i have deleted few files from my NTFS partition,is it possible to recover all those files..?

View 9 Replies View Related

Debian :: Using The Same NTFS Partition For Linux And Windows Files

Apr 15, 2015

I have installed Debian as a second OS alongside Win XP, and now I have Win XP on C drive (if viewed from XP), NTFS, my data files (mainly texts and graphics) on D drive (NTSF), and Debian on ext3. Debian sees and opens files on D.

1. If I read-write from-on this D partition from both OSes, is there a chance the data will be corrupted?
2. If I open a Windows-created TXT, GIF, JPG, HTML or other not-proprietary format file from Debian, edit it and save (just SAVE, not SAVE AS) - will this file remain readable from Windows?

View 14 Replies View Related

Ubuntu :: Recvering From Files From Overwritten Ntfs Partition?

Sep 28, 2010

I installes Ubunu on my Windows XP pro FD and I need to rcover some files , What is the best way tto recover them?

View 2 Replies View Related

OpenSUSE Install :: Modifying Ntfs Files On Windows Partition?

May 10, 2011

I have just installed Open Suse 11.4 Gnome, and I am trying to work on files on my windows partition that is ntfs, and it keeps telling me that they are "read only"......I check my /etc/fstab file and that it shows permissions at the end of the windows partions to be "0 0", which I was told was what was I needed to be able to work on ntfs files in windows?

View 6 Replies View Related

Ubuntu Security :: Files Which Are Created Automatically In One Of Ntfs Partition?

Jan 11, 2010

I'm a newbie despite using Ubuntu most of the time for nearly 3 years. There are some files which are created automatically in one of my ntfs partition. The files are khq, khp, kht, an autorun inf file and others. They seem to have been created while I was using ubuntu and even though I delete them,they appear again later. I have googled and have found few information that the files are malware. I will like to know if there is a known issue and solution. This is the first time i'm posting a thread.I hope i have post it at the right place and if not,

View 3 Replies View Related

Ubuntu :: Keeping Files Moved From NTFS Partition To EXT3 Safe

Mar 13, 2010

Long story short, my Windows had a fatal crash the other day and since I couldn't find the installation disk, I burned the Ubuntu 9.10 disk image to a CD at a friend's place and installed it on one partition of the hard drive. The other partition contained tons of Windows programs and documents in an NTFS system. Ubuntu is cool and all, but when I finally found the Windows disk, I wanted to reinstall it for dual-booting, to use some programs that don't run well in Wine.

To keep some documents safe and not waste any CDs, I moved them over to the Ubuntu partition before installing Windows. As experienced ubuntuists know, the slightly clumsy Windows installer erases GRUB in the process, and it's recommended to install Windows first. So, now I ended up with a working Windows partition and an Ubuntu partition with all of the stored data, which I can access via guest status with the burned CD.

Here's the catch though - as a guest and without Linux properly installed I can't move anything I moved to the Linux partition from the Windows partition back anymore. All the folders have a little X on their top corner. I'd be glad to reinstall Ubuntu now, but I must know how to keep all that tranferred data safe. Can I keep it there during the reinstallation? Should I install Wubi on Windows and access the stuff through it?

View 3 Replies View Related

Ubuntu :: Delete Folders Or Files On NTFS Partition Not A Option To Move To Waste Basket

Nov 24, 2010

10.10 on a ext4 partition. I deleted a folder that sat on a NTFS partition that I use as data storage. I note that if I delete folders or files on this NTFS partition there is not the option to move to waste basket - it is just deleted. If the folder still exists on the hard drive (has not been over written) I may be able to retrieve it - but where could it be? On the NTFS partition?

View 2 Replies View Related

General :: Scripting To Move Thousands Of Files Into Folders

May 25, 2011

Our client has a website (Joomla 1.5 based) to promote participation in and report results of a 10k race for runners in Scandinavia...

The race is scheduled for late June and will be covered by at least 5 still photographers at various points along the race course.

There are to be about 5,000 runners, each entered under a shirt number like bib_1000 through bib_5999, and this means there will be a significant number of digital jpg files submitted by the photographers...

The client has in place some software which will "automagically" resize, watermark, and rename the individual files in the form:

And so on with a possibility of as many as 10 or 12 images in the aggregate with the same alpha-numeric "shirt number" at the beginning of the filename.

Our presentation software does a great job of handling thumbnail image generation and displaying a slideshow in a lightbox of all files within a given folder on the webserver.

And now finally the question...

Given a folder containing 25,000 or so *.jpg files, how can we write a script that:

1. parses the filenames to unique "shirt numbers"
2. makes folders with each "shirt number" as the foldername
3. moves the files from the root of the original folder into the appropriate "shirt number" folder.

Note that the order of my list above is not important, and if you know of a better way to organize the task we are fine with that.

View 12 Replies View Related

General :: Shell Scripting: Getting Multiple Input Files For An Application?

Sep 21, 2010

I am running an application called QuantiSNP [URL]. The binary file is "quantisnp2", called upon in the "" supplied by the authors. I am only able to run the application for single file processing (e.g. 1 input file for 1 sample; I can't run the batch file processing because I don't have the necessary BeadStudio report files, which has different formatting for the input files).

The difficulty is that I have 300 samples (300 unique sample IDs) and 3 input files for each sample for a total of 900 runs of this application. I am wondering how would I be able to automate this process as a shell script instead of basically manually changing the sample ID and respective input files every time a run completes? I bolded the single file processing shell script command line options below that need to be changed for each sample/input single file processing run. The command line option "--sampleid" is for the name given to the processed output files corresponding to the sample of interest and there are 3 input files for each sample.

/home2/jason/QuantiSNP/quantisnp/linux64/ /home2/jason/QuantiSNP/MCR/v79/ --config /home2/jason/QuantiSNP/quantisnp/config/params.dat --levels /home2/jason/QuantiSNP/quantisnp/config/levels-affy.dat --outdir /home2/jason/QuantiSNP/quantisnp_out/ --sampleid sample1 --gender female --input-files /home2/jason/files/sample1_input.txt

Note that each sample has 3 input files, for a total of 3 runs of "quantisnp2" for each sample. e.g.

sample1 /home2/jason/files/sample1_input.txt
sample1 /home2/jason/files/sample1_input2.txt
sample1 /home2/jason/files/sample1_input3.txt


View 7 Replies View Related

General :: Shell Scripting - Compare Strings From Two Different Simple .txt Files?

Jul 29, 2010

what command is to be used to call strings from other files to the script and then comparing strings from two different files in the script to check if strings are matched then return the result to another script.

View 1 Replies View Related

Ubuntu :: 9.04 Copying From Ntfs To Ext3 Slow/not Possible?

Jun 12, 2010

I am trying to copy the contents of an external NTFS hard drive to my internal ext3 drive. Ubuntu 9.04. The transfer starts, then slows, then grinds to a complete halt, and has to be ended, causing icons on my desktop to disappear. Then the hard drive needs to be unplugged, then re-plugged to register in ubuntu again. Sometimes this happens first time, other times it will not register after many plug in - out cycles. Small files will copy across successfully while still in the "slowing down" phase, so I don't think it is a permissions problem. On the occasions the ntfs HD will not register in ubuntu, it makes a clicking noise when started, then spins down to silence. Could this indicate a hardware error, or is this ubuntu giving up after failed attempts to recognise it?

When trying to run files directly from the NTFS hard drive (when working correctly), it runs fine with no problems.I currently have this device plugged in via sata - usb adapter, but the same problem happened when this drive was an internal. I had planned to move all the files from the ntfs drive to my ext3, then format the ntfs drive to ext3 and copy the files back, but it looks like it's not meant to happen. Next time I can actually get ubuntu to pick it up and mount it I will try the enabling of DMA (as seen in another post), and trying to copy with rsync instead of nautilus (as seen in another post). Is there anything else it could be

View 1 Replies View Related

OpenSUSE :: NTFS FOLDER - Keep 2 Ntfs Partitions Intact Will Deleting The Partition

May 26, 2011

I am doing major deployment of opensuse 313 pcs from windows to opensuse. I am having a problem that I have to keep 2 ntfs partitions intact will deleting the partition that has windows. Now everything goes well, opensuse installs but the problem is that I cannot give user full rights to ntfs folders. I have used graphical file permission methods n terminal chown n chmod methos but still permissions revert back to root.

View 3 Replies View Related

Software :: Changing An NTFS UUID - Restore An NTFS Partition From A Backup?

Dec 25, 2010

I am trying to restore an NTFS partition from a backup and I need the new drive to have the old (dead) drive's UUID (which I recorded).I really really really cannot use the option of changing fstab to mount using a new UUID, for this case I need the old UUID that existed on the other drive.Is there some ntfs equivalent of tune2fs that'll let me change the UUID on an ntfs partition?

View 4 Replies View Related

OpenSUSE Hardware :: Failure Mounting External NTFS Drive And Internal NTFS Partition / Fix This?

Jul 18, 2010

Just installed 11.3 on my computer, however when I connect an external NTFS harddisk I receive an error message. When I open dolphin to connect to an internal NTFS partition I receive the message:

org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org. auth_admin_keep_always <--

Anyone having an idea how I can fix this?

View 9 Replies View Related

General :: Copying Files Using Smbclient?

Jun 7, 2010

I have a new network attached storage unit that I'm trying to transfer my data to. On this NAS, it has a very basic linux installed with SSH enabled. Browsing through the programs installed on it, i found smbclient. Am I able to copy files directly from my old NAS to my new one using smbclient?It would sure beat transfering 950GB from my old NAS through a computer then onto my new NAS.

View 1 Replies View Related

General :: Copying Files From Windows?

Jan 3, 2011

How can I copy some files from a windows machine to Linux machine ?

View 13 Replies View Related

General :: Copying Photo Files To CD?

Jan 16, 2010

I am running openSUSE 11.2 KDE 4.3.4 on my ThinkPad R51 laptop.I would like to copy 'File A, File B, File C' (for example) that has photographs of a holiday , to a blank CD inserted into my drive and cannot find a way to 'copy and paste' into the volume.

View 3 Replies View Related

Fedora :: Random Crashes & Freezes Copying From NTFS?

Dec 22, 2009

I am in the process of trying to move my files from a windows 2003 install over to fedora 12 using the Fedora 12 x86_64 Live image.

After some initial problems with burning the ISO image (had to enable disk-at-once to get rid of I/O buffer errors). And a GPF in the xor_sse2 module while building my software raid 5 arrays (forced to reboot, unable to stop or restart the array) I finally managed to create a single LVM volume group ontop of it all.

Initially I ran some tests on the raid volume and wrote a large 100GB file filled with zeroes all over it to be sure that it was functioning normally. After that I proceeded to copy files over from the NTFS volume to the LVM volume. which resulted in lots of errors on my terminal and complete loss of the entire filesystem. Even a simple ls -l / resulted in "Bus Error" although the system still kept running for a few seconds, until it finally froze and spontaneously rebooted. Since then I ran memtest to be sure my memory is fine, and tried alternative ways of mounting the volumes, and copy methods. Each attempt resulted in either a complete freeze or instant reboot. After 6 reboots, I managed to copy 20GB out of 490GB. Obviously this will take forever this way.

/var/log/messages is unhelpful. There are a bunch of cryptic messages regarding ATA bus errors (mostly CRC errors it seems) and soft resets when the LVM volume get mounted, but everything functions fine until I touch the NTFS volume.

Here are some of them:

Dec 22 02:32:15 localhost kernel: ata6.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
Dec 22 02:32:15 localhost kernel: ata6.00: BMDMA stat 0x4
Dec 22 02:32:15 localhost kernel: ata6.00: cmd ca/00:80:02:a5:fb/00:00:00:00:00/e7 tag 0 dma 65536 out


View 1 Replies View Related

General :: Prevent SCP From Copying Local Files?

May 17, 2010

I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.

View 1 Replies View Related

General :: Copying Files From Ubuntu To Windows Xp?

May 8, 2011

i am accessing linux through putty and i wrote somany programs in unix using putty and gedit but now i need to copy all files into windows. how to copy directory(linux) to folder(windows) without installing any softwares?If it is necessary to install software to copy files then tell me the process of using that software.

View 5 Replies View Related

Copyrights 2005-15, All rights reserved