Unix Technical Forum

migrating slackwareOS to a new hard drive?

This is a discussion on migrating slackwareOS to a new hard drive? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Widgeteye wrote: > > On 2004-08-04, W <still@none.com> wrote: > > In news:Pine.LNX.4.58.0408031001140.11811@worker.hunt bros.net, William > > Hunt bitched ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 02-19-2008, 02:42 PM
James
 
Posts: n/a
Default Re: migrating slackwareOS to a new hard drive?

Widgeteye wrote:
>
> On 2004-08-04, W <still@none.com> wrote:
> > In news:Pine.LNX.4.58.0408031001140.11811@worker.hunt bros.net, William
> > Hunt bitched and moaned:
> >> (5) use tar to copy live data from old mountpoints to new mountpoints.
> >> for example:
> >>
> >> OLDMNT=/
> >> NEWMNT=hdb2
> >> cd ${OLDMNT}
> >> tar --one-file-system -cpvf - . | ( cd ${NEWMNT} ; tar -xpf - )

> >
> > `tar` does not recreate /dev properly, the last time I looked.
> >
> >

>
> Maybe I do stuff wrong but I just go into the root directory of the old
> drive and do this, which works everytime BTW. In fact just did it last
> week.
>
> cd /
> cp -a * /newdrive
>

Make sure that you don't have any CDROMs mounted or they will get cpied
too!

jamess
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 02-19-2008, 02:42 PM
Rich Grise
 
Posts: n/a
Default Re: migrating slackwareOS to a new hard drive?

James wrote:

> Widgeteye wrote:
>>
>> On 2004-08-04, W <still@none.com> wrote:
>> > In news:Pine.LNX.4.58.0408031001140.11811@worker.hunt bros.net, William
>> > Hunt bitched and moaned:
>> >> (5) use tar to copy live data from old mountpoints to new mountpoints.
>> >> for example:
>> >>
>> >> OLDMNT=/
>> >> NEWMNT=hdb2
>> >> cd ${OLDMNT}
>> >> tar --one-file-system -cpvf - . | ( cd ${NEWMNT} ; tar -xpf - )
>> >
>> > `tar` does not recreate /dev properly, the last time I looked.
>> >
>> >

>>
>> Maybe I do stuff wrong but I just go into the root directory of the old
>> drive and do this, which works everytime BTW. In fact just did it last
>> week.
>>
>> cd /
>> cp -a * /newdrive
>>

> Make sure that you don't have any CDROMs mounted or they will get cpied
> too!


I've heard that it can have problems copying /dev/* and /proc/*; at least
they won't be correct at the target.

And I think cp gets confused when it starts trying to copy /newdrive onto
itself.

Have Fun!
Rich

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 02-19-2008, 02:42 PM
jaos
 
Posts: n/a
Default Re: migrating slackwareOS to a new hard drive?

> D. Phanwrote:
hello there
>
> My old hard drive in which is running slackware 10.0 is now so noisy


> with high frequency. I now wanna move whole contents in the old to a

new
> harddisk. Please tell me your experience about that
> much appreciated,
> regards
> d.phan
> my system: slackware 10 (ker-2.4.26/cpu 450mhz - 128MB ram) with no

X
> and X apps, and managed by puTTY (ssh) from XP clients


If you use slackware's package management, you can take the contents
of /var/log/packages replicate the packages you have installed onto
the new disk (whether on the same machine or another). When the new
disk is installed and mounted to say /new_disk, you set
ROOT=/new_disk and use pkgtools to install each package listed in the
original boxes /var/log/packages.

I use this all to the time to build usermode linux filesystems with
slapt-get:

ls /var/log/packages/|ROOT=/new_disk xargs -r slapt-get --install

Message posted via:
=====================
www.linuxpackages.net/forum
www.linuxpackages.net
Expanding the world of Slackware
=====================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 02-19-2008, 02:43 PM
James
 
Posts: n/a
Default Re: migrating slackwareOS to a new hard drive?

Rich Grise wrote:
>
>
> I've heard that it can have problems copying /dev/* and /proc/*; at least
> they won't be correct at the target.
>
> And I think cp gets confused when it starts trying to copy /newdrive onto
> itself.


Before I installed Slack 10 I cpied everything to the #$@@$ IDE HDD. It
copied /dev just fine. One time not to long ago I was installing some
software and the docs told me to run a chmod command on a program in
/dev. I actually copied and pasted the command into the terminal so I
wouldn't screw it up. It turned out that I didn't have the dev file that
was supposed to be chmoded and it corrupted the *whole* /dev directory.
If I tried to log on as anybody but root I would get an error message
about not enough pttys being available. I just mved /dev to dev.old and
reinstalled /dev from the Slack install CD. It worked out quite well. So
much for RTFM and actually doing what it says!

Keep on Slackin'

jamess
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 02-19-2008, 02:51 PM
Widgeteye
 
Posts: n/a
Default Re: migrating slackwareOS to a new hard drive?

On 2004-08-13, Rich Grise <null@example.net> wrote:
> James wrote:
>
>> Widgeteye wrote:
>>>
>>> On 2004-08-04, W <still@none.com> wrote:
>>> > In news:Pine.LNX.4.58.0408031001140.11811@worker.hunt bros.net, William
>>> > Hunt bitched and moaned:
>>> >> (5) use tar to copy live data from old mountpoints to new mountpoints.
>>> >> for example:
>>> >>
>>> >> OLDMNT=/
>>> >> NEWMNT=hdb2
>>> >> cd ${OLDMNT}
>>> >> tar --one-file-system -cpvf - . | ( cd ${NEWMNT} ; tar -xpf - )
>>> >
>>> > `tar` does not recreate /dev properly, the last time I looked.
>>> >
>>> >
>>>
>>> Maybe I do stuff wrong but I just go into the root directory of the old
>>> drive and do this, which works everytime BTW. In fact just did it last
>>> week.
>>>
>>> cd /
>>> cp -a * /newdrive
>>>

>> Make sure that you don't have any CDROMs mounted or they will get cpied
>> too!


Well ya do have to use a little common sense.


>
> I've heard that it can have problems copying /dev/* and /proc/*; at least
> they won't be correct at the target.
>
> And I think cp gets confused when it starts trying to copy /newdrive onto
> itself.


Never ran into a problem. And have been doing it this way since
the early 90's.
Nothing has ever been broken by the process. Maybe I m just damned lucky.
For years.

>
> Have Fun!
> Rich
>



--
--------------------------------------------
[Thou] rump-fed ronyon!
-William Shakespeare, Macbeth
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 10:31 AM.


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