How to Plug New Hard Disk Drive on Linux

Azlews.com – Hi guys now i’ll posting some learn about Harddisk drive which title How to Plug New Hard Disk Drive on Linux, plug back HDD and mount

here we go …

How to Plug New Hard Disk Drive on Linux

# fdisk -l

to see each partition and HDD installed

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 204802047 102297600 7 HPFS/NTFS/exFAT
/dev/sda3 204802048 478238719 136718336 83 Linux

Device Boot Start End Blocks Id System
/dev/sdc1 2048 625141759 312569856 b W95 FAT32

in fdisk -l /dev/sdb , /dev/sdc or others it’s detected but when u hit df -hT  that partition not found or missing

for solve that case you can reformated

before that, makesure u’re HDD good enough XD with command

# dmesg | grep sdb

 

How to Plug New Hard Disk Drive on Linux

so, now u can format with command

# cfdisk /dev/sdb

option if u have /sdc/sdd or etc

will be look like that

How to Plug New Hard Disk Drive on Linuxfollow the step

and then format that HDD

# mkfs.ext3 /dev/sdb2  (if u want ext3 ekstension)

# mkfs.xfs   /dev/sdb2  (if u want xfs ekstension)

after finish, now mount HDD as i do that be my backup with /backup

# mount /dev/sdb2 /backup

and then

#df

for makesure that /sdb installed next reboot.

my office usually use generate backup automatically

screen first 😀

# screen -DR
 # /c/sbin/backup-local.pl

 

 

 

Masukkannya Gengs!