Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-20-2006, 12:56 AM
|
#1
|
Member
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229
Rep:
|
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
|
|
|
11-20-2006, 02:36 AM
|
#2
|
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:
|
see the LQ thread "learn the dd command"
maybe google for ghost 4 linux or something like that
|
|
|
11-20-2006, 07:27 AM
|
#3
|
Member
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229
Original Poster
Rep:
|
But the dd command won't allocate the leftover space.
Sounds like this is my excuse to upgrace to 2007.
|
|
|
11-20-2006, 07:55 AM
|
#4
|
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:
|
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?
|
|
|
11-20-2006, 08:04 AM
|
#5
|
Member
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229
Original Poster
Rep:
|
the new hard drive will be faster, so yes that's a reason to migrate.
|
|
|
11-20-2006, 08:27 AM
|
#6
|
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:
|
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
|
|
|
11-20-2006, 09:15 AM
|
#7
|
Member
Registered: Sep 2004
Location: Pennsylvania, USA
Distribution: Trying to decide
Posts: 229
Original Poster
Rep:
|
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.
|
|
|
11-20-2006, 09:23 AM
|
#8
|
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:
|
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
|
|
|
11-20-2006, 10:23 AM
|
#9
|
Member
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59
Rep:
|
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
|
|
|
11-21-2006, 02:22 AM
|
#10
|
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:
|
+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
|
|
|
11-21-2006, 08:22 AM
|
#11
|
Member
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59
Rep:
|
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.
|
|
|
11-21-2006, 08:54 AM
|
#12
|
Member
Registered: Jan 2006
Location: Atlanta, GA
Distribution: Mandriva 2006
Posts: 75
Rep:
|
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.
|
|
|
11-21-2006, 09:14 AM
|
#13
|
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:
|
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
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
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
|
|
|
11-21-2006, 09:31 AM
|
#14
|
Member
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59
Rep:
|
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.
|
|
|
11-21-2006, 09:37 AM
|
#15
|
Member
Registered: Oct 2006
Location: Russia
Distribution: Slax KillBill
Posts: 59
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|