Click to See Complete Forum and Search --> : Add 2nd Hard Drive
Hello all,
This is very elementry but not for me, I have a Suse Linux running and I need to add a 2nd Hard drive to it. The drive needed to be formated since it has some old windows files, the size of the drive is 7.5G. Here is what I have done so far, run fdisk and deleted all partitions, created hdb1 for swap,and hdb2 for /apps? erbooted, run df command I can't see it? try to mount it, mount /dev/hdb2
erroe mount point /apps doesn't exist
Help,
If your upgrading a HDD you can use the following:
http://www.linuxdoc.org/HOWTO/mini/Hard-Disk-Upgrade/index.html
If you just need to add a HDD then just don't move the file systems over. You can just mount the new HDD as /home2 or something like that.
The guides and the howto's at Linux docs have most of the answers to your questions.
http://www.linuxdoc.org
If you get really stuck just post again.
:)
TC
Have fun computing
[ 18 March 2002: Message edited by: TC ]
knute
03-18-2002, 01:03 PM
So what you need to do is issue the command:mkdir /apps
to create that point for it to mount.
That's like saying you live at 513-1/4 Elm St. but that house number doesn't exist. :eek:
Have a good one. :cool:
Thanks for the reply, but I'm stuck.......
I have a 7.5g that I need 1G as swap and the rest at /apps? that is all, no fancy stuff
I'll check on the 2nd link......
Thanks,
If you have a swap on the first drive you don't have to put one on your other drive.
TC
Have fun computing
[ 18 March 2002: Message edited by: TC ]
How can I ensure that the /apps is going to be on my 2nd drive?
Just mount it as apps in your /etc/fstab:
/dev/hdb2 /apps ext2 errors=remount-ro 0
TC
Have fun computing
[ 18 March 2002: Message edited by: TC ]
ps - sorry your using hdb2
[ 18 March 2002: Message edited by: TC ]
You don't really need the error line either.
/dev/hdb2 /apps ext2 defaults
would suffice also.
The Network administrators guide -nag has much on this also.
TC
Have fun computing
I have update the file system table many times, I just need a simple step by step on how to add a 2nd drive that needs repartitioning and reformatting. Where can I look up the Admin. guide that you have listed.
Thanks,
I think TC meant the System Administators Guide, which is here (http://www.linuxdoc.org/LDP/sag/).
You didn't mention anything about actually having formatted the partitions you created, which is something that needs to be done.
Assuming the drive is the second drive on your primary IDE channel, and that you are using the ext2 filesystem:
1. Make sure the drive's IDE jumper is set to "Slave".
2. Create your partitions with fdisk. I'll assume hdb1 is swap, hdb2 is "apps"
3. Change the ID of the swap partition to be of type SWAP using fdisk's "t" option:Command (m for help): t # change system id of the swap partition
Partition number (1-7): 1
Hex code (type L to list codes): 82
4. Create the proper fillesystem on each partition.
- mkswap /dev/hdb1
- mke2fs /dev/hdb2
5. Create a mount point for your new partition:
- mkdir /mnt/apps (or whatever you want to call it)
6. Modify /etc/fstab to reflect the changes. Add the following lines:
/dev/hdb1 swap swap defaults 0 0
/dev/hdb2 /apps ext2 defaults 0 0
7. Test the installation by typing:
- mount /dev/hdb2 /mnt/apps
8. Activate the swap partition:
- swapon -a
I think that's it. I'm sure someone will let us know if I missed something.
[ 18 March 2002: Message edited by: DMR ]