Unix Technical Forum

Copying whole hard disk.

This is a discussion on Copying whole hard disk. within the Debian Linux support forums, part of the Debian Linux category; --> After some time spending on Debian, now it is time for me to switch to it as my daily ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 08:41 AM
Edmund
 
Posts: n/a
Default Copying whole hard disk.


After some time spending on Debian, now it is
time for me to switch to it as my daily OS.
After all tweaks I have done (on a small Hdisk),
I like to have the whole system copied to another
HDisk which also contains windows.
Is this possible, how do I do that?

Thanks,

Edmund
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:41 AM
ray
 
Posts: n/a
Default Re: Copying whole hard disk.

On Tue, 04 Sep 2007 22:12:18 +0200, Edmund wrote:

>
> After some time spending on Debian, now it is
> time for me to switch to it as my daily OS.
> After all tweaks I have done (on a small Hdisk),
> I like to have the whole system copied to another
> HDisk which also contains windows.
> Is this possible, how do I do that?
>
> Thanks,
>
> Edmund


I assume that you mean to move it to the same disk which ms occupies and
run it from there. You will have to:

1) resize partitions on your main drive to make room. Easiest to do this
with gparted from a Live CD.

2) set up the partitions on the main drive - again, gparted from a Live CD.

3) copy your partitions (except swap) to the new drive. You can do this
from a Live CD assuming both drives are available at the same time. You
can also do this using partimage from a Live CD if you only have one drive
at a time in the system provided you have an external drive - like an
external USB hard drive or USB flash drive. You would use partimage to
backup and then to restore to the new drive. If both drives are available
you can use dd or rsync - and probably some other tools.

4) you will have to install grub (or some other boot loader) to the MBR
and have it point to the new partition - or use the ms loader - I'm not
familiar with that.

5) change the entry points in /etc/fstab to point to the new locations.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 08:41 AM
Roby
 
Posts: n/a
Default Re: Copying whole hard disk.

ray wrote:

> On Tue, 04 Sep 2007 22:12:18 +0200, Edmund wrote:
>
>>
>> After some time spending on Debian, now it is
>> time for me to switch to it as my daily OS.
>> After all tweaks I have done (on a small Hdisk),
>> I like to have the whole system copied to another
>> HDisk which also contains windows.
>> Is this possible, how do I do that?
>>
>> Thanks,
>>
>> Edmund

>
> I assume that you mean to move it to the same disk which ms occupies and
> run it from there. You will have to:
>
> 1) resize partitions on your main drive to make room. Easiest to do this
> with gparted from a Live CD.
>
> 2) set up the partitions on the main drive - again, gparted from a Live
> CD.
>
> 3) copy your partitions (except swap) to the new drive. You can do this
> from a Live CD assuming both drives are available at the same time. You
> can also do this using partimage from a Live CD if you only have one drive
> at a time in the system provided you have an external drive - like an
> external USB hard drive or USB flash drive. You would use partimage to
> backup and then to restore to the new drive. If both drives are available
> you can use dd or rsync - and probably some other tools.
>
> 4) you will have to install grub (or some other boot loader) to the MBR
> and have it point to the new partition - or use the ms loader - I'm not
> familiar with that.
>
> 5) change the entry points in /etc/fstab to point to the new locations.


Partimage restore requires source and destination partitions be the same
size. Use tar if the destination partition is larger.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 08:41 AM
Guy
 
Posts: n/a
Default Re: Copying whole hard disk.

Edmund wrote:
> After some time spending on Debian, now it is
> time for me to switch to it as my daily OS.
> After all tweaks I have done (on a small Hdisk),
> I like to have the whole system copied to another
> HDisk which also contains windows.
> Is this possible, how do I do that?
>
> Thanks,
>
> Edmund


When I see this and have access to the person's system, I do the thing
with them, so they learn, and it is easier to fix any issues
immediately. Less frustration. But, I also have support of a hug LUG.
We have monthly Installfests.

Linux Users Groups can be located in Google, or on
http://lugww.counter.li.org or at http://Linux.org and search that
website for LUGs. worldwide listings show about 700 LUGs.

Another thought, and often done well, is to grab SuperGRUB and install
it, http://freshmeat.net/projects/supergrub/
after first putting your Debian drive as the second device on your IDE.

Saves lots of effort, and problems.

Install the second drive with the computer turned off.
make sure jumpers are set on the drives for Master / Slave.

Boot with the SuperGrub, and install it per the directions.

Upon any boot, you should see the GRUB menu, and choose Windows or Linux
for that session!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 08:41 AM
Unruh
 
Posts: n/a
Default Re: Copying whole hard disk.

Edmund <nomail@hotmail.com> writes:


>After some time spending on Debian, now it is
>time for me to switch to it as my daily OS.
>After all tweaks I have done (on a small Hdisk),
>I like to have the whole system copied to another
>HDisk which also contains windows.
>Is this possible, how do I do that?


It is not clear what you are asking. Why copy it? Are the two disks on the
same computer? There is no need to copy it. Just make a partition on the
larger disk and mount that as some convenient place on your system ( /home,
or /local)
Please be clearer as to what it is that you want.


>Thanks,


>Edmund

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 08:41 AM
ray
 
Posts: n/a
Default Re: Copying whole hard disk.

On Wed, 05 Sep 2007 07:33:12 -0400, Roby wrote:

> ray wrote:
>
>> On Tue, 04 Sep 2007 22:12:18 +0200, Edmund wrote:
>>
>>>
>>> After some time spending on Debian, now it is
>>> time for me to switch to it as my daily OS.
>>> After all tweaks I have done (on a small Hdisk),
>>> I like to have the whole system copied to another
>>> HDisk which also contains windows.
>>> Is this possible, how do I do that?
>>>
>>> Thanks,
>>>
>>> Edmund

>>
>> I assume that you mean to move it to the same disk which ms occupies and
>> run it from there. You will have to:
>>
>> 1) resize partitions on your main drive to make room. Easiest to do this
>> with gparted from a Live CD.
>>
>> 2) set up the partitions on the main drive - again, gparted from a Live
>> CD.
>>
>> 3) copy your partitions (except swap) to the new drive. You can do this
>> from a Live CD assuming both drives are available at the same time. You
>> can also do this using partimage from a Live CD if you only have one drive
>> at a time in the system provided you have an external drive - like an
>> external USB hard drive or USB flash drive. You would use partimage to
>> backup and then to restore to the new drive. If both drives are available
>> you can use dd or rsync - and probably some other tools.
>>
>> 4) you will have to install grub (or some other boot loader) to the MBR
>> and have it point to the new partition - or use the ms loader - I'm not
>> familiar with that.
>>
>> 5) change the entry points in /etc/fstab to point to the new locations.

>
> Partimage restore requires source and destination partitions be the same
> size. Use tar if the destination partition is larger.


Or, make it the same size and expand it later using gparted.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 08:41 AM
Edmund
 
Posts: n/a
Default Re: Copying whole hard disk.

Guy wrote:

> Edmund wrote:
>> After some time spending on Debian, now it is
>> time for me to switch to it as my daily OS.
>> After all tweaks I have done (on a small Hdisk),
>> I like to have the whole system copied to another
>> HDisk which also contains windows.
>> Is this possible, how do I do that?
>>
>> Thanks,
>>
>> Edmund

>
> When I see this and have access to the person's system, I do the thing
> with them, so they learn, and it is easier to fix any issues
> immediately. Less frustration. But, I also have support of a hug LUG.
> We have monthly Installfests.
>
> Linux Users Groups can be located in Google, or on
> http://lugww.counter.li.org
> or at http://Linux.org and search that
> website for LUGs. worldwide listings show about 700 LUGs.


I will look for that but http://lugww.counter.li.org
doesn't exist and on linux.org I don't see any search
option.
>
> Another thought, and often done well, is to grab SuperGRUB and install
> it, http://freshmeat.net/projects/supergrub/
> after first putting your Debian drive as the second device on your IDE.
>
> Saves lots of effort, and problems.
>
> Install the second drive with the computer turned off.
> make sure jumpers are set on the drives for Master / Slave.
>
> Boot with the SuperGrub, and install it per the directions.
>
> Upon any boot, you should see the GRUB menu, and choose Windows or Linux
> for that session!


I don't think I want that.

Edmund

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 08:41 AM
Edmund
 
Posts: n/a
Default Re: Copying whole hard disk.

ray wrote:

> On Tue, 04 Sep 2007 22:12:18 +0200, Edmund wrote:
>
>>
>> After some time spending on Debian, now it is
>> time for me to switch to it as my daily OS.
>> After all tweaks I have done (on a small Hdisk),
>> I like to have the whole system copied to another
>> HDisk which also contains windows.
>> Is this possible, how do I do that?
>>
>> Thanks,
>>
>> Edmund

>
> I assume that you mean to move it to the same disk which ms occupies and
> run it from there. You will have to:
>
> 1) resize partitions on your main drive to make room. Easiest to do this
> with gparted from a Live CD.


Is this a non destructive partition manager, can I resize
a Hard Disk a Windows Disk and still use windows afterwards?
>
> 2) set up the partitions on the main drive - again, gparted from a Live
> CD.
>
> 3) copy your partitions (except swap) to the new drive. You can do this
> from a Live CD assuming both drives are available at the same time. You
> can also do this using partimage from a Live CD if you only have one drive
> at a time in the system provided you have an external drive - like an
> external USB hard drive or USB flash drive. You would use partimage to
> backup and then to restore to the new drive. If both drives are available
> you can use dd or rsync - and probably some other tools.
>
> 4) you will have to install grub (or some other boot loader) to the MBR
> and have it point to the new partition - or use the ms loader - I'm not
> familiar with that.
>
> 5) change the entry points in /etc/fstab to point to the new locations.


Thanks you.

Edmund

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-19-2008, 08:41 AM
ray
 
Posts: n/a
Default Re: Copying whole hard disk.

On Fri, 07 Sep 2007 21:20:28 +0200, Edmund wrote:

> ray wrote:
>
>> On Tue, 04 Sep 2007 22:12:18 +0200, Edmund wrote:
>>
>>>
>>> After some time spending on Debian, now it is
>>> time for me to switch to it as my daily OS.
>>> After all tweaks I have done (on a small Hdisk),
>>> I like to have the whole system copied to another
>>> HDisk which also contains windows.
>>> Is this possible, how do I do that?
>>>
>>> Thanks,
>>>
>>> Edmund

>>
>> I assume that you mean to move it to the same disk which ms occupies and
>> run it from there. You will have to:
>>
>> 1) resize partitions on your main drive to make room. Easiest to do this
>> with gparted from a Live CD.

>
> Is this a non destructive partition manager, can I resize
> a Hard Disk a Windows Disk and still use windows afterwards?


Absolutely. It's always good, of course, to make backups before you start
- the power could go out partway through. It's good to defrag first.

>>
>> 2) set up the partitions on the main drive - again, gparted from a Live
>> CD.
>>
>> 3) copy your partitions (except swap) to the new drive. You can do this
>> from a Live CD assuming both drives are available at the same time. You
>> can also do this using partimage from a Live CD if you only have one drive
>> at a time in the system provided you have an external drive - like an
>> external USB hard drive or USB flash drive. You would use partimage to
>> backup and then to restore to the new drive. If both drives are available
>> you can use dd or rsync - and probably some other tools.
>>
>> 4) you will have to install grub (or some other boot loader) to the MBR
>> and have it point to the new partition - or use the ms loader - I'm not
>> familiar with that.
>>
>> 5) change the entry points in /etc/fstab to point to the new locations.

>
> Thanks you.
>
> Edmund


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2008, 08:41 AM
Kai-Martin Knaak
 
Posts: n/a
Default Re: Copying whole hard disk.

On Fri, 07 Sep 2007 21:16:38 +0200, Edmund wrote:

>> Upon any boot, you should see the GRUB menu, and choose Windows or
>> Linux for that session!

>
> I don't think I want that.


What do you want instead?

Note, you can set a default OS and a period of time after which the
system will boot into the default OS. You can even configure grub to boot
into the OS chosen last time.

---<(kaimartin)>---
--
Kai-Martin Knaak
http://lilalaser.de/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com