LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-20-2006, 12:56 AM   #1
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Rep: Reputation: 30
Bigger Hard Drive - Clone?


I have an 120 GB hard drive. I started to do some screwed video editing and junk on here so... I need a bigger drive. I ordered a 250GB Seagate.
Rather than reinstall my whole Mandriva install, I was hoping there was an easy to clone the drive and have all the extra space distributed among each system partition.

http://img135.imageshack.us/my.php?i...pshot17ld6.jpg
 
Old 11-20-2006, 02:36 AM   #2
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
see the LQ thread "learn the dd command"
maybe google for ghost 4 linux or something like that
 
Old 11-20-2006, 07:27 AM   #3
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
But the dd command won't allocate the leftover space.
Sounds like this is my excuse to upgrace to 2007.
 
Old 11-20-2006, 07:55 AM   #4
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
The operating system should not take more than 10 Gb
on the existing HD
You can have two HD plugged into your PC at any one time
You have no reason to migrate the OS from one HD to the other
Just create more partitions
just move the big non-OS files from one HD to the other
with the cp command
see man cp and the R switch

AM i missing something here?
 
Old 11-20-2006, 08:04 AM   #5
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
the new hard drive will be faster, so yes that's a reason to migrate.
 
Old 11-20-2006, 08:27 AM   #6
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
no it is not

you can have the swap on the new HD, yes this will be faster
but you are better of seeing the OS on a "slowish" HD
because you will not notice the improvement by moving it to the new HD

and you will feel the pain of migrating
 
Old 11-20-2006, 09:15 AM   #7
Snump
Member
 
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Emmanuel_uk
no it is not

you can have the swap on the new HD, yes this will be faster
but you are better of seeing the OS on a "slowish" HD
because you will not notice the improvement by moving it to the new HD

and you will feel the pain of migrating

Decisions, decisions....
I would like to go to 2007... But its a pain. I don't like pain.
 
Old 11-20-2006, 09:23 AM   #8
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
you can have 2007 on the new HD, fresh install
still dual boot 2006 and 2007
then move accross some data on the bigger HD

your question is not about cloning really.
Unless you have a 50 Gb partition called /video
and you want to migrate that to a new partition on big HD
called /video2 being 200 Gb
you can use dd if=/dev/video of=/dev/video2 then resize2fs or whatever
but really you could just use cp -R

I do not understand your problem
post fdisk -l
and du or df
 
Old 11-20-2006, 10:23 AM   #9
GNUlancer
Member
 
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59

Rep: Reputation: 15
Lightbulb The solution

The easiest solution if you don't want to use some ghost4linux, etc. is to make new partitions and copy your files on them. Then reinstall GRUB or LILO.

Let's assume that your new partitions will be, say, hdb1 and hdb2

You can partition your new HD with cfdisk (it's text-based, run in terminal), or diskdrake, or whatever else;

You can create filesystems on those partitions (in winblows -- 'format') with diskdrake, or, better
Code:
mkfs.ext3 /dev/hdb1; mkfs.ext3 /dev/hdb2
Diskdrake itself surely uses mkfs for creating filesystems

Then mount these partitions. I guess you're using standard distro's automounting, so just reboot.

To copy all the files to new partitions, type
Code:
cp -ax / mnt/hdb1; cp -a /home mnt/hdb2
..and stay patient

Then reconfigure and reinstall GRUB or LILO

Voila!

If something's gone wrong or you don't know how to accomplish some step, you may post here
 
Old 11-21-2006, 02:22 AM   #10
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
+1 for cp (I keep hinting)
Quote:
Voila!
Et non...

This is not enough, you still have to edit /etc/fstab
in which / is pointing to the wrong HD
and probably all the other partitions, including /home
(depending on the new organisation)
(and this will be best edited with vi in rescue mode
Snump does that make sense "vi in rescue mode")

Swap will be on hda which is good

Still do not see the point in copying the OS
on hdb when two HDs are available
 
Old 11-21-2006, 08:22 AM   #11
GNUlancer
Member
 
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59

Rep: Reputation: 15
Quote:
Originally Posted by Emmanuel_uk
+1 for cp (I keep hinting)

Et non...

This is not enough, you still have to edit /etc/fstab
in which / is pointing to the wrong HD
and probably all the other partitions, including /home
(depending on the new organisation)
(and this will be best edited with vi in rescue mode
Snump does that make sense "vi in rescue mode")

Swap will be on hda which is good

Still do not see the point in copying the OS
on hdb when two HDs are available
Could you tell me, what the hell he need to run vi in 'rescue mode'?
And what by the way is that 'rescue mode'?
Hello! It's not windows! To edit /etc/lilo.conf you just need an editor (any) and a running distro (absolutely any if has lilo, and most distros has it)

Still if any problems - post here

Last edited by GNUlancer; 11-21-2006 at 08:39 AM.
 
Old 11-21-2006, 08:54 AM   #12
RVDowning
Member
 
Registered: Jan 2006
Location: Atlanta, GA
Distribution: Mandriva 2006
Posts: 75

Rep: Reputation: 15
The way I did the same thing was to backup the system to dvd using mondoarchive. I then created new partitions on the new drive using mcc. After that was done, I used the restore function of mondoarchive to restore into the newly created partitions and made that the default boot.

So, I actually created a dual boot into two different 2007 systems this way.
 
Old 11-21-2006, 09:14 AM   #13
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
Could you tell me, what the hell he need to run vi in 'rescue mode'?
He/she does not, but
well because you said
Quote:
cfdisk
mkfs.ext3 /dev/hdb1; mkfs.ext3 /dev/hdb2
not a windows command, is it?

I was being "sarcastic", and I was asking if I made sense
Surelly he/she can find kedit, kwrite etc.
So no flame war please
Inasmuch you said cfdisk and disdrake, I can say vi!

But there was a bit of logic in booting from a live distro
(here the rescue mode of mandriva cd) just to go and edit /etc/fstab,
even if complicated, there is something to learn for example

I am hinting I cannot see any point in transfering the OS
from one HD to another, so I make it a bit complicated

Quote:
To edit /etc/lilo.conf
I do not know if you have noticed you gave uncomplete explanation
in the first place forgeting about /etc/fstab.
I am not talking about lilo.
And if something goes wrong with grub, it is
always handy to quickly edit it with vi rather than having
to dig for knoppix or whatever live distro

Quote:
Hello! It's not windows!
Hoops just noticed, zinblows key is not working. I wondered why.
Beg pardon
Sorry for the bad joke. You just prompted me.

Cool ok. I am over-reacting, cannot stop me. Peace
 
Old 11-21-2006, 09:31 AM   #14
GNUlancer
Member
 
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59

Rep: Reputation: 15
Smile

Quote:
Originally Posted by Emmanuel_uk
So no flame war please
Ok, ok.. Sorry
I just don't think vi is good for non-programmer, cause it's commands aren't intuitive (like ^S to save or ^O to open), and it takes time to learn them good.
 
Old 11-21-2006, 09:37 AM   #15
GNUlancer
Member
 
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59

Rep: Reputation: 15
Quote:
Originally Posted by Emmanuel_uk
zinblows key is not working
About winblows key: if you're in KDE, you should set 3 or 4 modifier keys in kcontrol -- Shotcuts to make it work. Have a good day

Last edited by GNUlancer; 11-21-2006 at 09:38 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ghosting two hard drives? one bigger than other hedpe Linux - Hardware 2 08-09-2006 09:20 AM
I need to clone a laptop hard drive mike160 Linux - Laptop and Netbook 9 04-23-2006 06:23 PM
Clone a hard drive twantrd Solaris / OpenSolaris 10 02-05-2005 03:15 AM
Linux clone to bigger HD RJDavison Linux - Software 3 05-27-2004 11:55 AM
Easy way to clone linux installed hard drive mobassir Linux - Software 6 01-12-2004 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:14 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