Linux Debian support - Copying whole hard disk.

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > October 2007 > Copying whole hard disk.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Copying whole hard disk.
Edmund

2007-09-04, 7:14 pm


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
ray

2007-09-04, 7:14 pm

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.

Roby

2007-09-05, 7:14 am

ray wrote:

> On Tue, 04 Sep 2007 22:12:18 +0200, Edmund wrote:
>
>
> 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.
Guy

2007-09-05, 1:19 pm

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!


Unruh

2007-09-05, 1:19 pm

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

ray

2007-09-05, 1:19 pm

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

> ray wrote:
>
>
> 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.

Edmund

2007-09-07, 7:15 pm

Guy wrote:

> Edmund wrote:
>
> 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

Edmund

2007-09-07, 7:15 pm

ray wrote:

> On Tue, 04 Sep 2007 22:12:18 +0200, Edmund wrote:
>
>
> 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

ray

2007-09-07, 7:15 pm

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

> ray wrote:
>
>
> 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.

>
> Thanks you.
>
> Edmund


Kai-Martin Knaak

2007-10-06, 1:13 pm

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

>
> 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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com