General :: Cloning With The Dd Command - Source Being Copied Onto Bad Sectors On The Destination Disk?

Apr 17, 2011

To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command. Is there a possible problem with the source being copied onto bad sectors on the destination disk? If so is there a way to prevent this from happening? A typical dd command I use looks like: dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror. Is this the recommended command for cloning to a disk of equal size?

View 1 Replies


ADVERTISEMENT

General :: How Does Cp Command Determine Source And Destination Locations In Command?

Apr 14, 2011

When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.

View 4 Replies View Related

General :: Run The Same Command(s) On The Many Destination Servers From Source Server?

Jan 4, 2011

I am trying to run the same command(s) on the many destination servers from my source server.source server user "report" ssh keys are added to all destination hosts.

hosts.cfg:
----------
gadikota_dev01

[code]....

View 3 Replies View Related

OpenSUSE :: Cloning Files - Copied To The Other System Automatically?

Mar 8, 2010

I have multiple OpenSuSE 11.2 systems. With some files being on one system I would like to have another computer to have the files as well. Is there a way to have the files copied to the other system automatically? FTP is one way but it is too cumbersome. I am thinking of something like disk or directory mirroring. Does OpenSuSE have something like that?

If it was real time mirroring that would be better. I.e if a write to one file on one system is done, then this would be done on the other system with the same directory/file.

View 3 Replies View Related

General :: What Is Source / Destination Ports

Mar 9, 2011

I want to know what is a source port and what is a destination port.

View 7 Replies View Related

General :: Define Both Source/Destination AND Direction When Building Firewall?

May 30, 2011

why do we have to define both Source/Destination AND Direction when building firewall.Isn't direction= source->destination? what would happen if source and destination were swapped?

View 3 Replies View Related

General :: Gnome Disk Utility Warned That Hard Drive Had Numerous Bad Sectors / Fix It?

Feb 21, 2010

I recently tried Fedora on my laptop (previously Debian; I was bored one day) and gnome-disk-utility (palimpsest) warned me that my hard drive had numerous bad sectors. I re-installed Debian to find that this software was installed before so why had it not warned me?

When I load the disk utility, it says SMART is not available. I've got smartmontools installed, I can run a self-test with smartctl but I don't think this shows bad sectors. I've tried starting smartd on startup but the disk utility never changes from "SMART is not available". It is possible for it to work with this hardware as it works in Fedora on this laptop; any ideas?

View 3 Replies View Related

General :: Block Size For Disk Cloning With Diskdump (dd)?

Jan 17, 2011

I use dd in its simplest form to clone a hard drive dd if=INPUT of=OUTPUT However, I read in the manpage that dd knows a blocksize parameter. I was wondering whether there is an optimal value for the blocksize parameter that will speed up the cloning procedure?

View 4 Replies View Related

General :: Copy File Whose Source Path Is Mentioned In File To Specified Destination

Jun 3, 2010

I had a situation in which the the path of the file to be copied is written in other file and I had to copy it using shell script..I can use cp $(cat /home/robert/location.txt) /media/sda1 on normal linux shell...But I am using buildroot script where $(cat /home/robert/location.txt) evaluate to nothing..is just blank..

View 1 Replies View Related

Ubuntu :: Paste Text Copied From Some Outside Vim Source (like A Web Browser)?

Feb 11, 2010

How do you paste text copied from some outside vim source (like a web browser)? That's the one thing that bugs me. I'm trying to more proficient w/ vim, but when I read some instructions on the web that say copy and paste this text into yadayda.conf, I can do that w/ gedit, but can't figure it out in vim.

View 2 Replies View Related

Hardware :: Disk Has Many Bad Sectors (110)

Sep 7, 2010

I have some errors on my drive and I fear it may be faulty. However there are a few things I would like to try before replacing it through the manufacture or buying a new drive of my own seeing as this is a brand new computer.

Here is my computer and drive:
Acer 5251-1513 Laptop
Toshiba MK2565GSX
Running Fedora 13...now

Here is what is going on. Tried several version of Ubuntu 10.4 (studio, 64bit, 32 bit) and was having many errors during startup and having to press F to fix. Then I lost something with Gnome and the GUI would not function, and I did not know how to replace it. Tried a few other distros but could not get them to work (mostly on my part I am sure.) Then after some forum talk, thought it might just be Ubuntu unable to handle my drive. Now on Fedora 13 and a warning comes up every time I startup. "Disk has many bad sectors"

In the disk utility under the SMART Data it has 2 of the following warnings:
5- Reallocated Sector count..with a value of 72 sectors
197 Current Pending Sector count...with a value of 35 sectors
Total Bad Sectors 108.
The next day that went up to 110

I have used Fsck several times through a live CD, but the problem persists. Trying to understand bad blocks and how to write them to a file?

View 3 Replies View Related

Ubuntu :: Source And Destination Folders Are Valid?

Apr 26, 2011

Which of these (if any) are correct?

cp -r /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/*.* /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/*
in /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/
cp -r *.* /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/*
in /var/www/vhosts/keylargodivecenter.com/httpdocs/sites/all/modules/
cp -r /var/www/vhosts/niftyfiftyparty.com/httpdocs/sites/all/modules/*.* *

Both the source and destination folders are valid. There are several folders in the niftyfiftyparty modules folder that I need in the other one.

View 2 Replies View Related

Networking :: Possible In Iptable \ Switching Destination IP To Source?

Sep 16, 2010

Using iptables is there a way to switch the destination IP to become the new source IP and forward that connection.iptables store the src and dst IP in a variable for a particular connection?

View 2 Replies View Related

Fedora Hardware :: Added Second Disk - Bad Sectors?

Jun 19, 2010

I've just added a second disk to one of my computers. It is a 500GB SATA. It is the second drive according to the BIOS. Fedora calls it /dev/sdb. So far so good. This box is running Fedora 13 final. Never any problems until the addition of the new disk. Palimpsest says that this disk has a LOT of bad sectors. This disk is a storage drive. I want to address the problem but don't know what to do first. My thought is to rsync all the data to my external 250GB disk bedore I do anything else but I'm mot sure if I should just yet. Maybe I should run some diagnostics on the drive? If so, what? How about the tools Disk Utility offers? Should I use the Smart Utilities? What other Linux tools are available and are they reliable? Maybe I should install XP on the main disk and use Windows' disk tools? If I should lose all data it wouldn't be the end of the world but I'm not sure how "in sync" the 2 storage drives actually are.

View 10 Replies View Related

Software :: Copy Files From One Source To Multiple Destination Simultaneously?

Aug 5, 2010

i want to copy one or more files or directory from one drive to multiple drive simultaneously. It like a cloning a disk. But i dont like clone entire disk. i want to copy/clone only certine files or folder. if any one can know how to copy one source to multiple destination simultaneously.

View 3 Replies View Related

Hardware :: Scan And Fix Bad Sectors On Hard Disk Without Damaging Data?

Dec 19, 2010

How to scan and fix Bad Sectors on Hard Disk without damaging data?

View 5 Replies View Related

Ubuntu :: Code To Access Hard Disk Sectors (LoopBack Device)

Jan 26, 2011

I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it has the following configuration.

Code: $> sudo fdisk -l /dev/loop0
Disk /dev/loop0: 10 MB, 10977280 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/loop0 doesn't contain a valid partition table Now what I want to do is develop a c++ program to read & write files to this loop back device,which I'm using to simulate an actual hard disk,at the blocks & sectors level. So far I've come up with the following code. But I'm still unable to read files from the hard disk one block at a time.

Code: #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char block[512]; int length=0;
cout<<"Implementation of the File Handler Read Method..."<<endl;
FILE *f = fopen("/dev/loop0", "r");
if(f == NULL) {
cout<<"Error In Opening the HardDisk File Retuning Error..."<<endl; return -1; }
//Read One Block of Data to Buffer length = fread(block, 1, sizeof(block), f);
/* Do something with the data */ cout<<"Length : "<<length<<endl;
return 0; }

When I run this Program All what I get is the message for NULL. "Error In Opening the HardDisk File Retuning Error...". So I could open the loopback device as a file an access it at the sectors & block level.

View 1 Replies View Related

OpenSUSE :: Fog Disk Cloning Solution

Jun 14, 2009

just wanting to know if anyone has implemented Fog (fogproject.org) on openSUSE. We use it at work throughout our enterprise for reimaging machines and it works very well.

View 4 Replies View Related

Ubuntu :: Cloning Disk W/o Unmounting

Apr 18, 2011

I've spent the better part of an afternoon looking for a solution to a problem: backing up my installation of 10.10 as an image file to an external hard drive. My research has yielded a lot of suggestions for clonezilla, dd, and partimage/particlone, but those don't seem very appealing, due to a number of issues (can't backup live, copies free space as well, doesn't handle ext4, etc). Also why is clonezilla 150mb?

I'd like a simple solution that can clone an entire disk (used space only) to an explorable image file on a separate hard drive and be able to do it while the operating system is running on the disk. I used to use apricorn ez gig to do this on windows and it worked like a charm, but I can't seem to find a similar solution that creates and explorable .iso image file with linux. I've used superduer on osx, which is awesome and i wish there was something like that for ubuntu/linux.

View 3 Replies View Related

OpenSUSE Hardware :: Rescued Disk - What To Do With The Bad Blocks That Were Not Copied

Oct 13, 2010

My old system disk almost failed me. I dd_rescued the disk onto a new one (_don't_ use dd_rhelp, that one took days and seemed to forget what it had scanned more than once). The condition of the disk was not very good. So naturally I expected the subsequent fsck.ext3 to bomb half of the new disk. But obviously only a few inodes were affected and I lost only about 10 files completely (mostly on the root partition and not the home partition - yeay!).

However, I then ran a badblocks and put all the bad blocks into a file. I could use this to run fsck but I fear that

1. It could undo or even redo worse than what the first fsck run did, and

2. giving the list of bad blocks, fsck might on the one hand rescue/flag damaged files (which is what I want), but I don't want it to flag the bad blocks on the new disk as well (they are not bad blocks anymore, just copies of bad blocks).

So, how can I single out problematic files using my list of bad blocks (which I can then look at one by one if they could be rescued) without flagging the supposedly bad blocks on the new disk.

View 3 Replies View Related

Software :: Creating Chapters For VHS Tapes Being Copied To Disk?

Mar 13, 2011

I have read similar threads, googled, and an idea of what might be required. Hopefully someone here has actual experience and can detail their methodology. My setup is: Two boxes running Slackware 13.1 (not 64) with current patches. One has a Hauppauge pvr 350 card. The other has a Hauppauge hd-1600 card. I have old VHS tapes of pre-school graduations for kids now in their thirties. Since this project has no DRM issues lets say all my video programs use standard Slackware build scripts. I am comfortable modifying and running Slackware build scripts. The collection of video programs includes ffmpeg, HandBrake, VLC, Kaffeine and avidemux2. Currently on the box with the 350 card, I use the S-video in & line in to capture the output of a super VHS player. Because this is a slowish box I was having sync issues and finally wrote a script that

[Code]...

still have to know when to hit the enter key so an old tv is also hooked to the VHS player. So now I have an in-sync file nearing 6G which gets transferred the next morning [read that is the reason it's done on the slower box] to the faster box. As others in the household have a number of apple products the final file extension will probably be .m4v. I am slowing moving away from that as it is easier to stick a laptop running VLC with hdmi out on the tv then it is to go thru apple's home sharing. Another story entirely so lets not argue that topic merely say .m4v is not cast in stone. Depending on the time length of the tape, I would like to create 10 to 15 chapters in the final product. So there you have it. What steps to you use to create a final file with chapters. ps Yes the script should really check that $1 is numeric however I am/was the only user.

View 4 Replies View Related

Ubuntu :: Disk Cloning With Clonzilla Versus DD

Jan 1, 2010

Is there any reason why is DD still prefer over clonezilla for disk cloning?

View 6 Replies View Related

Ubuntu Installation :: Cloning To Smaller Disk?

Jun 3, 2010

I have my Mythbuntu 9.10 environment installed on an old 160GB PATA disk and have just purchased a new 64GB SSD that I want to transfer my installation to.In the past I've just used ddrescue to clone disks, however in this case the source disk is larger than the destination disk so it won't work. I only have a few GB of actual data on the 160GB disk, so the 64GB SSD is definitely going to be enough for me.

I guess I need someway of either cloning so that only the actual data and not the partition is brought across, or possible shrinking the partition(s) first on the source drive and then using the same ddrescue method I've used in the past.Just looking for some assistance on what method is the best/most reliable?

View 8 Replies View Related

Ubuntu :: Cloning Bootable Hard Disk

Feb 21, 2011

Recently my had disk crashed. It has taken me over a day to install and setup the drive - time I can't really afford. I'd like to know how I can clone a second as a bootable copy of the main hard drive and update from time to time. Therefore if the main hd fails again, I can simple boot from the second drive.How can I do this? I have two sata drives in the box, running 10.10 desktop.

View 1 Replies View Related

Ubuntu :: Cloning Bootable Hard Disk?

Mar 2, 2011

Recently my had disk crashed. It has taken me over a day to install and setup the drive - time I can't really afford.I'd like to know how I can clone a second as a bootable copy of the main hard drive and update from time to time. Therefore if the main hd fails again, I can simple boot from the second drive.

View 1 Replies View Related

Ubuntu :: How To Create Bootable Cd With Disk Cloning Software

Feb 3, 2010

I'd like to have a bootable cd which then allows me to clone a hard drive, much like the "Ghost" application. I need to copy Fat32, NTFS, as well as the various Linux formats. I've not created a bootable cd before, so a step-by-step would be rather handy.

View 2 Replies View Related

Ubuntu :: Cloning A Large Disk With Little Actual Used Space

Aug 10, 2010

I need to clone a laptop drive to a desktop drive. The laptop drive disk is 150 gb, however, only about 8 gb is used. Is it possible to clone this disk to a smaller drive?

View 3 Replies View Related

CentOS 5 Hardware :: Cloning Image Of Hard Disk

Nov 7, 2010

I just invested nearly 12 hours configuring a CCTV system using CentOS 5.5 Server and Zoneminder. I have it setup just the way I want it. I would like to make a clone image of the drive just in case disaster strikes (lightning strike, failed hard disk, etc). In the Windows PC world, I use a program called Ghost to make a mirror image of a hard disk. I power the computer down, run Ghost to make a block level clone of the drive, then power it back up. Can I assume that will work with CentOS without problem?

In the computer now is a 320GB SATA drive. One partition on it is swap, and the other is ext3. There is no raid setup on the drive. I have an identical 320GB drive I could use and keep it in the computer unplugged from the power and not spinning. That way if anything ever happens, I can power down, move the power and data cable to the new drive and power it back up. Granted, I will lose any new config and database changes, but it will be a lot better than starting back at square 1 and reconfiguring the entire OS and software.

View 10 Replies View Related

Fedora :: After Cloning To Bigger Hdd / Can Boot Only Over Super Grub Disk CD

Mar 21, 2011

I cloned F14 with Clonezilla from 80GB to 320GB hdd(both sata disks), and then resized the partitions with GParted.But I can not boot into fedora on the new/bigger disk, it stops and the display writes "Loading stage 1.5" if I remember corectly,I tried to fix it with the live cd but with no efect.

Then i found Super Grub Disk live CD, and with that i tried to use their fix, which was the same as with the Fedora live cd i tried before, again no efect.Then i played around with Super Grub, and found the option to boot GNU/Linux indirectly, and with that metod i got results, found my menu.lst file and chose the kernel i wanted and it boots into desktop.

But i would need a more permanent solution, because now i allways have to use the same procedure with Super Grub Disk CD to boot into my Fedora 14.

View 3 Replies View Related

Ubuntu :: Command To Check Files Where Copied?

Oct 23, 2010

I am trying to write a script to copy all of my photos to my backup drive, to finish it i want to scan the backup and check that all of the folders and photos are there. is there a command in linux to do this (theres one (or two) for everything else!!!)

View 1 Replies View Related







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