Prev | Current Page 387 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

You may also need to change the BIOS settings.
2. Boot your computer to Linux.
3. Determine the device name for the hard disk. As root user from a shell, type:
# dmesg | less
4. From the output, look for an indication that the new disk was found. For example, if it??™s a
second IDE hard disk, you should see hdb: in the output. For a second SCSI drive, you
should see sdb: instead. (The hd? and sd? drive letters are incremented as they are
found by the kernel.) Be sure you identify the correct disk, or you will erase all the data
from disks you probably want to keep!
5. Use the fdisk command to create partitions on the new disk. For example, if you are
formatting the second IDE disk (hdb), you can type the following:
# fdisk /dev/hdb
Now you are in fdisk command mode, where you can use the fdisk single-letter command
set to work with your partitions. If the disk had existing partitions on it, you can
change or delete those partitions now. Or, you can simply reformat the whole disk to
blow everything away. Use p to view all partitions and d to delete a partition.
NOTE
173
Learning Basic Administration 4
6. To create a new partition, type the following:
n
7. Choose an extended (e) or primary (p) partition. To choose a primary partition, type the
following:
p
8.


Pages:
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399