Software :: Tool To Back Up And Restore An NTFS Partition With Bad Sectors?
Jan 27, 2010
I've been using Knoppix "Live CD" 6.2 and partimage 0.6.7 to back up and restore my Microsoft Windows XP system volumes on various computers. However, partimage seems to be unwilling to back up one of these NTFS volumes which has bad sectors, some unreadable data. It hits that and stops. But this appears to happen at the same place when I have already used Windows to find and mark and, I assume, remove from use, the bad sectors. Hmm. I thought they'd be ignored. It appears I thought wrong.
If so, which of several other Linux-based or other partition backup tools may be suitable for the task - to ignore or tolerate bad sectors? The main goal is to be able to update the volume subsequently in a way that may be a terrible mistake, and in that case to restore the previous version. Sometime not too far in the future, I suppose I have to think about replacing the disk.
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.
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?
On my computer on the first disk /dev/sda was installed win2k system bootable with native win2k bootloader. I created imges of that partition using Ghost4linux na Clonezilla. Images were placed on the second computer using sshfs. For all this tasks i used PartedImage LiveCD.
I removed old partition and created a new ntfs partition on the same disk. When I used GParted or native Win2k partitioner the partition I get was smaller: the difference is a few bytes. Finally I used the Linux fdisk. Now the size was OK, but after restoration win2k was unbootable: I tried to recover the win2k but it was even impossible to locate a system on the partition. So I tried to move all the partition at the very beginning of the disk. Now at least I was able to mount (under Linux) the partition. But again win2k was unbootable and unrecoverable.
It seems for me that the partition is missplaced. According to Ghost4Linux the partition begins with an offset 0x56. I suspect that it should be rather 0x80.
I recently tried to make a backup of an ntfs partition using dd.For example.. "sudo dd if=/dev/sda2 of=/dev/sda1" which made a copy of one partition to another, not realizing that it would wipe the ntfs filesystem and image across the linux partition. Is there anyway i can undo this to get back all the data which was on the ntfs drive? Cfdisk still sees the partition as NTFS. Have also tried photorec to try to retrieve the data but to no avail.
What's the best tool or method to resize an NTFS partition containing Windows XP Home but with some evidence of being installed using Windows Vista? (Possible answer: Windows 7...) I bought a Fizzbook Spin, UK version of Intel Classmate PC with touchscreen. Disk is about 55 GB; I want to resize system partition C to about 17 gigabytes and then maintain it using something like partimage on live CD/DVD/USB for complete backup of volume: 15 gigabytes roughly compresses to one DVD, 2 gigabytes for hibernation memory storage which I won't back up (and can't move off C), pagefile on the next volume (probably 4000 MB on FAT32, an affordable commitment of disk space to buy not worrying about the page file size). Plus, I will be able to store the backup of volume C on volume D.
The machine can boot Linux (Knoppix 6.2) from external DVD drive, from a USB flash memory key, and from SD[?HC] card. I don't have a separate Windows install CD or recovery partition, but there's an Intel tool to generate a recovery, um, stick. There's evidence that XP's partition was created by Vista, as follows: 1 MB unused before the system partition; an error message about "correcting errors in the uppercase file" which apparently means "Vista did something on this disk that XP thinks is wrong, but this is not serious" - and several attempts to resize the volume with GParted have left Windows unbootable, blue-screening for a split-second and then rebooting. Apparently that's a Vista experience, and it would've been really bad if I hadn't taken a backup already.
I'm pretty sure that in at least one attempt, I remembered and successfully turned OFF the default-on "Round to cylinder" option in GParted... or is that WRONG? Standard Vista/Parted/resize advice (before 2010) such as [URL] seems to be "Use GParted, then use the Windows Vista installation CD to make your ruined hard disk partition properly bootable again." Since I don't have a Vista installation CD to use or legally borrow for this computer - unless I buy Vista or Windows 7 (which I'm considering anyway, for speech recognition) - I appear to be stuck. I do have more than one other XP computer, in case I can use something from there to exorcise the Vista-ness. But I want to keep the extra software (and device drivers) supplied with this little computer.
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?
I'm using Windows 7 and Ubuntu in two differents partitions in my hard drive. I was on Windows 7 and decided to reboot. When the grub screen should have appeared, instead the computer rebooted itself. It continues to do so. I put Ubuntu 10.10 Live CD and it keeps "loading" forever, but doesn't hang. In the console, it said something like "input/output" error. I tried with my Win 7 DVD and it was the same: it doesn't reach the part where it shows the menu with all the installation options.
I tried with Gparted and it loaded fine. It showed all my partitions, but there wasn't (I think) more that I could have done with it. I tried then user Super Grub Boot. I finally could enter Ubuntu. Everything is fine except that it doesn't show my Window partition. It's like it doesn't exist anymore, so I can't backup my files. Now, I haven't tried loading Win 7 from Super Grub Boot (I'm going to do it just as soon as I post this), but this is pretty weird. Anyone have any idea what is going on and what can I do to this this?
When installing ubuntu I selected my back up NTFS partition as a swap drive for ubuntu and now i cant access my files so does anybody have a solution to revert the partition back to be Labelled as NTFS so i can access my files.
Allot of Crazy things happened lately. A few problems happened and I fixed them. In the end I have 3 partitions of ubuntu net book remix and 1 for windows 7. I never reinstalled windows so could I do a system restore (in windows)to go back and then reinstall 1 partition of ubuntu net book remix.
I have a massive ZFS array on my fileserver. Whenever a disk reports bad sectors to smartmon, I order a replacement, and I shelve the failing one.
And by "shelving the failing one", I mean that I give it a low-level format if applicable, or a destructive badblocks run to possible claim spare sectors to replace the bad ones, then use it to dump my DVDs (and lately BluRays) on, so that I can use it with my HTPC and bring it with me when going to my friends to watch movies. It's just a really easy and portable way to watch movies with XBMC. I have the stuff on pressed discs already, so I'm not dependent on their reliance, and the dying drive just gets a hospice life serving as quick-access media storage. Keeping in mind Google's reports that drives are 39x more likely to die within 60 days after their first SMART error, I'm expanding that period by the fact that these drives mostly remain on their shelves and are only plugged into the SATA bay once or twice every year.
I'm just saying this to make clear that I'm not confused about these drives dying, and I'm not looking to elongate their lives ;)
So. Sometimes these drives, after a badblocks run, simply claim fresh sectors from the spare pool, but sometimes there aren't any left, and I face the fact that there are bad sectors in my FS. That's not a problem if you use one of a set of linux filesystems, as mkfs.* often takes a badblocks list as input. But seeing as I sometimes bring a drive or two to my girlfriend's (Mac) or one of my friends (usually Windows), I've decided to use NTFS for these things. Up untill now, when a drive had unrelocatable bad sectors, I've just written data to it, re-read it, and files that were bad were put in a "BAD_SECTOR_FILES" folder on the drive.
Sure, it works, but it would be really nice to be able to just mark those sectors bad instead. It's a lot of hassle the other way around.
So I read some posts, of which most quickly switch subject to the often accurate one of "replace your drive!", and some suggest spinrite, but really, I don't see why I should pay that much money for such a trivial task.
The alternative is to use ext3, but I'd like to hear if someone knows how I can feed badblocks output to mkfs.ntfs, so that the bad blocks aren't used. Or if there are other tools (I could use Windows in a VM) that do the same. I'm confused about chkdsk, it seems the bad sectors thing is FAT only?
I have a 230GB hard drive wich I don't know it's name.I have a 207GB windows vista partition and the rest of it is for linux (Ubuntu).Today I decided giving it all space to Ubuntu Linux ,but didn't want to lose all my data from the windows partition.I thought that by deleting all things except the folder with my data and leaving enough space to shrink and make enough room for another partition to put my data folder.The logic is that i could then format that partition wich previously was windows and use it all for ubuntu without losing data.After having ubuntu installed i could copy my data folder to /home and then delete the previous partition and make /home bigger.The problem is that after i freed the space,when using Gparted to shrink it says that the partition has bad sectors or the filesystem has problems and so it can't do some operations.
What could have went wrong?It told me to do chkdisk but as i deleted all the windows files and i can't boot into it anymore.I used the vista dvd to do that.I rebooted 2 times as it says and after that when trying again nothing changed.I tried to use ntfsresize with the --bad-sectors argument and also the -f argument but it's useless.At the end it says it won't do anything until the ntfs filesystem get repaired.Or it says it is too risky to continueIs there any way i could do some superforce command to resize it without losing data?Please don't tell me to put it on an external storage cause i have like 70GB of datas to save...no i don't have an external hardrive
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.
i restored grub2 with renastersys grub tool and now i cant reach my system i tried to reinstall grub2 but it has not worked. When i try to open my computer grub restore tool comes out and i cant enter my system
So I've installed Ubuntu 10.10 from fresh. I do dual run with Windows and i like to share the folder with Win, so I need ntfs-config tool to automount the Win-Data partition. Installed ntfs-configuration tool and wont launch, tried through console and got:
Traceback (most recent call last): File "/usr/bin/ntfs-config", line 102, in <module> main(args, opts) File "/usr/bin/ntfs-config", line 75, in main app = NtfsConfig() File "/usr/lib/pymodules/python2.6/NtfsConfig/NtfsConfig.py", line 56, in __init__ os.mkdir(HAL_CONFIG_DIR) OSError: [Errno 2] No such file or directory: '/etc/hal/fdi/policy'
I've installed and reinstalled the Tool several times and it doesn't do anything. I get the prompt to input my password, which I know I put in correctly. It then just disappears. If I try running the tool again, I see a window pop up at the bottom of my screen for a half a second then disappear. I'm running Maverick with Win7 dual-booting and trying to use the tool to auto-mount several partitions
I am having WinXP installed, and also installed Ubuntu 10.04, after so i wanted to remove Ubuntu 10.04, so i removed partitions from XP, disk management tool. The Ubuntu installtion partition also got removed. But also my two more drives also removed with the removal of Ubuntu partition.
After that i had restored XP bool loader by reparing the Installation of XP.
Now any one can tell me how to restore my other two drives, which i manually did not removed.
When logged in as my standard user in Fedora 11 gnome desktop the installed ntfs-config tool will not open and gives an error which says this; "no authentication program found", and to run that ntfs-config as the root in a terminal. So then the only way to open that tool is to type that in a terminal, and it did open, but how can I fix this ? Can this issue be related to ownership and permissions of it ? Also the num lock does not come on during boot up, is there a easy fix for that too ? This is a recent fresh updated install from the DVD with the ext4 file system. All the ntfs-3g applications are installed as default, so I just added that enable ntfs write support tool with the package manager.
anytime my external drive gets unplugged improperly, or the laptop shutsdown abruptly (overheating/battery), it's NTFS partition is unmountable. gparted informs me to:
run chkdsk /f on Windows then reboot into Windows twice
but i no longer have windows, and would prefer to find a way to restore the drive's functionality without having to visit someone who uses windows every time this happens.is there a way to restore NTFS consistency without windows?
Storage information: 1st primary:SG 160G ATA 100 1st secondary:WD 160 ATA 133 SATA:WD 1000 2nd primary:DVD 2nd secondary:DVD±RW
Winxp in 1st primary.I did a fresh install of lenny on 1st secondary.
info about lenny setup: 1.Partition list:/boot,/,/home,swap 2.Every partition is XFS except swap.
At the end of installion,lenny installed grub on (hd0) that is 1st primary.
Everything seems OK.Lenny runs OK.
But when I switch back to windows xp,the diskmgmt can not detect hdd's info and the system meets a problem of shutting down.
After many times of trying. I solved the problem by the following way. 1.Boot with windows xp's install CD and use fixmbr on (hd0). 2.Boot with lenny's install DVD , do a grub>root (1,0)>setup (hd1) After that,edit /boot/grub/menu.lst and change (hd0,0) to (hd1,0) and also (hd1,0) to (hd0,0). 3.Reboot and Press F8 for a boot menu then I can select which disk to boot. windows boot from 1st primary's mbr,lenny boot from lenny's grub.
The problem is caused by a bug between GRUB and windows' mbr and maybe more about GRUB and XFS.
I had an Ubuntu desktop 9.04. While I wanted to format my second hard drive with gparted, I have selected my system HD () with all my datas (/home, ...).In fact, my error is I have selected to rebuild my partition table and now I have lost all partitions . I would like to know how to restore my datas.
I just installed ubuntu via the windows executable and I couldn't mount my NTFS partition. I found this a little odd and I checked fdisk and it seems to think I don't have an ext4 partition as my entire internal HD is displayed as NTFS.
Here's the fdisk output:
When i try to mount the NTFS partition /dev/sda2 i get the following output:
I can't make heads or tails out of this. Anyone know what's going on here?
Windows recognizes that 30GB were taken from the NTFS partition for my linux install. It reads the max partition size as 465GB. fstab reports the NTFS partition size as 488GB.
I just backup my files. During restoration, there's a hash mismatch report. What I want to know is that, is there a way to restore certain files in the back up? or is there are way to restore files by volume?
I want to change my sda2 partition to ntfs type. i have installed GParted but it is returning a strange type of error. Here is the error dump file...
WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot. WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
There were some files residing on my ext3 file system, using Ubuntu as my linux distribution. Yesterday I formatted the hard drive using a windows install CD, rewriting it with a new NTFS partition. I'm willing to restore my personal files deleted due to this format.