LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2007, 07:22 PM   #1
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Rep: Reputation: 0
Using PartImage to Save a Windows XP drive


I have a win xp box with 2 drives, C: and E:. The system is on C:, the data on E: (which is much bigger).

I am trying to use partimage in a Ubuntu 7x live-cd session to create an image of the system drive in a directory named "backup" on E:. But everything I try drives me to a dead-end with an inscrutable error message.

So, are there any preconditions which must be met before I can do this? The Ubuntu file browser sees both disks and has rw access to them.

Do I have to "mount" the drive(s) in a terminal first? If so, how? When I try, mount tells me that the drive doesn't exist in /etc/fstab. If I try to edit /etc/fstab, no can do.

Partimage sees the source drive, but I don't know how to describe the target file/location.

I must have spent 20-30 hours on this and still have no backup image. Any help would be appreciated.
 
Old 11-03-2007, 08:25 PM   #2
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
An absolute emergency backup can be created with
dd if=/dev/sda1 of=/some/path/with/a/TON/of/space bs=32k

I don't recommend it.

IIRC, Partimage checks to see if the partition is 'dirty' meaning a chkdsk has to report OK, and the system shut down cleanly. This might hose you. It's a risk.

To mount an ntfs system do the following:
sudo mkdir -p /mnt/windows
sudo umount /dev/sda1
sudo mount -t ntfs-3g /dev/sda1 /mnt/windows

There are some bug reports that the new Gutsy kernel is somehow 'grabbing' the NTFS device.... check with this maybe?

sudo lsof /dev/sda1
 
Old 11-04-2007, 08:03 AM   #3
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the reply. At least I know what I should do. However ...

I can make the mountpoint directory (/mnt/windows) but I can neither unmount nor mount /dev/sdb (which is how fdisk reports my data drive). When I try, I'm told that the directory does not exist. The actual error message is:

Failed to access '/dev/sdb': No such file or directory

Indeed, when I ls -la as root, there is no such directory.

There is nothing under /media either.

This is all happening from a Ubuntu live (7.x) cd.

Any other ideas?

Gary
 
Old 11-04-2007, 09:53 AM   #4
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
Ahh.

/dev/sdb is the "name" for the whole second device. (First could be a cdrom, but unlikely)

Partitions are named:
/dev/sda1 <-- First partition on first drive, usually a bootable part
/dev/sdb2 <-- Second partition on second drive
/dev/sda5 <-- First Logical Partition on first drive

The output of the following cut and paste would be very helpful:

Code:
sudo fdisk -l
On mine it looks like:
Code:
dan@sodoku:~$ sudo fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x97c197c1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7269    58388211   83  Linux
/dev/sda2            7270        7296      216877+   5  Extended
/dev/sda5            7270        7296      216846   82  Linux swap / Solaris
Some other random tips I've found googling around:
Make damned sure your windows machine isn't in 'hibernate' mode.
Run a checkdisk and a defrag in windows first.
Do a 'shutdown' to make sure your not in hibernate mode.

I have never tried partimage on a Dynamic Disk type of windows partition. I don't think it will work, but I may be wrong. Have you tried windows 'ntbackup.exe' and try the 'automatic system recovery' backup option? You
 
Old 11-04-2007, 09:55 AM   #5
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
Ahh.

/dev/sdb is the "name" for the whole second device. (First could be a cdrom, but unlikely)

Partitions are named:
/dev/sda1 <-- First partition on first drive, usually a bootable part
/dev/sdb2 <-- Second partition on second drive
/dev/sda5 <-- First Logical Partition on first drive

The output of the following cut and paste would be very helpful:

Code:
sudo fdisk -l
On mine it looks like:
Code:
dan@sodoku:~$ sudo fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x97c197c1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7269    58388211   83  Linux
/dev/sda2            7270        7296      216877+   5  Extended
/dev/sda5            7270        7296      216846   82  Linux swap / Solaris
Some other random tips I've found googling around:
Make damned sure your windows machine isn't in 'hibernate' mode.
Run a checkdisk and a defrag in windows first.
Do a 'shutdown' to make sure your not in hibernate mode.

I have never tried partimage on a Dynamic Disk type of windows partition. I don't think it will work, but I may be wrong.

To attempt a data backup from another angle, have you tried windows 'ntbackup.exe' and try the 'automatic system recovery' backup option? ntbackup for windows home editions are found on the cd install media somewhere.
 
Old 11-04-2007, 11:40 AM   #6
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks again. I'm pretty sure that there's no hibernation going on, and that the disks are perfectly defragged.

Here's what happens upon attempting mount:

root@ubuntu:/# mount /dev/hdb1/backup
mount: can't find /dev/hdb1/backup in /etc/fstab or /etc/mtab
root@ubuntu:/#
root@ubuntu:/# mount /dev/hdb1
fuse: mount failed: Device or resource busy
FUSE mount point creation failed
Unmounting /dev/hdb1 ()

Unmounting /dev/hdb1 makes no difference to the above results.

Thanks for the ntbackup suggestion. I didn't know about it and will seek.

This is so frustrating. All I want to do is back up my hard drive. I can't believe it's this difficult!

Gary
 
Old 11-04-2007, 12:13 PM   #7
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
I was shocked at hard it was to backup data since windows me and windows xp home edition. It spoke legions about what MS thinks of home users when they decided to deliberately remove the backup util from the default install!
 
Old 11-05-2007, 12:33 PM   #8
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks to all! For reasons which I do not understand, mounting any drive from the live cd OS simply did not work. But I found a little utility for ntfs which mounted the drive just fine, and after that I was able to use partimage.

You're right about M$ backup limitations. They seem to think that home users just don't want to do it ... the tools the offer will do restorations, but only if the OS is working. If the OS has cratered, you're simply SOL. Which is why I turned to linux. It was an ordeal, but ahhh! The feeling of security!

Gary
 
  


Reply

Tags
linux, partimage, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can Partimage be used to ghost the drive? jb8578 Fedora 3 12-13-2006 01:29 PM
can't save to USB flash drive mbquartnut SUSE / openSUSE 1 01-15-2006 06:02 AM
Can't save files to FAT32 drive Geoff Cox Linux - Newbie 13 02-17-2004 07:27 AM
Why partimage cannot read a mounted drive? browny_amiga Linux - General 4 02-06-2004 10:33 AM
partimage shows drive but not partitions? bdp Linux - Software 4 11-29-2003 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration