LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Moving linux to second hard drive (https://www.linuxquestions.org/questions/linux-general-1/moving-linux-to-second-hard-drive-91415/)

rjayaram 09-10-2003 06:24 PM

Moving linux to second hard drive
 
Hello,
Presently, I have both Windows 98 and Mandrake 8.0 linux installed on the same hard drive. I wish to buy a new hard drive, and move linux to the new hard drive. How should I go about this?

Thank you.

Eqwatz 09-10-2003 06:39 PM

1 Grub or lilo?
2 Cable, DSL, or Dial-up on net connection?
3 Utilities?

cav 09-10-2003 06:41 PM

Ive never done anything like that, but it seems like there would be a LOT of config changes involved. I would say get the new drive installed, re-install mandrake onto that (keep your old install for the time being), then when you are safely in your new installation, mount your old mdk partition and copy out whatever you want to keep.

Eqwatz 09-11-2003 09:20 AM

It is not that big a deal.

The is no need to ever do a re-install (IF YOU LOGGED EVERYTHING) unless you have thrashed/hosed the filesystems, or you hosed all of the settings and services and don't know how to return to the defaults.

zLinuxz 09-11-2003 09:55 AM

rjayaram

the way to go abou this, is to go and get DriveCopy by PowerQuest, with this you can copy an entire partition of your hardrive and then put it in your new hardrive, without any problems.

If you have some questions, ask them, good luck.

Eqwatz 09-11-2003 11:33 AM

Yes, you will have to edit some files--do some reading to learn how.

Eqwatz 09-11-2003 11:39 AM

zlinuxz forgot about lilo/grub.

Do some reading : Search these pages and read faqs. Also, use http://www.google.com/linux

Don't rush out and buy any new software. See my first post and tell people what resources you currently have. This will effect the way someone would go about telling you how to do it.

acid_kewpie 09-11-2003 11:51 AM

how on earth does a persons boot manager or net connection have anythign to do with this at all?!?!?

no extra software is needed, this is really pretty easy to do in linux, and you get to learn some cool stuff too....

http://www.linuxquestions.org/questi...threadid=80464

Eqwatz 09-11-2003 04:53 PM

If he moves /boot and / to another hard drive he needs to run lilo/grub again. I thought he was moving the whole shoot'in match to the other hard drive. Although if he moves everything, flags it as bootable and resets his bios to boot from that drive he can run lilo/grub again that way.

I read the cpio and "dump piped through restore" and buggered them up. (I always seem to try this at 4:00AM.)

The net connection was for downloading RIP. Good insurance.

The utilities well, are utilities. I can use fdisk pretty well now, but it took a while to learn to use it. I always try to use the windows compatable programs to make the extended partition in case I want to use some space on the drive for windows later. If he has ghost, PM or acronis why not use them?

pe2338 09-11-2003 04:59 PM

I don't have to move everything..
 
I have just deleted and formated the old NTFS winbloze 2k partition ...
Now I have about 3GB more and I don't know how should I use it. I mean I don't know where is there more need for it ??

Current free space status:

Filesystem Size Used Avail Use% Mounted on
/dev/hda1 2.3G 2.0G 195M 92% /
/dev/hda5 312M 190M 106M 65% /home
/dev/hda6 15G 15G 20M 100% /mnt/movie
/dev/hda7 2.2G 1.9G 274M 88% /mnt/data
/dev/hda8 5.0G 4.8G 223M 96% /mnt/kits
/dev/hda2 3.1G 1.2G 1.8G 40% /mnt/dir


the ex NTFS partition is the /mnt/dir partition.

I was thinking of using it for /usr but I don't know how to do the switch safely between the /dev/hda2 and the /usr space.

I thought about going to single user, removing the /usr from the / and mount the /dev/hda2, as it already has the info from /usr copied... I am afraid that erasing /usr for the short period that this is missing, my system will go nuts!

and I would like to make something to keep the downloaded debs on a different partition... Is there another place for them than the /var/cache/apt/archives ? (Using debian) :D Any ideas?

Eqwatz 09-11-2003 05:23 PM

Any directory not involved in the boot process can be mounted by fstab entries.

This means you can create a partition for your downloaded apt pkgs and mount it to the /var/cache/apt/archive directory using fstab. (mount over existing to test it before nuking. Just to be sure.)

I have /usr in its own partition. In RH9 the darn thing is 2.4Gs. I am too paranoid to copy /usr on a "hot" system. I boot up with RIP and do stuff like that. I'd rather be thought stupid and paranoid than have to fix a hosed system. I'm probably wrong.

BTW, I love the LABEL=(volume label) stuff in fstab. All my partitions are labelled so that restored images work, no matter where I put them.


All times are GMT -5. The time now is 02:39 AM.