General :: Dd Command For Remote Disk Copy?

Jan 20, 2010

Imaging-copying a working remote share on WindowsNT to a local Linux disk target is needed .
Is that possible with dd command(how if remote share is connected as smb://ipnumber/share) and do you need root privilleges on local and remote machine for that?Perhapson source machine:dd if=/dev/hda bs=16065b | netcat targethost-IP 1234on target machine:netcat -l -p 1234of=/dev/hdc bs=16065borrsh 192.168.xx.yy "dd if=/dev/sda ibs=4096 onv=notrunc,noerror" | dd of=/dev/sda obs=4096(any difference to dd/privilleges if you use it as windows dd version since remote is running windowsNT)?

View 1 Replies


ADVERTISEMENT

General :: Copy A Read-Only File And Make The Copy Writable With A Single Cp Command?

Mar 1, 2011

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).

More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.

View 1 Replies View Related

Server :: Unable To Copy Data To Remote Server Using Ncftp Command

Jul 16, 2011

I am unable to use ncftp command I have defined all variables used. i have to copy the data to another server FTPS. When i am executing this command it is throwing error

ncftp -u : option unknown

I am copying total script what i am executing in my server. Please some one tell me is there any pistake in using the ncftp command , or tell me some other commands to copy data to remote server

BAK="/opt/DBbackups"
NOW=$(date +"%d-%m-%Y")
FTPU="username"
FTPP="password"

[code]....

View 6 Replies View Related

General :: Disk To Disk Copy Fedora 12?

Aug 17, 2010

S.M.A.R.T.tells me my primary fedora drive has lots of bad blocks,so I ordered a used identical drive from ebay.I want to do the very basic process of making a full backup of my existing drive - so as to replace it with a more or less identical replacement. Logically identical - not necewsarily sector to sector identical.im not literate in unix and its children - and seem to find a plethora of descriptinos of how to do what I want to do. which is

1. format the drive - what you may call low level format - ie op sys independent.

2. create a partition system compatible with my existing disk.

3. copy everything from my existing disk to the new disk.

4. put existing disk on the shelf as a backup and start to use new disk.

View 2 Replies View Related

General :: Remote Copy File

Aug 3, 2010

I would like to use the command rcp to copy file from remote server ( linux ) to local pc , what is the command ?the remote server name is lnx_srv , the path is /tmp/ora_file1.txt , the linux login id is ora_usr , the .rhosts have released to ora_usr the localhost pc path is c:OraI read the help page of windows , tried the command rcp lnx_srv.ora_usr:/tmp/ora_file1.txt c:Ora , but not work , the error is "rsh: can't establish connection" , Can advise what is wrong ? what comamnd should i use ?

View 9 Replies View Related

General :: Copy A File From Remote Directory

Aug 4, 2011

How to copy a file from remote to local directory and vice versa using ftp bat script file in telnet.

View 1 Replies View Related

General :: How To Do A Remote Copy Of Several Files By Using Mget

Jul 23, 2010

I would like to copy several files from a remote machine. This archives are contained in different folders and their name have a commun caractheristic (also the folders).I have tried something like that:

ftp
open machine@
prompt %to get into the non interactive mode

[code].....

View 3 Replies View Related

General :: Copy Remote Files On Nfs Without Round-trip?

Sep 20, 2011

I have a large amout of data (several GB) on a remote drive, that is transparently mounted via nfs. I'd like to copy these files into a subdirectory of where they are already residing, so everything stays on the same physical disk. For that reason, I would like to prevent an unnecessary round trip over the network.

It seems that cp files* subdir does the naive thing and reads all the data into memory and then writes it back. Is that true? Is there a special command that does the actual copying entirely on the server the disk is physically connected to?

View 1 Replies View Related

General :: Remote File Copy Through Archiving Software ?

Oct 6, 2010

I need to back up a fold on a remote machine to my local box; the remote hd does not have enough space archive it, neither does my local box. I know there's a cantrip to pipe scp through gzip (or similar), but I don't remember the syntax.

View 1 Replies View Related

General :: Remote Command Execution Via SSH And Newgrp Command?

May 9, 2011

Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.

So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:

Code:

user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else

[code]....

View 4 Replies View Related

General :: Using Kickstart Post Install To Copy Remote Files

Feb 1, 2010

CentOS 5.3 32bit
I'm having trouble trying to copy files from an nfs mounted remote machine during the the post install with kickstart.

My post install:
%post
mkdir /mnt/foo
mkdir /mnt/foo/downloads
mount 206.xx.xx.xxx:/downloads /mnt/foo/downloads
ln -s /mnt/foo/downloads /downloads
sed -i '$ afoo:/downloads /mnt/foo/downloads nfs exec,dev,suid,rw,bg,soft,rsize=8192,wsize=8192 1 1' /etc/fstab
%end
%post --nochroot
cp -r /downloads/thirdparty/importantFolder /mnt/sysimage/opt
%end

View 11 Replies View Related

Fedora :: Disk Copy Utility - Should Be Able To Not Only Copy Files But Boot Sector And Everything

Sep 1, 2010

I have a 160GB harddrive which I installed a F12, would like to upgrade to a bigger drive, but I hate to have to re-install everything.

Recommend a good disk copy utility? The utility should be able to not only copy files, but boot sector and everything. So I just need to make a copy, change my BIOS to boot from the new drive and run everything as before.

View 11 Replies View Related

General :: Dd Be Used To Copy One Disk To Many?

Jun 1, 2010

Does anyone know if this is possible? I am attempting to copy one "master" hard drive to two or more "destination" drives. I hope to use the DD command because the master drive is encrypted and I need to make exact copies to "destination" drives.

I have used dd if=/dev/sda of=/dev/sda and it works for one-to-one operations. I tried dd if=/dev/sda of=/dev/sdb of=/dev/sdc but the command skips the of=/dev/sdb and copies to sdc....I knew that was going to be too easy

View 14 Replies View Related

General :: Why Dolphin Makes Local Copy When Play A Remote .avi File

Oct 15, 2010

i am using dolphin 1.5 in kde 4.5.2. whenever i try to access movie file from remote samba server. dolphin copies the movie file to somewhere in local hard disk. so, i have to wait until a big file transferring complete. i know that it happens when i open .avi using mplayer. if i open the same remote file with kmplayer, it will player immediately instead of making local copy first. however, kmplayer is very slow and sounds and video stream breaking up, (i am sorry i do not know right english expression for this) i suppose this is not related to mplayer configuration. this seems to be dolphin problem. can i make dolphin to stop copying samba share to local disk and play instantly? there is a video in videos. it is comparing how dolphin and nautilus act differently when i play remote samba share movies.

View 3 Replies View Related

General :: CentOS 5.4 - LVM Data Copy To Different Disk

Jan 26, 2010

I've got a CentOS 5.4 box and the following disks connected:
# parted /dev/sda print
Model: ATA WDC WD1600BEKT-0 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 160GB 160GB primary lvm

# parted /dev/sdb print
Model: ATA WDC WD1200BEVT-0 (scsi)
Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 120GB 120GB primary ext3 lvm
the OS, data and programs are on /dev/sda.

I'd like to copy the full directories and files to the newly added /dev/sdb wich has, as you can see, less space. Also note that /dev/sda has only about 3.6Gigs uses, so it will no doubt easily go into /dev/sdb. How can I do the full copy, and yet make /dev/sdb bootable just like /dev/sda (just as if it was cloned by Ghost)? I've checked dd, but AFAIK, it needs that both source and target devices be the same in size.

View 1 Replies View Related

General :: Can't Copy The Disk Image Over To Ext3 Partition

Jan 6, 2011

I recently installed Linux to run a few Linux based tools on a disk images I have, and I can't seem to copy the disk image over to my ext3 partition.

The particular distibution I'm using is BackTrack 4 r2, which is Ubuntu based. I can't seem to find specifically which version of Ubuntu is being used. The disk image is 108GB. It is currently located on a NTFS partition on a SATA hard drive connected directly to the computer. The ext3 partition is located on a second SATA hard drive connected to the same computer. It has 200GB total. I do not remember exactly how much free space it had but "df -h" showed a lot more than 108GB. The computer has 4GB of RAM and I gave it 8GB of swap space.

At this point it has been running for more than 12 hours. This is far longer than I would expect it to take had I been copying the file under Windows. How ever I do not have much experience with Linux, so if it's supose to take this long please let me know. I am planning on letting it run until I wake up tomorrow.

"cp -v" hasn't been very verbose at all. The only sign I have that indicates the computer is still trying to do something is the HDD light on my chasis that has stayed lit this whole time.

View 4 Replies View Related

General :: Open SuSe 11.1 - Cannot Copy Data From Second Disk

Jan 25, 2010

I have a PC with OpenSuse 11.1. Beside root there are two other users on the system. Now I have installed a new PC with OpenSuse 11.2. Only one user is set up until now. I installed the hard disk from OpenSuse 11.1 into the new PC on IDE Primary Slave, because I wanted to copy some files from the old system. OpenSuse 11.2 has mounted the old disk automatically in /media/disk and /media/disk-1. The problem is that I can't find any files or directories from the users. I could find only one file from root in /media/disk-1/root/Desktop. Why can't I see the files? Does it have anything to do with UID or SUID?

View 14 Replies View Related

General :: Cannot Copy Files To VFAT32 Usb Hard Disk?

Jan 25, 2010

I got an USB hard disk, which is formatted in VFAT32 in window. I try to back up my file.tar to this hard disk. i got this error: writing `/media/PD03/xxx.tar': Input/output errorand the mount point is disappeared by itself.mount point: /dev/uba1the file I tar as a root... i copy the file as a root user as well.mount point info:/dev/uba1 on /media/disk type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=500)

View 3 Replies View Related

General :: Locate Second Disk Path From Ssh And Copy A Folder To It?

Jun 9, 2010

I own a web server (centos 64bit with cpanel on it) and my datacenter add me a second hard disk and i want first to locate from ssh where is it (the path) and then to copy my mysql folder /var/lib/mysql to the new disk and have it like this /new/mysql on the second disk.

View 8 Replies View Related

Ubuntu :: Very SLOW File Copy Speed (disk To Disk)

Mar 27, 2011

i have amd athlon x2 3gb RAM ddr2 two hdd one 80gb other 1tb in this computer i got only ubuntu all disk in EXT4.i want to copy 10gb many file of 700mb or 1gb ( many linux ISO )the transfer is 1mb/s this is SOOO SLOW.i did a touch /forcefsck just in case but nothing happen it is still slow!!what might be the problem ??

View 1 Replies View Related

General :: Copy DVD ISO To Empty Hard Disk / Partition And Boot As If It Is A DVD?

Sep 10, 2011

I have a broken DVD drive and no others available right now to burn a DVD iso to so I'd like to use a empty hard disk instead.

I've tried Unetbootin but that only copies a few megabytes of files - the rest of the image data in the ISO is ignored.

I have verified the ISO is valid and working with VirtualBox. It's MD5 hash is also as expected. But I need to boot at the real bios not an emulated one.

I've also tried things like:

sudo cat /disk/image.iso > /dev/sdb1

and that got "Permission denied" -

View 3 Replies View Related

General :: Cannot Copy File To USB2 External Hard Disk

Jan 25, 2010

I plan to reformat & reinstall my linux (centos).Before doing this, I got to backup my files into my USB external hard disk from Seagate (FreeAgent). The problem I faced is that I could not copy file into the hard disk even I was in root user. It prompted me that it is only read-only. I just wonder why.I have tested with my thumb drive. It worked. May I know why I could not copy file to the USB FreeAgent hard disk. Due to file system?

View 3 Replies View Related

General :: Ubuntu - Mounting Remote Hard Disk?

Apr 9, 2011

I have a machine running Ubuntu 10.04. I have a VPS (virtual private server) also running Ubuntu Linux. The VPS has a dedicated IP.

I want to have a setup, so that the directories on the VPS are accessible on my HOME PC like a mounted drive.

That is I should be able to do things like edit files on the VPS and copy/move files from/to my home PC to the VPS, as if the VPS was mounted on my box.

View 2 Replies View Related

General :: Copy Command Output In Vim?

Jul 25, 2010

For example, if I type ':pwd' to get the current working directory, I can select the text in gvim but I can't figure out how to copy it to the clipboard. If I try the same in console vim, I can't even select it with the mouse. I would like this to work with all vim commands, such as set guifont to copy the guifont=Consolas:h10:cANSI output.

View 4 Replies View Related

General :: Copy Mutiple Files Over Scp In One Command?

Mar 4, 2010

I have to transport a lot of files from one pc to another (both Linux). I would like to use scp for that, but scp only allows for transferring one file at a time. How can I do this?

I have No possibility to use rsync or any other protocol No possibility to use passphrase free certificates (but have a certificate with a passphrase) A list of files to transfer and a list with the destination path of the files on the other server The files are spread out over a lot of directories, and not all the files in the directories I want to copy If possible I would like to gzip and ungzip transparently to save bandwidth!

View 3 Replies View Related

General :: Copy Db And Type Some Mysqldump Command?

Jul 20, 2010

i use linux ubuntu..i try to copy db and type some mysqldump command..but at terminal show: The program 'mysqldump' can be found in the following packages:

* mysql-client-5.0
* mysql-client-5.1

Try: sudo apt-get install <selected package> bash: mysqldump: command not found

how to get mysqldump for my pc? i've tried to follow the instruction,but show like below:

Err http://ubuntu-ashisuto.ubuntulinux.jp jaunty/main libnet-daemon-perl 0.43-1 Could not connect to ubuntu-ashisuto.ubuntulinux.jp:80 (122.216.218.146), connection timed out

View 3 Replies View Related

General :: Copy A File From Windows With Scp Command?

Aug 18, 2010

I would like copy a backup file from image vmware linux to windows but i don't know how to process it ?i tried :scp /source/backup.tar.gz admin@x.x.x.x:/c:ProgrammefilesC:Documentsand SettingsAdminMyDocumentsbut error and i know that it's not like that, so if you have solutions

View 2 Replies View Related

General :: Find And Copy Command Comdined Together?

Feb 25, 2010

I want to find files of a particular tyepe and particular date to be copied into a seperate folder.How do i do achieve this in a single line using the find and copy command.

View 8 Replies View Related

General :: Copy To Clipboard Using Bash Command?

Sep 18, 2010

Tried this, but there's no such a command in Arch.And this also doesn't work:Code:find ~ | grep -i pidgin | xclipboard Error: another clipboard is already running

View 5 Replies View Related

General :: Backup - Any Copy And Verify Command In Ubuntu?

Dec 5, 2010

I back up all my digital photos to a couple of places. I've been using the cp command, but--given the personal value--have started to wonder if there's a more reliable way. I'm no stranger to Linux, Bash, Perl, etc., so I could write something to copy and compare md5 hashes, but I was wondering if something already exists (reinvention, wheels and what-not).

Most of my googling for copy and (verify|valid|check|hash|confirm) turns up rsync. However, as far as I can tell, rsync only uses hashes to see if a file needs to be updated. It doesn't perform a hash comparison afterward. For this use, specifically, the files are binary and typically 8-10MB.

View 3 Replies View Related







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