I had the 500GB HDD on a shelf. It still had Debian on it. I connected it and the unit booted with that. This is what I get. It looks like the RAID is seen but not mounted. How do I use fstab to mount the RAID? I see the UUIDs for the individual drives but there is no single identifier for the RAID array.
ALSO: The BIOS said the sda drive of the raid was a boot drive, but when I tried to boot to it I got a "grub>" prompt. Can I boot to that and tell it:
set root=(hd2,gpt2)?
Code: Select all
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 476.9G 0 disk
├─sda1 8:1 0 512M 0 part
├─sda2 8:2 0 475.5G 0 part
└─sda3 8:3 0 976M 0 part
sdb 8:16 0 476.9G 0 disk
├─sdb1 8:17 0 512M 0 part
├─sdb2 8:18 0 475.5G 0 part
└─sdb3 8:19 0 976M 0 part
sdc 8:32 0 465.8G 0 disk
├─sdc1 8:33 0 464.8G 0 part /
├─sdc2 8:34 0 1K 0 part
└─sdc5 8:37 0 975M 0 part [SWAP]
Code: Select all
$ sudo fdisk -l
Disk /dev/sdc: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: TOSHIBA MK5061GS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7ca7996a
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 974772223 974770176 464.8G 83 Linux
/dev/sdc2 974774270 976771071 1996802 975M 5 Extended
/dev/sdc5 974774272 976771071 1996800 975M 82 Linux swap / Solaris
Disk /dev/sdb: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WDS500G2B0A-00SM
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 911A1499-8286-4BEA-A00B-2F35B8E0D6C3
Device Start End Sectors Size Type
/dev/sdb1 2048 1050623 1048576 512M EFI System
/dev/sdb2 1050624 998215679 997165056 475.5G Linux RAID
/dev/sdb3 998215680 1000214527 1998848 976M Linux swap
Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WDS500G2B0A-00SM
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0F042267-92CB-4506-A018-A75C2B5313F0
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 998215679 997165056 475.5G Linux RAID
/dev/sda3 998215680 1000214527 1998848 976M Linux swap
The current fstab:
Code: Select all
UUID=121a7fae-ff9f-44ea-9ee1-326f06a8d87b / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=f77f96b5-8ebf-4714-a6f1-0f7f9a007578 none swap sw 0 0
Code: Select all
$ sudo parted -l
Model: ATA WDS500G2B0A-00SM (scsi)
Disk /dev/sda: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot, esp
2 538MB 511GB 511GB ext4 raid
3 511GB 512GB 1023MB linux-swap(v1) swap
Model: ATA WDS500G2B0A-00SM (scsi)
Disk /dev/sdb: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB boot, esp
2 538MB 511GB 511GB ext4 raid
3 511GB 512GB 1023MB linux-swap(v1) swap
Model: ATA TOSHIBA MK5061GS (scsi)
Disk /dev/sdc: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 499GB 499GB primary ext4 boot
2 499GB 500GB 1022MB extended
5 499GB 500GB 1022MB logical linux-swap(v1)
These commands give me nothing:
cat /etc/mdadm.conf
cat /proc/mdstat
Code: Select all
$ sudo lsblk -pf
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
/dev/sda
├─/dev/sda1 vfat FAT32 8671-F88B
├─/dev/sda2 linux_raid_member 1.2 whitebox:0 316a5222-ef24-233e-155a-e703bd03917b
└─/dev/sda3 swap 1 a689db4a-ff9d-48c9-b8f6-221e7a7f041b
/dev/sdb
├─/dev/sdb1
├─/dev/sdb2 linux_raid_member 1.2 whitebox:0 316a5222-ef24-233e-155a-e703bd03917b
└─/dev/sdb3 swap 1 2e61144e-553c-437c-81ae-c9c8a6b5549e
/dev/sdc
├─/dev/sdc1 ext4 1.0 121a7fae-ff9f-44ea-9ee1-326f06a8d87b 424.7G 2% /
├─/dev/sdc2
└─/dev/sdc5 swap 1 f77f96b5-8ebf-4714-a6f1-0f7f9a007578 [SWAP]