RE: Adding as a second hard drive

2006-06-02 Thread Tamouh H.
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam M
Sent: June 1, 2006 8:04 PM
To: freebsd-questions@freebsd.org
Subject: Adding as a second hard drive

Yes, I was wondering what the best way was to add a second hard drive to my 
existing FreeBSD system, I searched the Handbook, but cannot find it.
___


It is in the Handbook, follow it to the teeth and you should be OK:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html

Tamouh

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Adding as a second hard drive

2006-06-01 Thread Adam M

Yes, I was wondering what the best way was to add a second hard drive to my
existing FreeBSD system, I searched the Handbook, but cannot find it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adding as a second hard drive

2006-06-01 Thread Derek Ragona

You need to tell us what version of FreeBSD you are running.

You will need to add the drive physically.  You need to choose how the 
drive will be used:  single filesystem or multiple filesystems.  What mount 
points will you use for these file systems.


In general you will need to partition the new drive drive, then run newfs 
on the new partitions to create the file systems.  Once the filesystems are 
created you will need to edit /etc/fstab to set the mounting of these 
filesystems.  I would recommend you reboot to test the setup of the new mounts.


-Derek

At 07:03 PM 6/1/2006, Adam M wrote:

Yes, I was wondering what the best way was to add a second hard drive to my
existing FreeBSD system, I searched the Handbook, but cannot find it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adding as a second hard drive

2006-06-01 Thread Jerry McAllister
 
 Yes, I was wondering what the best way was to add a second hard drive to my
 existing FreeBSD system, I searched the Handbook, but cannot find it.

Basic process:

Get a good, that either works with your existing controller or also
get a controller with is.   eg.  If it is SCSI and you only have SATA
you will need another controller, etc.

Install it in the box and boot the machine.

Observe the boot messages or use dmesg to make sure it is recognized
and that you know how the system is identified.  It will probably 
be either da1 or ad1 depending on whether it is SCSI or SATA.

Decide on how you want the new disk divided.

Use fdisk to create a FreeBSD slice on the disk

Use bsdlabel(or disklabel for 4.xxx systems and before)
  to create at least one partition within the slice.

Use newfs to build a filesystem on all of the partitions you create
  with bsdlabel.

create a mount point  (for example   'mkdir /newdsk')

Edit the  /etc/fstab  file to add an entry to make it mount upon boot.

Mount the new disk(For example   'mount /newdsk' or just  'mount -a')

The man pages for fdisk, bsdlabel and newfs have all the information 
you need but can be a little confusing.   In the bsdlabel man page
there are some examples near the bottom that are good.  They suggest
using  dd to overwrite anything that might preexist in the first sector.
That isn't always needed, but can fix things if that sector is a problem.
Actually, I usually write around the first 100 sectors just for good
measure when I need it.

The only more complicated things are if you want to make more than
one partition and/or slice, and if you want to be able to boot from it.
More slices and partitions amounts to the same, but just require some
calculations.   Making it bootable requires using -B on both fdisk
and bsdlabel.

All this can also be done using sysinstall, but I prefer doing it
straight up with the regular tools.

Read the man pages.

Good luck,

jerry


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]