LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-30-2005, 11:09 AM   #1
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
Copy whole Linux setup?


Ok, I've found a 53Gb partition on my computer that is not being used, my 9Gb root is suffering due to having software on it (amazingly) at 88.4% used.
This is what I want to do, migrate my whole linux setup from /dev/hdb2 to /dev/hda6

Can this be done? will I have to update more than just fstab and grub? will it all fall apart during the copy? If it will work is it just a job of opening gentoo and copying /* to /mnt/linux2 (or wherever)?

Should I just start again with a new install? It is a stage 1 Gentoo btw.
 
Old 04-30-2005, 11:29 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
I would format the new partition and copy perhaps the whole of /usr across to the new drive. Then in fstab you can add a line so that /usr is now mounted from that new partition.

I did something similar when I moved my /home directory to a new partition.
 
Old 05-01-2005, 01:22 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You could use dd to copy the current partition to the new partition. WARNING! Don't interrupt dd while it's working. You stand a good chance to making the current system non-bootable.
Or, you could use DAR to make a full backup, and, after formatting the new partition for Linux, restore to that partition from the current partition. Then edit fstab and grub to point to the new partition, as an additional entry in the grub menu. Once you are satisfied that it will boot, you are free to re-format the first partition, and put it to other uses.
 
Old 05-01-2005, 02:02 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
jollyjoice,

Pretty much all you need to know/do is here:

http://www.linuxquestions.org/questi...69#post1202369
 
Old 05-01-2005, 02:59 PM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Quote:
WARNING! Don't interrupt dd while it's working. You stand a good chance to making the current system non-bootable
Really!?? I have cloned a couple drives with dd and interrupted it a few times and the system was fine. How would it make the current system in a non-bootable state?

-twantrd
 
Old 05-01-2005, 03:17 PM   #6
Diederick
LQ Newbie
 
Registered: Apr 2005
Posts: 25

Rep: Reputation: 15
Installation help Please!!!!

I have been into windows for a long time, and want to convert to Linux. I have SusY 9.2 but want to know how I can install it without losing my current windows operating system. Could somebody please help me understand how I can do this, and if it is posible? Thanx.
 
Old 05-01-2005, 05:25 PM   #7
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Re: Installation help Please!!!!

Quote:
Originally posted by Diederick
I have been into windows for a long time, and want to convert to Linux. I have SusY 9.2 but want to know how I can install it without losing my current windows operating system. Could somebody please help me understand how I can do this, and if it is posible? Thanx.

How about trying to read TONS of documentation on the subject on the internet and trying actually to do something first!!!!!
 
Old 05-01-2005, 07:07 PM   #8
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Quote:
How about trying to read TONS of documentation on the subject on the internet and trying actually to do something first!!!!!
hehe, that's true too.

First, you need to allocate a separate partition to install linux. Remember to back up your windows data in case something goes bad. Honestly, I would just grab a spare machine (doesn't have to be powerful at all) and install linux on that to play around and learn.

-twantrd
 
Old 05-02-2005, 07:40 AM   #9
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
Diederick, just for future reference, don't thread hijack... make your own.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux-to-Linux smb copy (cron job)? bardanes Linux - General 5 10-17-2005 03:45 PM
Setup Samba File Server with Shadow Copy support kstan Linux - Enterprise 2 07-04-2005 02:15 AM
[SUSE 9.1 PROF] How can I copy the setup files to my harddisk and start the setup? TheRealFalcon Linux - Distributions 1 08-07-2004 11:49 PM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM
complet linux NewBie(problems with the downloaded copy of linux) merlin Linux - Software 3 03-25-2002 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration