LinHES Forums http://forum.linhes.org/ |
|
moving a partition to new drive http://forum.linhes.org/viewtopic.php?f=5&t=9342 |
Page 1 of 1 |
Author: | steeve [ Tue Mar 28, 2006 5:32 pm ] |
Post subject: | moving a partition to new drive |
Our lab uses a Mandrake box for web/data serving (it runs Mandrake 8.0). I'm in the process of upgrading to new hardware and would like to move a partition (/usr0) to a new drive in a new computer. This partition contains all of our users data, and is roughly 70Gb. I know I can do this locally by placing the new drive in the old computer and copying (cp -ax *). The question is: can I do this via NFS? -sTv |
Author: | mac [ Tue Mar 28, 2006 7:38 pm ] |
Post subject: | |
you might have better luck with something like this cd /usr0 tar cpvf /newmachine/usr0.tar . Where /newmachine is mounted over NFS, SMB, etc. etc. untar on the new partition. I have had bad luck with NFS messing up perms, ownership and such when moving whole trees. |
Author: | mjl [ Tue Mar 28, 2006 7:40 pm ] |
Post subject: | |
Hi, If the "ol" Mandrake will support usb, why not simply connect an external drive? Mike |
Author: | tjc [ Tue Mar 28, 2006 8:50 pm ] |
Post subject: | |
I generally use rysnc -av for jobs like this... |
Author: | steeve [ Wed Mar 29, 2006 10:18 am ] |
Post subject: | |
mjl wrote: Hi,
If the "ol" Mandrake will support usb, why not simply connect an external drive? Mike Thanks for all of the tips! The problem with the old Mandrake box is that the tty console is hosed. We got hacked by script kiddies who installed a rootkit virus (tuxkit) and it somehow fmirlkd the console, so no one can login. I haven't been able to figure out how to fix that, but I can administer the box remotely via Webmin and ssh. So I think I can do the USB disk transfer or attach the new drive internally and transfer that way, but I was trying to see if I can do it remotely. Anybody have any clues as to how to attempt to fix the console? When I try to login at the prompt, as soon as I type my password, it bounces me back to the prompt. Log files don't say anything about the login attempts. -sTv |
Author: | EvilTwin [ Wed Mar 29, 2006 4:46 pm ] |
Post subject: | |
Rescue CD. The KnoppMyth install CD will work admirably. |
Author: | mac [ Wed Mar 29, 2006 7:00 pm ] |
Post subject: | |
to fix the console, I think that your going to have to grab a staticlly linked getty and drop it in /sbin/. Booting from a CD is a better option. |
Author: | tjc [ Wed Mar 29, 2006 7:14 pm ] |
Post subject: | |
I think EvilTwin has the right idea. The machine has been compromised and backdoored in who knows how many ways. Time for a major clean up. - Boot from the CD, then exit to a shell prompt. - Mount your /myth partition or VG as /myth, - Mount your / partition as /mnt/hda1 (presuming that's it's device) and make a symlink to the DB directory. - Run the backup script manually and make a supplementat backup as discussed in the R5B7 upgrade hints. You may need to do some manual work to get the right stuff from /etc and /home/mythtv in the backup... What's really important is the DB however. - While you're at it scan the /myth partition for any executable files and at least consider purging them with extreme prejudice. BTW - For anyone who has ever wondered why I'm such a painful itch about files having the "right", and only the right, permissions this is one reason. It makes cleanups like this much easier. - Reboot from the CD and run and auto upgrade. This should do a pretty good job of deworming your machine. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |