slackwarePada artikel Slackware sebelumnya si Slack dijadikan Proxy server. Nah bagaimana cara menambahkan harddisk baru untuk kepentingan tambahan caching drive atau yang lainnya.

Untuk itu, silakan ssh mesin si Slack. Masukan user root & passwordnya sampai prompt berganti ke #.

Saya install harddisk baru di IDE1 (slave dari IDE0). cara melihat semua harddisk yang terdeksi di slack:

# dmesg | grep disk
[ 2.831420] sd 2:0:0:0: [sda] Attached SCSI disk
[ 2.834000] sd 2:0:1:0: [sdb] Attached SCSI disk
#

Lalu karena masih kosong, musti di partisi dan di format lagi. Untuk mempartisinya, gunakan ‘cfdisk /dev/sdb’. /dev/sdb terbentuk karena harddisk tambahan ada di slave Ide channel.

# cfdisk
cfdisk (util-linux 2.21.2)

Disk Drive: /dev/sdb
Size: 40802189312 bytes, 40.8 GB
Heads: 255 Sectors per Track: 63 Cylinders: 4960

Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
Pri/Log Free Space 40802.19*

[ Help ] [ New ] [ Print ] [ Quit ] [ Units ]
[ Write ]

Create new partition from free space

Seperti artikel yang lalu, tekan [NEW] – [Primary] – (size — ukuran harddisk) Enter – Lalu [Write] — jawab ‘yes’ –enter. lalu tekan q untuk keluar.

Partisi sudah dibuat, format dengan filesystem reiser

# # mkfs.reiserfs /dev/sdb -f
mkfs.reiserfs 3.6.21 (2009 www.namesys.com)

A pair of credits:
Edward Shishkin wrote the encryption and compression  file plugins,  and the V3
journal relocation code.

Jeremy  Fitzhardinge  wrote  the  teahash.c  code  for  V3.  Colin  Plumb  also
contributed to that.

/dev/sdb is entire device, not just one partition!
Continue (y/n):y
Guessing about desired format.. Kernel 3.2.29-smp is running.
Format 3.6 with standard journal
Count of blocks on the device: 9961472
Number of blocks consumed by mkreiserfs formatting process: 8515
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: d07d130f-5490-4e92-b8a8-91ee38d2d7cf
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok
ReiserFS is successfully created on /dev/sdb.

 

Coba di mount (aktifkan).

# mkdir /mnt/data2
# mount /dev/sdb /mnt/data2
# cd /mnt/data2
# ls
tes; bisa di tulis apa tidak
# echo TESTING >iseng.txt
# tail iseng.txt

Coba di list; apa benar-benar sudah benar apa benar 😀

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        20G  2.5G   18G  13% /
tmpfs           180M     0  180M   0% /dev/shm
/dev/sdb         38G  177M   36G   1% /mnt/data2

Aktifkan permanet saat booting:

# nano /etc/fstab
  GNU nano 2.3.1               File: fstab

/dev/sda1        swap             swap        defaults         0   0
/dev/sda2        /                reiserfs    defaults         1   1
/dev/sdb         /mnt/data2       reiserfs    defaults          1   1 
/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-sh$
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0

                                [ Read 7 lines ]
^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Page ^K Cut Text  ^C Cur Pos
^X Exit      ^J Justify   ^W Where Is  ^V Next Page ^U UnCut Text^T To Spell

Tekan ctrl+x lalu yes, enter.

Maka setiap booting untuk mengakses drive baru adanya di /mnt/data2. Bisa dirubah sesuka anda sih. Biar ga bingung, taruh saya semua drive/cd/usb di /mnt.

 

 

 

Situs ini kehilangan image dan files penunjang; karena terjadi storage failure dan saya tidak menyimpan backupnya - harap maklum
+