dengan type ‘linux_raid_member’ agak bingung juga, karena linux nya tidak mengunakan RAID software tapi hardisk bekasnya mengunakan raidsoftware.
# mount /dev/sdc1 /mnt mount: unknown filesystem type 'linux_raid_member'
iya sampe disana saya stuck berbulan2 saja dan tidak bisa lanjut karena bingung wkwkwkw lalu saya baca ini ttps://serverfault.com/questions/383362/mount-unknown-filesystem-type-linux-raid-member
saya cek koq bisa ada raid yang inactive? ke mount di /dev/md127
# cat /proc/mdstat Personalities : [raid0] md127 : inactive sdc1[1](S) 2930134471 blocks super 1.2 unused devices
coba di mount gagal lagi
# mount /dev/md127 /mnt mount: you must specify the filesystem type
jika demikian coba kita stop dan kita coba hancurkan sekalian partisinya, karena ingat kita tidak butuh data lamanya.
# mdadm --stop /dev/md127
cek kembali pastikan sudah tidak termount, karena akan selalu busy pesanya nanti.
# cat /proc/mdstat
hardisk ini ukuranya kurang dari 3Tb jadi bisa kita partisi dengan gdisk
1.create a new empty GUID partition table dengan GDISK
# gdisk /dev/sdc GPT fdisk (gdisk) version 0.8.10
Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): o This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): y
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
Do you want to proceed? (Y/N): y OK; writing new GUID partition table (GPT) to /dev/sdc. Warning: The kernel is still using the old partition table. The new table will be used at the next reboot. The operation has completed successfully.
2.add a new partition dengan GDISK
# gdisk /dev/sdc GPT fdisk (gdisk) version 0.8.10 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): ? b back up GPT data to a file c change a partition's name d delete a partition i show detailed information on a partition l list known partition types n add a new partition o create a new empty GUID partition table (GPT) p print the partition table q quit without saving changes r recovery and transformation options (experts only) s sort partitions t change a partition's type code v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu
Command (? for help): p Disk /dev/sdc: 5860533168 sectors, 2.7 TiB Logical sector size: 512 bytes Disk identifier (GUID): F1E9F36B-FA50-4E93-9EDA-BB44F8333144 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 5860533134 Partitions will be aligned on 2048-sector boundaries Total free space is 5860533101 sectors (2.7 TiB)
Number Start (sector) End (sector) Size Code Name
Command (? for help): n (enter-enter saja) Partition number (1-128, default 1): First sector (34-5860533134, default = 2048) or {+-}size{KMGTP}: Last sector (2048-5860533134, default = 5860533134) or {+-}size{KMGTP}: Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem'
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
Do you want to proceed? (Y/N): y OK; writing new GUID partition table (GPT) to /dev/sdc. Warning: The kernel is still using the old partition table. The new table will be used at the next reboot. The operation has completed successfully.
kita cek partisinya
# gdisk -l /dev/sdc GPT fdisk (gdisk) version 0.8.10
Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
Found valid GPT with protective MBR; using GPT. Disk /dev/sdc: 5860533168 sectors, 2.7 TiB Logical sector size: 512 bytes Disk identifier (GUID): F1E9F36B-FA50-4E93-9EDA-BB44F8333144 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 5860533134 Partitions will be aligned on 2048-sector boundaries Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name 1 2048 5860533134 2.7 TiB 8300 Linux filesystem
yap berhasil terbaca sizenya 2.7 TiB
3. saatnya format
# mkfs.ext4 /dev/sdc1 mke2fs 1.42.6 (21-Sep-2012) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 183148544 inodes, 732566385 blocks 36628319 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 22357 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
4. mounting dan selesai
# mount /dev/sdc1 /mnt # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 99G 47G 47G 50% / tmpfs 24G 0 24G 0% /dev/shm /dev/sdb1 1.8T 1.8T 0 100% /backup /dev/sdc1 2.7T 73M 2.6T 1% /mnt
<strong style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">5. agar mount otomatis jangan lupa untuk diubah UUIDnya di fstab
# blkid /dev/sdc1: UUID="081b3a15-0efb-4c4e-9233-482dcf7387f3" TYPE="ext4" # cat /etc/fstab | grep backup UUID=081b3a15-0efb-4c4e-9233-482dcf7387f3 /backup ext4 defaults 1 2
error saat format ini karena kita tidak stop dahulu mdadmnya
# mkfs.ext4 /dev/sdc1 mke2fs 1.42.6 (21-Sep-2012) /dev/sdc1 is apparently in use by the system; will not make a filesystem here!
untuk restore data dari disk type raid ini nanti akan dibuatkan dan teryata sudah pernah dibuat dan tercecer, alamak 😀