Click to See Complete Forum and Search --> : installin package on different HD


KL@NYC
01-27-2001, 08:52 PM
Hi guys,

This maybe a newbie question, but i do need help badly.
Ok i have p200 w/750mb HD and now this damn HD is full cant install any apps on it.
I went out and bought me a 10gig HD, now how do i install RPM package into myh 2ndry HD?.

OS:Mandrake 7.1


thanks

demian
01-27-2001, 09:50 PM
You cannot just tell the package to install in some place you chose because linux relies on finding files in certain places. What you really want to to is to move the partitions that are filling up to your new harddrive. I don't know a lot on your system setup so please post the output of df -h first. I will check back tomorrow and see how I can help.

KL@NYC
01-28-2001, 12:12 PM
no one done this process b4?, im sure some of our gotta done it b4.
I will give you the df -h tomorrow at my office, thats where my OS is at.

James Bond
01-28-2001, 12:18 PM
what you will need to do is put the drive in your machine, then, format it and partition it as needed. If you don't know how to do this, check the NHF.

Then, you will need to mount the new partitions somewhere. Ex. mount -t ext2 /dev/hdb1 /mnt/tmp

will mount the first partition of your 2nd drive at /mnt/tmp. Then, you will need to do cp -R /home /mnt/tmp
mv /home /home.old
umount /mnt/tmp
mount -t ext2 /dev/hdb1 /home

then, add to the fstab a line like

/dev/hdb1 /home ext2 defaults 1 1


them, rm -rf /home.old

get someone else to verify all of these steps. I don't know everything from heart. There should be an NHF about this, check it out.

-JB

demian
01-28-2001, 12:18 PM
Originally posted by KL@NYC:
no one done this process b4?, im sure some of our gotta done it b4.
I will give you the df -h tomorrow at my office, thats where my OS is at.



Ok if you're impatient maybe we can try it without the df output:
Do you know how many partitions there are on your system and their respective mount points. Also do you know which of the partitions are filling up? And the new harddrive: Will it only hold linux or are there other OSs already installed?

James Bond
01-28-2001, 12:21 PM
Originally posted by demian:
Do you know how many partitions there are on your system and their respective mount points. Also do you know which of the partitions are filling up? And the new harddrive: Will it only hold linux or are there other OSs already installed?

Very good points that I forgot about.

By the way, here is the NHF about adding a hard drive
http://www.linuxnewbie.org/nhf/intel/hardware/hd_add.html

-JB