LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2012, 10:34 PM   #1
Kenkron
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
ntfsclone restoration (in over head)


How can I restore an ntfsclone img to a partition smaller than the originally cloned partition? I have an image of a 270g partition that is ~170g full and needs to be put on a 200g partition. Currently, the img lives on an external 374g drive. I am running ubuntu 12.04 on a dell inspiron 1545 with 4g ram and 300g hard drive.

Hi everyone, this is my first post. I'm not entirely sure how to do it, but i assumed that all the important information was supposed to go first, and I should explain how this question came to be later. If you don't care how I happened to end up with this problem, feel free to stop reading.

A few months ago, I needed linux for a class and installed ubuntu on a 4g partition. I soon found that I preferred linux to windows and wanted a bigger partition for it. most of my hard drive was partitioned for windows, but windows used little of it's partition. When I tried to use gparted, I found that there were errors on the drive (I had noticed this years ago, and the reminder was unsurprising). Running chkdsk /b didn't help. After some web browsing, I came across the notion that I could use ntfsclone to copy the filesystem. Then, with my windows partition on my external hard drive, I could delete the windows partition on my computer, repartition it to my liking for linux, and finally, put windows back on a smaller partition. ntfsclone tells me the partition is too small.
I'm clearly in over my head, but I suspect that ntfsclone copied more than I expected it to more exactly than I expected it to if the new partition has to be the same size.

here are some possible solutions that I have considered.
1. restore the img file to another img file in the external drive, mount that img file, and copy the contents onto the new partition.
2. move the img file to my 200g partiton, restore it to my external drive, delete the original image, and copy the external drives contents to the 200g partition. (less appealing than option 1)
3. ask people on linux forums what to do (doing that now)

many thanks

Last edited by Kenkron; 11-09-2012 at 10:36 PM. Reason: compacting, clarifying, and correcting
 
Old 11-09-2012, 11:22 PM   #2
BoraxMan
Member
 
Registered: Apr 2010
Posts: 85

Rep: Reputation: 8
Option 1 is the best option.

You can mount the image using a loopback device

mount ntfsclone.file -o loop /mnt/ntfs

and copy the files from there to the new partition, but you need to be sure you preserve permissions (if that is important to you).

See this link for how to copy from ntfs to ntfs in Linux and preserve partitions.

http://tuxera.com/forum/viewtopic.php?f=2&t=29567

Unfortunately, you can't resize the ntfsclone image easily, or at least in a way that will work.
 
Old 11-10-2012, 01:43 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Be aware that the (Win) system may not be bootable, even if you can restore to that partition.
There are some very lucid warnings in the manpage, and I have found Windows to be particularly cantankerous when its system partition has been screwed with.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] ntfsclone requirements on target partition Dumboldman Linux - General 5 11-26-2010 09:26 PM
ntfsclone Restore image to a remote host!! Ricio Linux - General 1 03-31-2008 07:42 AM
Error when restoring an image with ntfsclone nonoitall Linux - General 2 02-24-2008 06:32 PM
Issues combining sysprep with ntfsclone gd2shoe Linux - Software 5 07-18-2006 04:45 PM
Split large ntfsclone images? recce101 Linux - Software 3 09-05-2005 12:53 PM


All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration