Tuesday, July 4, 2017

Cara Mount Hardisk RAID di Linux

Jika langsung menjalankan perintah mount /dev/md0 /media/Data muncul pesan error
mount: /dev/md0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/md0,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
kemungkinan besar partisi tersebut belum di partisi.
Format ke ext4
mkfs.ext4 /dev/md0
jika anda mau pake ext3, btrfs, ntfs dll perintah diatas diganti jadi salah satu dari
mkfs.btrfs   mkfs.cramfs  mkfs.ext2    mkfs.ext3    mkfs.ext4    mkfs.fat     mkfs.minix   mkfs.msdos   mkfs.vfat    mkfs.xfs
Proses ini bisa berlangsung sampe 1-2 menit, jadi harap sabar. contoh output perintah diatas berhasil.
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=128 blocks, Stripe width=256 blocks
244178944 inodes, 976691200 blocks
48834560 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3124756480
29807 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
    4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
    102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:            
done
coba mount ulang
mount /dev/md0 /media/Data/
bila ga ada notifikasi yang muncul berarti mount berhasil, coba cek dengan
df -h
## output
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/cl-root   50G  3.9G   47G   8% /
devtmpfs             5.9G     0  5.9G   0% /dev
tmpfs                5.9G   12K  5.9G   1% /dev/shm
tmpfs                5.9G   17M  5.9G   1% /run
tmpfs                5.9G     0  5.9G   0% /sys/fs/cgroup
tmpfs                5.9G  440K  5.9G   1% /tmp
/dev/mapper/cl-home   66G  2.9G   63G   5% /home
/dev/sdd1            497M  179M  319M  36% /boot
/dev/md0             3.6T   89M  3.4T   1% /media/Data
sukses :) 3.6 TB terbaca


EmoticonEmoticon