Unix Technical Forum

Copying/Moving Slackware from harddrive to harddrive

This is a discussion on Copying/Moving Slackware from harddrive to harddrive within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I want to move Slackware from a 40GB harddrive to a 60GB. Is there a way to copy the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 12:36 PM
Bob Someguy
 
Posts: n/a
Default Copying/Moving Slackware from harddrive to harddrive

I want to move Slackware from a 40GB harddrive to a 60GB. Is there a way
to copy the whole partition including the MBR? I remember seeing a way to
do it a while back, but forgot where it was anymore.

Selex
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 12:36 PM
Kai Brust
 
Posts: n/a
Default Re: Copying/Moving Slackware from harddrive to harddrive

Bob Someguy <bob@someguy.com> wrote:
> I want to move Slackware from a 40GB harddrive to a 60GB. Is there a way
> to copy the whole partition including the MBR? I remember seeing a way to
> do it a while back, but forgot where it was anymore.
>
> Selex


Just use "cp -a" from outside the system (a live-cd for example). There
is no need for copying the MBR too. You have to modify /etc/fstab and
lilo.conf anyway, so you can chroot afterwards into you new system and
run /sbin/lilo. If chroot doesn't work for you, boot the system with the
install cd (follow the instructions at the boot prompt) to run lilo.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 12:37 PM
Ed
 
Posts: n/a
Default Re: Copying/Moving Slackware from harddrive to harddrive

> Just use "cp -a" from outside the system (a live-cd for example). There
> is no need for copying the MBR too. You have to modify /etc/fstab and
> lilo.conf anyway, so you can chroot afterwards into you new system and
> run /sbin/lilo. If chroot doesn't work for you, boot the system with the
> install cd (follow the instructions at the boot prompt) to run lilo.


I think that booting from the liveCD then using "dd" should do it.
FYI, what I did when I changed laptop was backup laptop1, install basic
system on laptop2. Overwrite laptop2 with backup of laptop1 and check
/boot and /etc/lilo.conf. You might want to make a custom kernel if
changing hardware.
E.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 12:37 PM
Jeffrey Froman
 
Posts: n/a
Default Re: Copying/Moving Slackware from harddrive to harddrive

Ed wrote:

> I think that booting from the liveCD then using "dd" should do it.


"dd" will certainly make a perfect copy of the drive, but will create the
same 40GB filesystem on the new disk. The other 20GB will be wasted (if I
understand "dd" correctly.)

Jeffrey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 12:37 PM
Thomas Overgaard
 
Posts: n/a
Default Re: Copying/Moving Slackware from harddrive to harddrive


Bob Someguy wrote :

> I remember seeing a way to do it a while back, but forgot where it
> was anymore.


Was it this Hard-Disk-Upgrade HOWTO?

/usr/doc/Linux-HOWTOs/Hard-Disk-Upgrade
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 12:38 PM
Eric Hameleers
 
Posts: n/a
Default Re: Copying/Moving Slackware from harddrive to harddrive

Kai Brust schreef:

> Bob Someguy <bob@someguy.com> wrote:
>
>> I want to move Slackware from a 40GB harddrive to a 60GB. Is there a way
>> to copy the whole partition including the MBR? I remember seeing a way to
>> do it a while back, but forgot where it was anymore.
>>
>> Selex

>
>
> Just use "cp -a" from outside the system (a live-cd for example). There
> is no need for copying the MBR too. You have to modify /etc/fstab and
> lilo.conf anyway, so you can chroot afterwards into you new system and
> run /sbin/lilo. If chroot doesn't work for you, boot the system with the
> install cd (follow the instructions at the boot prompt) to run lilo.
>
>


Using "cp -a" will do fine, if you take a few precautions

* Boot from the Slackware install CD2;
* Create partitions on the new disk like you have them on the old disk
(only a little bigger, let them fill up the wole disk)
* Create two mountpoints for the two harddisks, like
"mkdir -p /disks/old; mkdir -p /disks/new"
and mount the two hard disks' partitions under these directories (for
simplicity i am assuming you've only got one partition per drive, if
not repeat the procedure for each partition)
* Check the contents below the "/disks/old" mountpoint and if you see
a "proc" or "lost+found" directory below, you should /not/ copy them over!
* Run something like:
"cd /disks/old; for i in bin boot home ; do cp -a $i /disks/new/ ;
done" where the "bin boot home" bit should reflect what you saw under
/disks/old ... excluding any proc and lost+found directories.
* After copying, remove the old disk, boot from the boot CD again and
take note of the option to boot the linux on your harddisk instead of
the linux on the cd
* Once you booted up and logged on, run "lilo", remove CD, and reboot
again - done!

Cheers, Eric
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 05:02 PM.


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