Menu

29 Kasım 2012 Perşembe

Linux Yeni Disk Ekleme

Linux`a yeni bir disk eklendiginde, asagidaki adimlari takip ediyoruz.

$ /sbin/fdisk -l
    Disk /dev/sda: 22.0 GB, 22088384512 bytes
    255 heads, 63 sectors/track, 2685 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
   /dev/sda1   *           1          13      104391   83  Linux
   /dev/sda2              14        2685    21462840   8e  Linux LVM

   Disk /dev/sdb: 6442 MB, 6442450944 bytes
   255 heads, 63 sectors/track, 783 cylinders
   Units = cylinders of 16065 * 512 = 8225280 bytes

   Disk /dev/sdb doesn't contain a valid partition table

$ [root@linux1 /]# pwd
/

$ mkdir data

$ /sbin/fdisk /dev/sdb
    sirasiyla, n,p,1 enter, enter, w

$ /sbin/mkfs.ext3 /dev/sdb1

$ vi /etc/fstab
 ekleyelim      /dev/sdb1               /data           ext3    defaults        1 2

$ /sbin/e2label /dev/sdb1 /data

3 yorum: