Red Hat Linux Fedora For Dummies [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Red Hat Linux Fedora For Dummies [Electronic resources] - نسخه متنی

Jon Hall

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید






Adding a Disk Drive

Sooner or later, life catches up with us and you’re likely to need or want a bigger house or car or diamond in your tooth, or whatever. The same goes for disk space, in which case you want to add another disk drive.

The first step to increasing your drive space is to add a new storage device. It can be a hard drive (IDE or SCSI), but also a USB or FireWire memory stick. These steps describe the general process of adding a storage device and then formatting and mounting it:



Install the hard drive or insert the USB or FireWire device.

If the device is an IDE or SCSI hard drive, turn off the power to your computer and monitor. Unplug the power cable and open the computer case. (Don’t cut yourself on the sometimes sharp metal edges when reaching into the computer.) Use the antistatic strap that comes with the hard drive; follow the instructions included with the strap.

Technical Stuff Most PCs use IDE controllers. SCSI-based PCs are more expensive and aren’t commonly found in consumer PCs; these types are more common in the commercial realm. IDE-based PCs have two IDE controllers. Each device can control as many as two IDE devices. Ribbon cables connect the controller to the devices.

You have to configure your new disk to function as a slave device if it’s connected to a ribbon cable or IDE controller that already has another device (hard drive or CD-ROM) attached.

If the device is a USB or FireWire memory stick, skip to Step 3.



Reboot your computer and run the dmesg command from a GNOME Terminal window.

If you added an IDE drive, look for the mention of an hdx device, where x is replaced with the letter b, c, d, or e. This information tells you that your kernel "saw" the new hard drive as it booted:

hdb: HITACHI_DK227A-50, 4789MB w/512KB Cache,CHS=610/255/63

If you added a SCSI drive, the general device type is sdx.



Partition the new drive.

Run this command for an IDE drive:

fdisk /dev/hdb

Use the command fdisk /dev/sda for a USB or FireWire memory stick. The memory stick appears as a SCSI device, such as /dev/sda, /dev/sdb, or /dev/sdc, depending on your computer’s configuration.

Tip You can find out more information about fdisk at www.redhat.com/docs/ manuals/linux/RHL-10-Manual/install-guide/.



Create a file system on the new partition (change the devices as appropriate).

When using an IDE or SCSI drive, for example, enter this command:

mkfs /dev/hdb

For a USB memory stick, enter this command:

mkfs /dev/sdc



Create a new directory in which to mount the new device:

mkdir /space



Mount the newly formatted drive by using the appropriate command:

mount /dev/hdb /space

or

mount /dev/sdc /space



Your drive has been physically added to your system and partitioned, and you have added file systems. The drive is ready to join the rest of the file system.

/ 194