The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What is your favorite Linux distro? milhan Linux 128 6 Days Ago 08:28 AM
Linux distro or network traffic cop? It's both! iBot UNIX and Linux RSS News 0 12-01-2007 11:05 AM
copying/moving partition antalexi SUN Solaris 4 11-11-2006 06:59 PM
Linux distro wolk UNIX for Dummies Questions & Answers 4 11-29-2002 08:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2003
Mr_Proper Mr_Proper is offline
Registered User
  
 

Join Date: Jun 2003
Posts: 6
Copying a Linux distro from one partition to the other...

Hola. Here is how my partition table looks:

Device Boot Start End Blocks Id System
/dev/hde1 1 1689 13566861 7 HPFS/NTFS
/dev/hde2 * 1690 2783 8787555 83 Linux
/dev/hde3 2784 2813 240975 82 Linux swap
/dev/hde4 2814 4111 10426185 5 Extended
/dev/hde5 2814 4065 10056658+ 83 Linux
/dev/hde6 4066 4111 369463+ 82 Linux swap

I have Debian on hde2 and LFS on hde5. I haven't used Debian for a long, long time now (I only needed it to build LFS), so I want to format hde2 and then copy my LFS partition onto it. Is this safe to do?

If yes, then will a simple `cp / /mnt/debian` suffice?

Last edited by Mr_Proper; 06-17-2003 at 10:51 AM..
  #2 (permalink)  
Old 06-17-2003
Karma's Avatar
Karma Karma is offline
Registered User
  
 

Join Date: Jun 2003
Location: Canada
Posts: 142
As long as your bootloader is on the MBR, then cp -r should do the trick. Remember to redo your config files!
  #3 (permalink)  
Old 06-17-2003
Tux Tux is offline
Registered User
  
 

Join Date: May 2003
Location: UK, Up North
Posts: 113
Yes, most importantly /etc/fstab, bootloader config and root= for the kernel.

You could test it works before fully changing by doing 'chroot /dev/hd[whatever debian was]' and if it doesn't work tweak the config's until it does.
  #4 (permalink)  
Old 06-17-2003
Mr_Proper Mr_Proper is offline
Registered User
  
 

Join Date: Jun 2003
Posts: 6
Cool..

Cool, thanks for the info, guys. I was worried that certain software may have specific harddrive locations embedded in them, but maybe that is just one of the annoying quirks of Windows.

Quote:
As long as your bootloader is on the MBR, then cp -r should do the trick. Remember to redo your config files!
The bootloader is on the Debian partition (hde2). Windows doesn't want to put its bootloader anywhere else except the MBR, so I had to do it that way. I'm going to do what Tux said and chroot to do all the lilo stuff. Hopefully that works. Thanks again, guys.
  #5 (permalink)  
Old 06-18-2003
s93366's Avatar
s93366 s93366 is offline
Registered User
  
 

Join Date: Apr 2002
Location: Sweden / Stockholm
Posts: 168
i would use cp -rp to preserve the rights on the files when you copy!
  #6 (permalink)  
Old 06-18-2003
Karma's Avatar
Karma Karma is offline
Registered User
  
 

Join Date: Jun 2003
Location: Canada
Posts: 142
Install GRUB to the MBR and teach it to boot Windows.

I run RH9 and WinXP.... works for me. Don't be afraid to kill the windows bootloder.
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0