Ubuntu :: Backup A Partition With Errors Using Dd?
Nov 7, 2010
i use the dd command to regularly backup my windows partition. basically i do:
PHP Code:
sudo dd if=/dev/sda1 of=./Backupfile.bin bs=100MB
form a USB HDD..
this works charms for backup and restore even over a remote shell.. i have even been able to remotely repair my system from vacation. now comes the problem: the partition has developed some I/O errors. Windows has notices and just marked some sectors as being broken/bad. But dd being Filesystem independent doesnt know and aborts when trying to read and getting an HArdware IO error.
my question: how can i fix this so i can still backup AND restore the partition? i cant afford a new HD at the time.
View 1 Replies
ADVERTISEMENT
Oct 24, 2010
I create Backup partition with dd and save my backup on NTFS partition. i want recover this backup,what should i do? can i use boot cd and use dd command for recover it?
View 2 Replies
View Related
May 21, 2011
I'm just setting up a partition on a seperate HDD in my system. I plan to use the partition to backup the important files on my main HDD (to guard against HD crash).
The question I have is about where would be the typical location to auto mount this partition? Which would it be normal to go for:
1. /backup/
2. /media/backup/
3. /mnt/backup/
4. /home/chris/backup/
View 7 Replies
View Related
Jun 11, 2010
in preparation for the update to Slackware64 13.1 I did a complete backup of my system with dd.
I used the Slackware 13.0 (not 64 bit) DVD to boot and executed the command:
# dd if=/dev/sda of=/dev/sdb
The command finished without any errors as expected. First I tried to boot the destination hard disk to check if the backup was successful and I can start with updating the source disk to 13.1. But at boot time I got the message that the last file system check is 197 day ago, the file system check started automatically and found errors which it could not correct. At this point I thought it was maybe a copy or a hard disk error and tried to boot the source disk. But the behaviour was exactly the same on the source disk. With the source disk I followed then the recommendation, logged in with root password and executed the recommended command which was something like e2fsck -v -h /dev/sda1. Then the system did a file system check and scrolled a lot of numbers over the screen. After a while it reported that it's ready and the system needs a restart.
I switched off and on again. Then the system bootet as usual, and seems to run okay at the moment. But now I'm unsure if really everything is okay.
What I'm confused of is, why the system reported that the last file system check was 197 days ago and why this was just after the dd backup. Shouldn't the automatic file system check at boot time run more often as every 197 days or mounts? I didn't change any default settings (as far as I know). The file system of the root partition is ext4 and my computer normally is switched on and off once every day.
My question now is, if this behaviour can have something to do with the dd backup.
Is my system after the file system check okay again, or should I expect further problems?
View 12 Replies
View Related
Jul 3, 2010
As root, I use crontab to run mirrordir to backup directories. Everything gets copied over properly, but owner information isn't preserved and root is the owner of all the backed up files. I can deal with that, but crontab reports tons and tons of chown/chgrp errors for mirrordir every time I do back ups--which is every day--and the multiple emails to root of thousands of chown/chgrp errors is very annoying. The error is "Operation not permitted," but that doesn't make sense to me because the job runs as root (right?) and clearly the job is permitted to create the backup files, so why would it fail to chown and chgrp?
I've had the exact same setup on another server for years, and crontab has always run mirrordir without error. Any suggestions how to clear the errors on my new server?
View 14 Replies
View Related
Mar 26, 2010
I have formated a partition on the second hard drive to use for backups. I have been able to create a directory using sudo but I have not succeeded in changing permissions so Bill can use it for backups.sudo chmod a+rw BackUp runs without errors but doesn't change permissions.sudo chmod +666 Backup just brings up the see man message
View 2 Replies
View Related
Jun 13, 2010
So I've been trying to solve another problem (disk errors that MIGHT have something to do with ext4). I was wondering if there would be a possible way to backup my 10.04 install and move it to an existing, unused ext3 partition. I'm kinda stuck at the moment with my disk error problem, and figured I could waste some time to see if I could MOVE my install (as to not have to do a fresh install, re-install every application and script, and re-customizeand and move all of my media and files) onto an ext3 and completely remove the ext4.
View 3 Replies
View Related
Jun 19, 2010
I have a Dell laptop with dual-boot Vista-Ubuntu. I never ever used Vista and am not planning to.I'd like to move from 9.04 to 10.04. I know how to backup and run an update already. But for the sake of simplicity, i'd prefer to erase the data of the current Vista-partition and use it as my /home content.It makes more sense to me, so i don't have to make a backup of everything for ever again and again when installing or updating my OS.
View 9 Replies
View Related
Apr 10, 2011
I've searched some older posts and they said to use partimage, but this program doesn't support ext4 file systems. Here's the original post: [URL].. So how would someone backup their entire ext4 partition so the owner can mess around with some graphics drivers
View 3 Replies
View Related
Sep 21, 2011
i've got a server (blade on chassis) using Centos5.6. One partition is a LUN on SAN and the hardware used is a QLogic QMI3472 (qla2xxx driver) the kernel used is 2.6.18-238.12.1.el5
and i've got a lot of error message when i used the LUN partition with this log kernel (complete log attached to this message)
qla2xxx 0000:0c:00.0: scsi(3:1:0): Abort command issued -- 1 4c5 2002.
qla2xxx 0000:0c:00.0: scsi(3:1:0): Abort command issued -- 1 4c6 2002.
qla2xxx 0000:0c:00.0: scsi(3:1:0): Abort command issued -- 1 4c8 2002.
qla2xxx 0000:0c:00.0: scsi(3:1:0): Abort command issued -- 1 4cb 2002.
I've found this message [URL] concerning qla2xxx (but git.kernel.org not available now...)
I've tried to upgrade to Centos to 5.7 and upgrade the kernel with yum install kernel. The upgraded kernel is 2.6.18-274.3.1.el5.
But this bug seem to be corrected in 2.6.20 branch. Is the patch provided to the link inlcuded in kernel-2.6.18-274.3.1.el5???
View 1 Replies
View Related
Jan 27, 2011
I have two desktop machines, each with U 10.10. I want to backup data on my main machine to a partition on the other machine. I am going to use luckybackup for that. Problem is, from the main machine, I cannot access the backup partition on the other machine (but I can see it). I get prompts for passwords and when I enter them nothing happens, it seems they're not valid. Bottom line, I can't access that partition.
View 7 Replies
View Related
Mar 9, 2011
I am looking for Backup Program to clone the partition of Ubuntu.
View 7 Replies
View Related
Oct 22, 2010
I'm having some problems with errors reported by fsck on my EXT4 root partition on my Ubuntu 10.10 installation... If I run fsck I get the following output:
Code:
# fsck -n /dev/sda1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
Attenzione! /dev/sda1 montato.
[Code]....
View 4 Replies
View Related
Feb 21, 2011
I have a hard disk with a non standard partition order which is likely to have to have a windows restore done on it. I actually have it the way I want it atm. I am interested in finding out if there is a handy way to back up the partition table, like I can backup the mbr. Where does the partition table hide? 160 Gig Sata hd, btw.
View 7 Replies
View Related
Mar 16, 2010
I'm about to install Ubuntu Netbook Remix and my Acer machine has a recovery partition at the beginning of the drive. I've created the eRecovery discs but those will only restore XP - not the actual recovery partition (which I'd like to have in case I sell the laptop later etc).
How can I backup the actual recovery partition, and keep its boot file intact. Then how can I restore this partition at a later time?
View 3 Replies
View Related
Sep 29, 2010
My primary drive is 250GB and has the root, home and var (I'd read it's good to put var on a separate partition for MythTV which I'm planning on doing) on separate partitions. I have a second 1TB drive that I'll be using to backup the 250GB drive and also host less critical data. I've created two partitions on this drive, one 250GB and the other covering the rest of the drive. I'd like to move the Videos directory out of Home on the 250GB onto the 1TB drive but can't find a definitive way of doing this. Should I just follow this guide for moving the home folder to a new partition? Next question is when performing a backup of the 250GB drive how do I make sure it's going to the 250GB partition on the 1TB drive? Can the different partitions be mounted separately?
View 2 Replies
View Related
Jul 20, 2009
What exactly allows me to create a custom tailored *.img file to backup the contents of a partition?
This is my problem: My wife wants me to backup some Windows NTFS partitions on her working computer so she can use them on a different computer.
This is my solution attempt:Boot the Gentoo based System Rescue CD. dd the contents of the data partitions into *.img files on an external usb drive. dd the contents of the *.img files onto the new computer.
So far that worked, but there's one annoying problem: one partition on the work computer is 50GB big, but contains only 8GB of data. It would be really nice if I could just dd out those 8GB of "real data" instead of having a 50GB *.img file that is mostly empty. Likewise, it would be cool if there's an easy way to match the contents of the *.img file to the size of the new partition. The new data partition is 100GB big so it would be cool if my backup were automatically scaled to that size so I don't have an 8GB partition and an additional 92GB partition.
View 7 Replies
View Related
Jun 28, 2011
i want clone my linux partition for create a backup. i want use dd command but i have some question.my linux partition is 30GB and linux only used 10GB of it if i use dd command for create a image i must have 30GB free space? can i use dd command in X window or i must first exit from linux and use live cd? in fedora i use dd command for create a backup when linux is running but after restore some command like su not work!!!
i use some tools like partimage for make a backup but it show me an error about block 0!!
View 1 Replies
View Related
Jul 22, 2010
I used Ping Linux 8 months ago to create a ghost-like image of my primary partition. (Windows 7 on NTFS) The image is on the second partition of my hard drive (Western Digital 250 gig). I need to restore now, but Ping is unable to mount the volume. In fact, it will not mount any volume or perform any new backup. I made sure nothing has changed in Bios options since I created the backup. Does this imply that is not the appropriate tool to work on NTFS system?
View 4 Replies
View Related
Dec 25, 2009
when i install fedora 11 after windows 7 ,i can not partition and takes errors,it is of primary partitions that is about 77GB that windows 7 had installed on it ,but when i install ubuntu ,it can be installled without any error ,when i asked for this one said me that ubuntu has grub installer that reference to another where for primary partition ,
View 1 Replies
View Related
Mar 13, 2010
Tuesday night I wanted to make a backup of my Ubuntu ext4 partition via Clonezilla so I configured that an image had to be made and it would be saved on the NTFS external disk. But it said it needed 23 hours to create a 5gb backup, so I resetted my computer as this took too long. But after this, Ubuntu nor Windows recognized my drive.
I called Seagate and they told me after troubleshooting 30 minutes, that there is no option of fixing the drive and I had to send it to RMA. What could be wrong? Clonezilla works via a bootable ISO on Debian. The disk drive is still spinning. I already rebooted the external drive, but it's not working. In Linux the disk is no longer mounted and cannot be mounted:
Code:
brw-rw---- 1 root disk 8, 16 2010-03-12 00:50 /dev/sdb
brw-rw---- 1 root disk 8, 32 2010-03-12 00:50 /dev/sdc
brw-rw---- 1 root disk 8, 48 2010-03-12 00:50 /dev/sdd
brw-rw---- 1 root disk 8, 64 2010-03-12 00:50 /dev/sde
What could have happened? Would the data still be accessible on the internal drive? Did I just loose 1.5TB data that was stored on the external disk?
View 4 Replies
View Related
Mar 21, 2011
On my main work machine I have openSUSE 11.4 standard KDE on two partitions, standard root and standard /home. I'm going to add the Tumbleweed repos and follow the evolution of openSUSE until 11.5/12.0 is released.
But I cannot afford to have my main work machine off the air. So I want to back up the root parttiion each time I go a major upgrade from the Tumbleweed repos.
So I thought I would just image the root partition in compressed/reduced form to a USB drive prior to updating.
First I looked at Partimage but it doesn't do the EXT4 filesystem.
Second I thought about Clonezilla but it doesn't allow compression (it states that the target for the image must be at least as big as the source partition); thus DD is just as limited.
Third I looked at the System backup and restore facility in Yast but it seems to be undocumented (i.e. I can't find it.)
Then I thought why not just use cp because the root filesystem of 11.4 for me is only occupying 6Gb ATM. I propose to use "cp -a -u -v" from a live CD to copy the root files to a USB drive with an EXT4 partition.
So two questions:is there a flaw in backing up the system/root with "cp -a -u -v"
is there a better imaging software for a small job like this
View 9 Replies
View Related
Jun 21, 2010
I have a windows XP, and 2 ntfs, and ext4 and swap that I backup using dd if=dev/hda of=disk.image . I would like to restore the windows XP only.
Is there some frontended program with a gui for LINUX that could do the job without hassle, by chance?
View 2 Replies
View Related
Jan 10, 2010
I have an external 3.5" USB 250Gb HDD which is showing symptoms of hardware problems (repeated /var/log/messages errors of "reset high speed USB device using ehci_hcd"). This was originally plugged in to my NSLU2 running Debian Etch. I have just installed Ubuntu Desktop 9.10 to a spare Pentium-3M laptop and was hoping to copy the contents of this HDD to a fresh drive. However, I cannot mount it even read-only; mount -o ro /dev/sde3 /mnt/disk fails, and the /var/log/messages error is "recovery required on readonly filesystem", "write access unavailable, cannot proceed". I cannot understand why mounting a disk read-only should require write access. Following advice I googled elsewhere, I tried running mke2fs -n /dev/sde3 to try to list the alternative superblocks - but once again I got the error that the device was read-only. How can I go about accessing the data on this disk?
View 11 Replies
View Related
Feb 22, 2010
I',m executing ping, but it didn't work, in order to find the mistake in my network I would like to know how to see the errors:
Code:
18 packets transmitted, 0 received, +12 errors, 100% packet loss, time 17038ms, pipe 4 I want to see this +12 errors. Could I do that?
View 2 Replies
View Related
Mar 28, 2011
recently i made a backup of my home directory in 10.10 before reinstalling 10.10. again.This time I chose to manually define the partitions (50GB Root, 25GB Swap, 325GB Home)Now i wish to migrate the old home into the newly installed home, which is on a separate partition.I have found the following documentation URL...Still, as a beginner I am not quite sure about the necessary steps to perform.As the new home is located on a separate partition is it possible to simple delete all directories there and copy all directories from old home to new home with rsync?
Do I have to install all the software that corresponds to the old home first followed by migrating home or first migrating home followed by installing the software such as thunderbird, Texlive2010 etc.Guess that migration should take place at a later stage. Otherwise my old profile files from firefox and thunderbird will be overwriten by new ones?
View 1 Replies
View Related
Oct 12, 2010
Since I installed MS2 I messed up grub. Finally I got 11.3 back to its old glory.
What would be the best procedure to create a backup image with all settings and permissions ...just in case ?
View 5 Replies
View Related
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
Feb 26, 2010
I am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.
The output is
==23002== Memcheck, a memory error detector.
==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==23002== Using LibVEX rev 1575, a library for dynamic binary translation.
[code]....
View 1 Replies
View Related
May 18, 2010
using Back In Time to backup my home directory to a second hdd that is mounted at /media/backupThe trouble is, I can do this using Back In Time (Root), but not using Back In Time without the root option. This is definitely a permissions issue - it can't write to the folder, but when I checked by right clicking on the backup directory and looking at the permission tab, it said I was the owner
View 2 Replies
View Related