There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
acer audio bios boot bsod computer connection crash dell driver drivers error excel firefox freeze game graphics hard disk hard drive hardware hijackthis install internet laptop linksys macro malware network outlook outlook 2003 outlook 2007 password problem ram recovery redirect server slow trojan usb video virus vista windows windows 7 windows vista windowsxp windows xp wireless youtube
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Gah! How to back up my Windows partition from within Ubuntu?

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
choicefresh's Avatar
Computer Specs
Member with 65 posts.
 
Join Date: Oct 2008
Experience: Intermediate
24-Jan-2009, 07:15 PM #1
Unhappy Gah! How to back up my Windows partition from within Ubuntu?
To make a long story short, my computer's partitions got messed up, and I've been running off the Ubuntu LiveCD for a few weeks until I can reinstall.

However, I have the Windows partition mounted, but I don't know the easiest way to back parts of it up. I've been having problems with the external hard drive, so I was going to resort to FTP, but I can't even get all the files into one directory.

kBackup looked like it would work well, but after setting everything up and running a backup, all I get is a folder in the folder I specified with some text files containing Ubuntu's settings, and a "files.tgz" containing an empty folder.

I really want to get my computer back up and running. I've been on the LiveCD for quite a while. Help?

Thanks,
choicefresh

Last edited by choicefresh : 25-Jan-2009 04:50 PM. Reason: Clarification
TerryNet's Avatar
Computer Specs
Moderator with 29,675 posts.
 
Join Date: Mar 2005
Location: Ottawa, IL
Experience: Intermediate to Advanced
24-Jan-2009, 07:37 PM #2
Not sure I understand the desire to get all files into one directory. Why not just backup the directories (and maybe some individual files) that contain the data you want to keep?

However you do it, the easiest way that comes to mind is to copy to USB flash drive. The practicality of that, of course, depends on the amount to be backed up and the size of any flash drive(s).
Elvandil's Avatar
Computer Specs
Moderator with 40,618 posts.
 
Join Date: Aug 2003
Location: Vermont
24-Jan-2009, 08:46 PM #3
Or burn to DVD.

But if you really want to copy the whole partition, Clonezilla can be used inside Ubuntu, and the included partitioner may do it, too (Gparted).
choicefresh's Avatar
Computer Specs
Member with 65 posts.
 
Join Date: Oct 2008
Experience: Intermediate
25-Jan-2009, 04:49 PM #4
Quote:
Originally Posted by TerryNet View Post
Not sure I understand the desire to get all files into one directory. Why not just backup the directories (and maybe some individual files) that contain the data you want to keep?

However you do it, the easiest way that comes to mind is to copy to USB flash drive. The practicality of that, of course, depends on the amount to be backed up and the size of any flash drive(s).
Quote:
Originally Posted by Elvandil View Post
Or burn to DVD.

But if you really want to copy the whole partition, Clonezilla can be used inside Ubuntu, and the included partitioner may do it, too (Gparted).
You both misunderstood me. I'm only trying to backup the necessary files and folders, but I want them all in a folder called "backup" so I can keep track of them.
lotuseclat79's Avatar
Distinguished Member with 16,064 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
25-Jan-2009, 05:12 PM #5
Hi choicefresh,

What kind of problems are you having with your external HD?

Why I ask is that since you are using a Linux Live CD, with the output of the "sudo fdisk -l" command from a regular user account or "fdisk -l" from the root account, you can understand the device names of your NTFS drive etc.

Knowing that information, if you identify the directories you want to backup in Windows, it is a simple matter to backup the directories from the mount point in your Live CD to the external drive (assuming it is also mounted) where it would be easy to make a new directory "backup" and use the if=<pathname of NTFS directory> of=<pathname of external drive directory>.

Note: Try a simple example first to understand how to use the dd command from the Live CD root account, and ask any questions you have in this thread before you do it if you are uncertain after reading the dd man page: i.e. $ man dd

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
choicefresh's Avatar
Computer Specs
Member with 65 posts.
 
Join Date: Oct 2008
Experience: Intermediate
25-Jan-2009, 05:20 PM #6
Quote:
Originally Posted by lotuseclat79 View Post
Hi choicefresh,

What kind of problems are you having with your external HD?

Why I ask is that since you are using a Linux Live CD, with the output of the "sudo fdisk -l" command from a regular user account or "fdisk -l" from the root account, you can understand the device names of your NTFS drive etc.

Knowing that information, if you identify the directories you want to backup in Windows, it is a simple matter to backup the directories from the mount point in your Live CD to the external drive (assuming it is also mounted) where it would be easy to make a new directory "backup" and use the if=<pathname of NTFS directory> of=<pathname of external drive directory>.

Note: Try a simple example first to understand how to use the dd command from the Live CD root account, and ask any questions you have in this thread before you do it if you are uncertain after reading the dd man page: i.e. $ man dd

-- Tom
You can read information about the external hard drive here. As you can see, my problem still hasn't been solved. It doesn't even show up in fdisk -- I don't know if it's my USB that's broken, my external hard drive format that's unrecognizable, or a different problem completely, such as out of date software on the LiveCD, which is a real hassle since I can't upgrade it without restarting.
prunejuice's Avatar
Senior Member with 1,923 posts.
 
Join Date: Apr 2002
25-Jan-2009, 06:32 PM #7
Use PCLinuxOS.

Although I use Ubuntu, the PCLinuxOS LiveCD has better detection of USB devices and will automount your drive for you. It also has K3B should you decide to burn your backup to DVD.
But go ahead and copy the files you need to over to the external drive first. It should be relatively painless.
lotuseclat79's Avatar
Distinguished Member with 16,064 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
26-Jan-2009, 08:04 AM #8
Hi choicefresh,

I do not know what you meant by "fiddling" before you moved some files onto the drive.

It is no surprise that you may be having problems as before using a new drive, it must be formatted with a partition, and in the process a file system installed onto the drive so that whatever is written can be read afterwards.

If your fiddling met those requirements, then it should be working, otherwise, I'm afraid you may have to start over with the new drive and do the above steps before moving (i.e. writing) any files over to the new drive.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
choicefresh's Avatar
Computer Specs
Member with 65 posts.
 
Join Date: Oct 2008
Experience: Intermediate
26-Jan-2009, 05:00 PM #9
Quote:
Originally Posted by lotuseclat79 View Post
Hi choicefresh,

I do not know what you meant by "fiddling" before you moved some files onto the drive.

It is no surprise that you may be having problems as before using a new drive, it must be formatted with a partition, and in the process a file system installed onto the drive so that whatever is written can be read afterwards.

If your fiddling met those requirements, then it should be working, otherwise, I'm afraid you may have to start over with the new drive and do the above steps before moving (i.e. writing) any files over to the new drive.

-- Tom
I first moved some files over to the external hard drive, since I thought it was working. Then, I plugged the external hard drive into a different computer running Windows, but Windows said it needed to format it, so I formatted it to NTFS. After that, Ubuntu stopped detecting it at all.
TerryNet's Avatar
Computer Specs
Moderator with 29,675 posts.
 
Join Date: Mar 2005
Location: Ottawa, IL
Experience: Intermediate to Advanced
26-Jan-2009, 08:03 PM #10
Does the other (or any) Windows PC say the external disk is good? I think I read somewhere above or in your other thread that you had removed the disk w/o finding the "Safely remove hardware." Usually this is not an issue, but if there was something in the cache that was critical to the disk functioning ...

If a Windows will accept the disk then make sure you do the "Safely remove" bit and try Ubuntu again.

How much data do you need to backup? If it's, say, less than 1 GByte you're spending way too much time on this--buy a flash drive or use a couple CDs.

You talked about FTP. Over the internet or over your LAN to another computer? It may not be ideal but seems to me you could do individual folders to get the job done and then at the other end put them into one folder.

Just trying to give some ideas that may allow you to get your main job done.
choicefresh's Avatar
Computer Specs
Member with 65 posts.
 
Join Date: Oct 2008
Experience: Intermediate
26-Jan-2009, 09:13 PM #11
Quote:
Originally Posted by TerryNet View Post
Does the other (or any) Windows PC say the external disk is good? I think I read somewhere above or in your other thread that you had removed the disk w/o finding the "Safely remove hardware." Usually this is not an issue, but if there was something in the cache that was critical to the disk functioning ...

If a Windows will accept the disk then make sure you do the "Safely remove" bit and try Ubuntu again.
I'll try again, when I get a chance.

Quote:
Originally Posted by TerryNet View Post
How much data do you need to backup? If it's, say, less than 1 GByte you're spending way too much time on this--buy a flash drive or use a couple CDs.
If I can get it all in one folder, I can check the size. It shouldn't be too big, since I've decided not to back up the movies I've downloaded.

Quote:
Originally Posted by TerryNet View Post
You talked about FTP. Over the internet or over your LAN to another computer? It may not be ideal but seems to me you could do individual folders to get the job done and then at the other end put them into one folder.
Over LAN would probably be more reliable.

I'll try the hard drive again in Windows and get back to you.
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
26-Jan-2009, 09:33 PM #12
Quote:
Originally Posted by choicefresh View Post
...so I formatted it to NTFS. After that, Ubuntu stopped detecting it at all.
You probably need the ntfs-3g driver.


Read-write NTFS driver for Linux
The ntfs-3g driver is an open source, freely available read/write NTFS
driver, which provides safe and fast handling of the Windows XP, Windows
Server 2003, Windows 2000 and Windows Vista filesystems. Almost the full
POSIX filesystem functionality is supported, the major exceptions are
changing the file ownerships and the access rights.

The purpose of the project is to develop, continuously quality test and
support a trustable, featureful and high performance solution for hardware
platforms and operating systems whose users need to reliably interoperate
with NTFS. Besides this practical goal, the project also aims to explore
the limits of the hybrid, kernel/user space filesystem driver approach,
performance, reliability and feature richness per invested effort wise.

The driver is in STABLE status. The test methods, the test suites used and
testimonials can be found on:

http://www.ntfs-3g.org/quality.html
__________________
"The only stupid question is the one not asked." Me
Empowered by Linux
"Software is like sex; it’s better when it’s free." Linus Torvalds
choicefresh's Avatar
Computer Specs
Member with 65 posts.
 
Join Date: Oct 2008
Experience: Intermediate
27-Jan-2009, 12:20 AM #13
Quote:
Originally Posted by RootbeaR View Post
You probably need the ntfs-3g driver.


Read-write NTFS driver for Linux
The ntfs-3g driver is an open source, freely available read/write NTFS
driver, which provides safe and fast handling of the Windows XP, Windows
Server 2003, Windows 2000 and Windows Vista filesystems. Almost the full
POSIX filesystem functionality is supported, the major exceptions are
changing the file ownerships and the access rights.

The purpose of the project is to develop, continuously quality test and
support a trustable, featureful and high performance solution for hardware
platforms and operating systems whose users need to reliably interoperate
with NTFS. Besides this practical goal, the project also aims to explore
the limits of the hybrid, kernel/user space filesystem driver approach,
performance, reliability and feature richness per invested effort wise.

The driver is in STABLE status. The test methods, the test suites used and
testimonials can be found on:

http://www.ntfs-3g.org/quality.html
ntfs-3g comes preinstalled with Ubuntu.
Closed Thread Bookmark and Share   techguy.org/794072

Tags
backup, livecd, partition, ubuntu, windows

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:37 AM.
Copyright © 1996 - 2010 TechGuy, Inc. All rights reserved.
Powered by Cermak Technologies, Inc.