Ubuntu :: Bash Copying Files From One Drive To Another?
Nov 15, 2010
I've got two external hard drives, a 2TB and a 320GB. I've recently come from Windows 7. On Windows 7 I wrote a batch file which checked whether both hard drives existed and then copied a couple of folders from the 2TB to the 320GB without overwriting. I've been trying to work out how to do the same under Linux without much luck. I've tried rsync but it looks like it overwrites. Does rsync overwrite?
If it helps, the batch file I wrote in Windows
if exist D:320GBDrive (if exist H:2TBDrive (xcopy H:2TBDrive* D:320GBDrive /I/E /-Y < C:decline_copy.txt))
Which basically checks for drive D:, checks for drive H: and then copies the contents of the folder on drive H to drive D and says no every time it asks to overwrite.
View 2 Replies
ADVERTISEMENT
May 4, 2010
Seeking a decent Perl or Bash script or hack used to copy data from a CD/DVD to local or even remote hard drive/storage.
View 7 Replies
View Related
Nov 6, 2010
If you use Ubuntu - when you copy files to USB Flash Drive, is your CPU 100% loaded? On Arch it is.
View 2 Replies
View Related
Aug 2, 2009
Ive been using linux for a while but I am just getting into shell scripting, im currently trying to get a simple script for finding and copying files powered by the command:
Code:
This works fine from the command line but when put in a script such as:
Code:
Code:
with the keyboard inputs for $fc1 and $fc2 being *.doc and ~/test respectivly. The only problem i can see is the xargs -ivar "var" part possibly needing $var to be defined?
View 2 Replies
View Related
May 19, 2010
im trying to copy a file over to my external hard drive and its a 5.8gig file and i keep getting this error saying there was a file copy error and then i click show more details and says Failed to attach the file: File too large
View 3 Replies
View Related
Aug 4, 2010
I got a problem with the motherboard of my computer and now I need to get some files out from the hard drive (an ext3 partition). I can access the files from another computer but because of the permissions of my user it doesn't let me copy the files over to another drive.
my computer was running Kubuntu 8.10 with a Vista dualboot. I also tried attaching the hard drive to another laptop, but because of the video drivers the display doesn't function properly.
View 4 Replies
View Related
Nov 21, 2008
I want to copy a .tgz file from my computer to an external hard drive. However, I get the following message:cp: cannot create regular file `/mnt/usbkey/ws_2008/misc/minipar-0.5-W indows.tgz': ermission deniedI get this error with any file I try to copy to the external disk. rnal disk is recognized, when I mount it, I can see the files and folder I have there, but seems that I cannot copy anything to it.When I try to copy the same files from my computer to a usb flash drive, everything works
View 9 Replies
View Related
Jul 30, 2011
I have two USB 2 external hard drives. I want to copy about 30 gigs of data from one to another. What command line command do I use ? I was thinking of using cp with the -R and -n options, but I have no idea what devices to refer to. I can't find any external hard drives in /etc/fstab and I'm not sure what /dev device each USB external hard drive uses. I just want to copy the files and the directories that they are in just as they are. There are no links and I do not want to do a backup.
View 10 Replies
View Related
Nov 18, 2010
We are experiencing problems copying files from a server to server where the machine issuing the copy is a 32-bit lucid and the mount drive is a 64-bit server. I have no other information but the md5's are consistently different after doing a copy. The files are > 8mb.
View 2 Replies
View Related
Jan 10, 2011
I'm hoping to set up a cron job that takes a file and copies it to a remote password protected FTP server. I've got a command that formats the file with the correct name and I've put it in the anacron file in /etc/cron.d (which I think is right, haven't tested it yet).I'm not sure how to copy the file to a remote server though. I do actually have the ftp server bookmarked in my places menu. So is there a simple way of suppling a file path that will put it straight into that folder? The only problem I can see with this is that the connection won't be open continuously, so would need to be re-opened when needed (I could presumably save the password in the keyring so that I don't need to be there to type it in).
Or maybe set up a cron job that connects to and mounts the ftp server a minute before it has to copy the file over?
View 9 Replies
View Related
Feb 14, 2010
I've discovered that Dolphin seems to lose random files when copying many large folders.
I first noticed this a few months ago when I tried to copy my music library from one folder to another on the same HDD. It consisted of around 600 folders and 6500 files. During the copy there were no errors but after the copy I found that some of the newly copied folders were missing files. I put it down to human error or a glitch.
Yesterday I tried to copy 13 folders containing rips of some of my DVDs. Each folder basically had one film of either 700MB or 1.4GB. Again no errors showed up during the copy but I found 3 of the newly copied folders were empty.
It's not so critical with music or films but I can't afford to lose work data like this.
Has anyone experienced or seen a similar problem with Dolphin? I'm going to have to do some more extensive testing but this is not good.
The first time I noticed the problem I was running KDE4.3.4 (I think) and now the latest was with KDE4.4.0.
View 9 Replies
View Related
May 22, 2010
I accidentally wiped my 120GB external hardrive clean ( it was at about 95% capacity ) and I was able to recover 111.80GB back using ddrescue and all of those files now sit in a Recovery.img file.
1 ) I know I have to mount this file... yet every time I try to mount it back on my external HD permissions jump down my neck, and to add to it when I try to give my user full permissions for that drive it never works and resets to how it was.
2 )I have tried copying to .img to my drive so I could jsut worry about it later and free up some local HD space yet I don't have those permissions as well...
View 9 Replies
View Related
Mar 27, 2010
I've got a problem I've been trying to work out for a while. I have a 160gb drive, and only 15gb dedicated to Ubuntu's installation because of a screwup. I have very little resources at my disposal, as I'm using a netbook with no optical drive, and I can't seem to get the liveusb to work. It just stalls after the menu with an error message. I have no way to connect my machine to the internet, and I've been forced to transfer files from a friend's computer. I'm running out of ideas, but one I thought of was to copy the install partition over to the larger partition. I'm not sure if it's possible, or if it would make a larger install or just a copy of the same size. I just want some clarification on how I would solve this issue, even if my idea doesn't work.
View 1 Replies
View Related
May 6, 2010
I had a script before my machine broke recently that would allow me to select a folder then randomly copy MP3's from that folder to a USB drive. I cannot seem to find it again, the closest I came to is one called 'Randomcopy 0.6b' which has been modified for iPod Shuffle, and also the non-iPod version of the same script which appears to run fine but copies a bit too fast and nothing is placed on the device.
View 1 Replies
View Related
Apr 15, 2010
I am getting ready to upgrade from Ubuntu 8.10 to 9,04 (I am a bit behind, I know). I just drag my home folder to a USB drive to back up and it should copy all the files (including hidden ones).
When I tried this, I get the error that Symbolic links cannot be created. Should I worry about this? Would this effect my backup in some fashion?
View 8 Replies
View Related
Jul 8, 2010
I have installed ubuntu 9.04 version. But now its too slow to copy files to any devices or even to other drives.
View 3 Replies
View Related
Jul 11, 2010
when I am trying to copy any of my files to usb stick, it gives me this alert: the folder cannot be copied because you do not have permissions to create it in the destination.
View 2 Replies
View Related
Aug 2, 2010
i have this .mkv file of a movie which is of size 7.9GB and when i try to copy it to my external drive after some time it shows a error saying "Error splicing file: file too long" so how to copy help
my external HD's file format is vfat. and i am using ubuntu 10.04
View 4 Replies
View Related
Aug 13, 2011
I have successfully installed 11.04 onto my existing Windows laptop as files contained in the windows system and have dual booting.I would like to copy this installation to a 5gig fast usb stick so that I can retain all my settings etc
View 2 Replies
View Related
May 9, 2011
I want to copy my /home to a USB thumb drive recursively. I've wrestled with this for a few hours now and continue to spin my wheels.The device is listed in my Disk Utility as /dev/sdc. However a little further down it is listed as /dev/sdc1 ? Anyway, I relabeled the volume as usb stick and formatted it to Ext4. I mounted it at /media/usb stick Do I have to enter this drive into the fstab? If so, how? what do I write? Using the command : cp -R (what follows... I want to copy /home recursively to the usb thumb drive.)
View 8 Replies
View Related
Jun 2, 2011
I finally got K9copy to work and I'm using it to extract DVDs to my hard drive. I extract a dual layer DVDs it becomes a 5GB DVD. In the settings, I have DVD size as 9GB because I assumed this would not cause any compression. When I use k9copy assistant to change the shrink factor before ripping, I can only change the shrink factor of some titles to 1.67 from 2.50. I want the shrink factor to be 1 since this seems to ensure that the output of the file is the same size as the title on the dvd. I want the copied DVD to be the same size as the original. I have no problem with hard drive space since I have 6 terrabytes of free space.
View 6 Replies
View Related
Jan 19, 2010
I need to copy some files from an OpenBSD 4.5 server to my Ubuntu set up via flash disk tell me what commands to enter on each in order to do this please? I believe OpenBSD is UFS and I'm running 9.10 so Ubuntu is ext4
View 9 Replies
View Related
Apr 6, 2010
I am trying to copy files across a network using terminal. i know this is possible but i can't find a way. but i can paste smb://xxx.xxx.xxx.xxx/myfolder in the address bar in a folder and navigate to the correct area.is there some other way i can do this?
View 8 Replies
View Related
Jul 27, 2011
I had to leave rather suddenly (decision was Germany's, not fiancee's), and now am in the States again, but my files are still there. There are lots of things (mainly photos) on there, that I would like to have here. SOME stuff is on CD/DVD, but there is stuff that isn't.
Is there some way that I could access her computer and just copy files to mine?
(I picture two folders, one on hers, one on mine, and I just dragging an icon from one to the other - but I don't suppose anything's THAT easy...)
Naturally, her computer would have to be on, and I assume she could not be using it herself. Naturally also, I would get her permission first...
I assume that it would take a while, but if it were as simple as the icon thing I described above, then I could just go away and come back later. I assume something would be running to make sure that the destination file and source file were identical before proceeding to the next file.
[Before you suggest: why doesn't she just copy the files to DVD's and mail them to me? She is not all that computer saavy, I'm afraid, and trying to explain it all, including the exact folder names and such, Plus, how to use a DVD/CD burner and software... Plus translate it all into German... If I were rich enough, I could just go there and do what I needed, but that is not in the cards for the present. ]
IS there a way to copy stuff from her computer to mine?
View 2 Replies
View Related
Jun 20, 2009
I am thinking about using aida to nuke my drive and then I'll re-partition it with gparted. I don't want to lose my 15 GB installation of Fedora Core 10 in the process and have an external 80 GB drive. How could I back up Fedora to this drive with the intention of copying it back to my internal drive?
View 2 Replies
View Related
Nov 30, 2010
I have a home network that includes a couple of computers {A, B, C, D}. currently, I have a cron jon that runs every minute and updates (using rsync) the hard drives of computers {B, C, D} with the contents of hard drive {A}. So far everything works great, as hard drive {A} barely has any information on it. Now, I am about to copy a lot of information (about 8 GBs) to hard drive {A}. Naturally, the cron job will run (as it runs every 1-min) and try to 'sync' the contents with hard drives {B, C, D}.
Given my network (100Mbit/sec), there is no way the cron job will be able to 'copy' the contents to hard drives {B, C, D} in one minute. It will take much more time. Does this situation create a problem? meaning, will cron re-run a new rsync instance 1min later, even though an existing rsync process is running and still copying information to hard drives {B,C,D}? Will my backups be hurt / slowed down tremendously because of this?
View 2 Replies
View Related
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
Jan 20, 2010
I need to copy ~300GB of drives from one Windows hard drive to another using a Ubuntu live CD. (I currently don't have enough power connectors for my Windows system drive AND both existing and new data drives. Stupid power supply.)
By Windows drive, I mean the drives are only data drive (no Windows install) but the files on the first drive were created and are used by my Windows system, both were formatted NTFS in Windows, and the files will again be used by Windows on the second drive.
Are there any pitfalls I need to be aware of, or can I literally just drag the files across in Nautilus? Is there a faster copy utility available (I know there are Windows programs that can copy faster than drag-n-drop, but I'm sure Ubu doesn't have the same problem ) Will using a Live CD cause any specific issues?
View 8 Replies
View Related
Mar 8, 2010
I want to search a Windows partition for all .doc and .xls files and move them over to Xubuntu to burn them to CD.
Is this easiest to do via terminal? I tried to use catfish and select all files, but I think my Mac keyboard (and USA standard keyboard settings) threw the select all files ability.
View 4 Replies
View Related
Mar 16, 2010
I just installed Apache2, PHP5 and MySQL on my Ubuntu 9.10. I have about 200+ .php format files of my site (including index.php) which I need to copy to var/www.
But the permission is denied.
View 5 Replies
View Related