Click to See Complete Forum and Search --> : Adding 2nd harddrive


Dirk
10-24-2001, 09:56 PM
I want to add a 2nd small hardrive to my linux box and put just enough Linux on it to have StarOffice 6.0 waiting there to call on when I need it. I think that StarOffice has corrupted something on my main drive as I'm running into odd glitches as well as very sloooooow speed from my 7200 rpm drive , which was screaming along nicely using Mandrake 8.0 until I ; [1] installed StarOffice 6 or maybe the first time I used Mozilla 8.0. This has all happened within the last 2 weeks. I did also download and install Mozilla 9.5 but have only used it once and that was from the Mozilla installer. I haven't found the starting script for 9.5 since.
Can someone help me with a step by step to add and then use the older and much smaller harddrive
so as to keep Staroffice away from my main drive?
Let me add that I;ve ordered Mandrake 8.1 and may decide that the newer Koffice and Konqueror are all I need but that remains to be seen.
Thanks, Dirk ;) :rolleyes: :cool:

X_console
10-24-2001, 10:27 PM
Ok, here's how it's done.

Your first hard drive is /dev/hda. The second hard drive will become /dev/hdb. So attach it and then boot Linux.

Once you've logged in, the first thing you need to do is to create the partitions for second hard drive using fdisk or whatever partitioning program your distro uses. Make sure you set it to a Linux type make it non-bootable. Write the info to disk and then have it formatted into ext2 or reiserfs (whichever one you're using). Let's assume we format it into an ext2 filesystem, and there's only one partition (/dev/hdb1).

Okay, the hard part is finished. Next, we need to mount your new partition so we can install StarOffice in it. Let's say we want to have this partition mounted as /usr/StarOffice. Do the following:

mkdir /usr/StarOffice
mount -t ext2 /dev/hdb1 /usr/StarOffice

This should now mount your second hard drive, and it should be pretty much empty.

The next thing to do is to run the StarOffice installer and have it install in /usr/StarOffice.

Once that's done, we're almost finished. Edit /etc/fstab and add the following line:

/dev/hdb1 /usr/StarOffice ext2 defaults 1 1

This will ensure that the drive and partition is mounted on bootup.

Finally edit /etc/profile and add the following:

export PATH=$PATH:/usr/StarOffice/bin

Now to see if it worked. Make sure you have a rescue disk handy in case something goes wrong. Reboot your system and watch for errors. It should mount your new hard drive. If it fails and locks up, use the boot disk and remove the line that we added in fstab and try again.

Dirk
10-24-2001, 11:42 PM
Hmaratouk, thanks . Ive added the 2nd HDD and fdisked it to one Linux partition. How do I know whether or not I chose the Reisersf when I installed Mandrake??

X_console
10-24-2001, 11:46 PM
Uh... I'm not Hmaratouk... but to answer your second question, type mount and it'll tell you what type you're using.

[ 24 October 2001: Message edited by: X_console ]

Dirk
10-25-2001, 12:17 AM
So you're not. But thanks anyway! I'll do'er.