LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing n extra hdd in rh 8.0 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-n-extra-hdd-in-rh-8-0-a-34912/)

Luythen 11-08-2002 12:53 PM

Installing n extra hdd in rh 8.0
 
I run RH 8.0 on my secondary machine. It runs on a 6 gb hd, partitioned in two partitions, one 800 mb swap file, and the rest in the main partition. This is the partition I have installed rh on.

As I said I have just installed a 800 mb hdd, I need to partition this disk, format it, and mount it so I can use it as a secondary disk. But I have no idea of where to begin. I cannot se the disk in /etc/fstab, so I dont know where to start looking for it. I cannot run fdisk on hda3, and I assume that hda1 is my largest partition, and that hda2 is the swap partition.

Can anyone guide me through this??

Just a sidenote
I Had no problems partitioning and formatting when I installed RH, the partition manager were great, easy to use and just as user friendley as partition magic.

Widge 11-08-2002 01:11 PM

I don't pretend to be an expert, so I hope I don't get shot down for this :-/

You're almost right with fdisk - type just

> fdisk /dev/hda

rather than

> fdisk /dev/hda1

since you partition a hard drive, not a partition. There's a help menu once you're in.

To format the partition, quit fdisk (saving changes if required), and use mkfs. Running mkfs.reiserfs should format a partition as reiser, mkfs.msdos as FAT, mk.ext2 etc.... Make sure partition type and format type match - although it should complain if they don't. My distro has these tools (SuSE) - not sure about RedHat...

You can now add the partition to fstab and mount as usual.

Hope that's of some help - let me know how you get on and if any of that's not correct?

Cheers! :)

Luythen 11-08-2002 01:21 PM

Thanks I'il try that, But I am a little confused, if RH can see the new hdd wouldn't it write something in the fstab, or shall I do that myself like when permanently mounting a windowspartition??

Widge 11-08-2002 02:02 PM

No linux doesn't add things automagically like that - although there is probably a graphical tool for your distro to add it without having to edit fstab by hand. So basically to the best of my knowledge, yes, you'll have to add it yourself! You can have it automount (if supported by your kernel) by using the appropriate settings in fstab.

Howzat?

Smitty-rh 11-08-2002 03:12 PM

here is a tutorial:

http://www.linuxplanet.com/linuxpla...torials/4232/1/

Luythen 11-09-2002 02:53 AM

Thanks Smitty-rh

Worked like a charm :)


All times are GMT -5. The time now is 04:32 AM.