LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-10-2003, 06:24 PM   #1
rjayaram
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
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.
 
Old 09-10-2003, 06:39 PM   #2
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
1 Grub or lilo?
2 Cable, DSL, or Dial-up on net connection?
3 Utilities?
 
Old 09-10-2003, 06:41 PM   #3
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
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.
 
Old 09-11-2003, 09:20 AM   #4
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
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.
 
Old 09-11-2003, 09:55 AM   #5
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
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.
 
Old 09-11-2003, 11:33 AM   #6
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
Yes, you will have to edit some files--do some reading to learn how.
 
Old 09-11-2003, 11:39 AM   #7
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
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.
 
Old 09-11-2003, 11:51 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
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
 
Old 09-11-2003, 04:53 PM   #9
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
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?

Last edited by Eqwatz; 09-11-2003 at 05:00 PM.
 
Old 09-11-2003, 04:59 PM   #10
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Talking 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) Any ideas?
 
Old 09-11-2003, 05:23 PM   #11
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
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.
 
  


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
Moving linux partition from original hard drive to another, howto??? Fear58 Linux - General 22 02-15-2008 04:26 PM
Moving Hard Drive Files Zawi Linux - General 10 08-17-2005 11:08 AM
moving to a new hard drive n1wil Linux - Software 4 05-21-2003 02:38 PM
moving my hard drive illtbagu Linux - General 2 02-08-2003 04:56 PM
Moving linux hard drive to primary slave flyboy320 Linux - General 4 01-23-2002 11:30 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration