You are not logged in.
Pages: 1
Topic closed
Hey all,
I am using Arch Linux for almost three years on my notebook and am currently trying to set it also up on my desktop in a dual boot with windows. Here is my setup:
- Windows and Linux System on NVMe-SSD
- 2x 4TB HDD in RAID1 (NTFS)
- onboard AMD RAID controller
I first installed Windows a couple of weeks ago and already used my HDDs to store documents, pictures, .... (yes, I do have a backup
)
The RAID was built within BIOS but there is no hardware RAID-controller. So I assume it's a FakeRAID configuration.
Today I tried to find a way to access the data stored in the RAID but failed to mount it.
Any suggestion how to access the RAID in Arch? Isn't it possible?
- dmraid doesnt seem to recognize raid
$ sudo dmraid -tay
no raid disks- ls /dev/mapper doesnt show raid
$ ls /dev/mapper
control- lsblk is only showing empty space, doesnt seem to recognize ntfs partition. Windows is telling me that free space is 1.7T.
$ lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
└─sda1 8:1 0 1.7T 0 part
sdb 8:16 0 3.7T 0 disk
└─sdb1 8:17 0 1.7T 0 part
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 529M 0 part
├─nvme0n1p2 259:2 0 100M 0 part /boot
├─nvme0n1p3 259:3 0 16M 0 part
├─nvme0n1p4 259:4 0 500G 0 part
├─nvme0n1p5 259:5 0 350G 0 part
├─nvme0n1p6 259:6 0 73G 0 part /
└─nvme0n1p7 259:7 0 7.9G 0 part [SWAP]- ntfs-3g is installed
$ pacman -Qs ntfs-3g
local/ntfs-3g 2017.3.23-3
NTFS filesystem driver and utilities- dmraid is installed
$ pacman -Qs dmraid
local/dmraid 1.0.0.rc16.3-12
Device mapper RAID interface- mdadm is installed
$ pacman -Qs mdadm
local/mdadm 4.1-2
A tool for managing/monitoring Linux md device arrays, also known as Software RAIDThanks in advance.
Last edited by casat (2020-01-06 13:20:02)
Offline
Since you said AMD RAID, maybe look at rcraid. If you have NVME drives in a raid, it may not be possible.
https://github.com/thopiekar/rcraid-dkms/
Last edited by progandy (2019-12-30 18:05:39)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Thank you for posting the link.
Unfortunately I wasn't able to install it due to an error:
arch/x86/entry/syscalls/Makefile: No such file or directoryWhere to get the file from? Did I miss to install something?
The whole dir /usr/lib/modules/5.4.6-arch3-1/build/arch/x86/entry is missing:
$ ls /usr/lib/modules/5.4.6-zen3-1-zen/build/arch/x86/
events include Kconfig Kconfig.cpu Kconfig.debug kernel kvm Makefile ras um xenHere is what I did up to now:
- First I tried to just use to install script. This is the output:
$ git clone [url]https://github.com/thopiekar/rcraid-dkms.git[/url]
$ cd rcraid-dkms
$ chmod +x install
$ ./install
Make kernel for 5.4.6-zen3-1-zen
make: Entering directory '/home/test/.aur/rcraid-dkms/src'
make: Leaving directory '/home/test/.aur/rcraid-dkms/src'
make: Entering directory '/home/test/.aur/rcraid-dkms/src'
------------------------------------------------------------
- building for kernel 5.4.6-zen3-1-zen
------------------------------------------------------------
make -C /lib/modules/5.4.6-zen3-1-zen/build SUBDIRS=/home/test/.aur/rcraid-dkms/src modules
make[1]: Entering directory '/usr/lib/modules/5.4.6-zen3-1-zen/build'
scripts/Makefile.build:42: arch/x86/entry/syscalls/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'. Stop.
make[1]: *** [arch/x86/Makefile:278: archheaders] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.4.6-zen3-1-zen/build'
make: *** [Makefile:60: all] Error 2
make: Leaving directory '/home/test/.aur/rcraid-dkms/src'
#
# Driver module not built -- install aborted!
#- I found rcraid in AUR ( https://aur.archlinux.org/packages/rcraid-dkms/) but installation also failed:
$ git clone [url]https://aur.archlinux.org/rcraid-dkms.git[/url]
$ cd rcraid-dkms
$ makepkg -sri
==> Making package: rcraid-dkms 17.2.1-1 (Tue 31 Dec 2019 04:04:31 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found raid_linux_driver_8_01_00_039_public.zip
-> Found dkms.conf
-> Found linux-4.15.patch
==> Validating source files with md5sums...
raid_linux_driver_8_01_00_039_public.zip ... Passed
dkms.conf ... Passed
linux-4.15.patch ... Passed
==> Extracting sources...
-> Extracting raid_linux_driver_8_01_00_039_public.zip with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
patching file common_shell
patching file install_rh
patching file install_suse
patching file Makefile
patching file rc_adapter.h
patching file rc_init.c
patching file rc_mem_ops.c
patching file rc_msg.c
patching file uninstall_rh
patching file uninstall_suse
------------------------------------------------------------
- building for kernel 5.4.6-zen3-1-zen
------------------------------------------------------------
make -C /lib/modules/5.4.6-zen3-1-zen/build SUBDIRS=/home/test/.aur/rcraid-dkms/src/rcraid-17.2.1 modules
make[1]: Entering directory '/usr/lib/modules/5.4.6-zen3-1-zen/build'
scripts/Makefile.build:42: arch/x86/entry/syscalls/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/Makefile'. Stop.
make[1]: *** [arch/x86/Makefile:278: archheaders] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.4.6-zen3-1-zen/build'
make: *** [Makefile:60: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...Last edited by casat (2020-01-02 15:45:22)
Offline
Edit: It looks like it compiles with this patch:
diff --git a/src/Makefile b/src/Makefile
index e0bb1d9..b4e1780 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -20,7 +20,7 @@ RC_HOST=$(shell /bin/hostname)
RC_USER=$(shell whoami)
RC_DATE=$(shell /bin/date)
RC_BUILD_DATE=$(shell /bin/date +'%b %d %Y')
-PLATFORM=$(shell uname -i)
+PLATFORM=$(shell uname -m)
EXTRA_CFLAGS += -D__LINUX__
EXTRA_CFLAGS += -DRC_AHCI_SUPPORT -DRC_AMD_AHCI -DRC_AHCI_AUTOSENSE
@@ -57,7 +57,7 @@ PWD := $(shell pwd)
.PHONY: install bbanner ibanner
all: bbanner
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+ $(MAKE) -C $(KDIR) M=$(PWD)
clean:
@rm -f *.o *.ko vers.c .*.cmd .*.dLast edited by progandy (2019-12-31 16:37:16)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
casat, please edit your posts and use [ code ] tags (not quote tags) when posting output.
https://wiki.archlinux.org/index.php/Co … s_and_code
https://bbs.archlinux.org/help.php#bbcode
Offline
Thanks, I was able to compile it. Replacing mkinitramfs line by 'mkinitcpio -p linux-zen' in install script made me able to create a new linux image which automatically loads rcraid as module.
$ dmesg | grep 'rcraid'
[ 0.970210] rcraid: loading out-of-tree module taints kernel.
[ 0.970216] rcraid: module license 'Proprietary' taints kernel.
[ 0.970847] rcraid: module verification failed: signature and/or required key missing - tainting kernel
[ 0.971812] <5>AMD, Inc. rcraid raid driver version 8.1.0 build_number 8.1.0-00039 built Dec 31 2019
[ 0.971813] <5>rcraid built on testarch by root on Tue 31 Dec 2019 06:04:11 PM CET
[ 0.971814] <5>rcraid: cmd_q_depth 512, tag_q_depth 16, max_xfer 448, use_swl 0xffffffff $ lsmod | grep 'rcraid'
rcraid 2560000 0
scsi_mod 262144 3 rcraid,sd_mod,libataBut unfortunately the system still doesn't recognize the raid and dmesg output looks different to what I've found here:
https://community.amd.com/thread/222449#comment-2850313
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
└─sda1 8:1 0 1.7T 0 part
sdb 8:16 0 3.7T 0 disk
└─sdb1 8:17 0 1.7T 0 part
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 529M 0 part
├─nvme0n1p2 259:2 0 100M 0 part /boot
├─nvme0n1p3 259:3 0 16M 0 part
├─nvme0n1p4 259:4 0 500G 0 part
├─nvme0n1p5 259:5 0 350G 0 part
├─nvme0n1p6 259:6 0 73G 0 part /
└─nvme0n1p7 259:7 0 7.9G 0 part [SWAP]$ ls /dev/mapper
controlUEFI Settings look good, so I don't know what to do now. Did I miss something?
Last edited by casat (2020-01-02 15:16:00)
Offline
I'm a newbie myself but have setup 2 RAIDS on my desktop.
Forgive me if this is a dumb suggestion but have you looked at the disk in GParted at all to see how it's partitioned?
It looks to me like there is only one partition on the RAID of 1.7T . Is that not the ntfs partition?
Offline
Thanks for your suggestion. I checked how the HDDs are partitioned using GParted. It says that 2 TB are unallocated and the 1.7TB are of an unknown file system.
As I already mentioned in my initial posting, Windows is telling me that the free space of the RAID is 1.7T. So I assume that the unallocated part of the disks contains the ntfs partition.
But even if I am wrong. How to mount /dev/sda and /dev/sdb as RAID 1? I cannot mount /dev/sda1:
# mount /dev/sda1 RAID
mount: /mnt/RAID: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.Last edited by casat (2020-01-02 15:54:03)
Offline
Is there any data on the RAID?
If not maybe use GParted and recreate all the partitions you want.
Then your mount should look something like mine...
mount /dev/sdd2 /mnt/e-raidand my lsblk is
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 89.1M 1 loop /var/lib/snapd/snap/core/8213
loop1 7:1 0 89.1M 1 loop /var/lib/snapd/snap/core/8268
sda 8:0 0 232.9G 0 disk
└─md126 9:126 0 465.8G 0 raid0
├─md126p1 259:0 0 529M 0 part
├─md126p2 259:1 0 100M 0 part /boot
├─md126p3 259:2 0 16M 0 part
├─md126p4 259:3 0 106.2G 0 part
├─md126p5 259:4 0 80.8G 0 part /
├─md126p6 259:5 0 1G 0 part [SWAP]
└─md126p7 259:6 0 277.1G 0 part /home
sdb 8:16 0 232.9G 0 disk
└─md126 9:126 0 465.8G 0 raid0
├─md126p1 259:0 0 529M 0 part
├─md126p2 259:1 0 100M 0 part /boot
├─md126p3 259:2 0 16M 0 part
├─md126p4 259:3 0 106.2G 0 part
├─md126p5 259:4 0 80.8G 0 part /
├─md126p6 259:5 0 1G 0 part [SWAP]
└─md126p7 259:6 0 277.1G 0 part /home
sdc 8:32 0 1.8T 0 disk
└─sdc1 8:33 0 1.8T 0 part
sdd 8:48 0 10.9T 0 disk
├─sdd1 8:49 0 128M 0 part
├─sdd2 8:50 0 10.7T 0 part /mnt/e-raid
└─sdd3 8:51 0 195.3G 0 part /run/media/root/Linux BackupLast edited by BODYPRINT (2020-01-02 16:15:09)
Offline
Is there any data on the RAID?
Yes, since I set Windows up first some weeks ago I already stored 2TB of data (referring to Win10). That's the reason why I am pretty sure that the 1.7TB is just the space left on the disks.
----------------------
EDIT: Issue solved
I was able to adjust the dkms AUR package. You just have to update the patch file as progandy suggested:
diff -U3 rcraid-dkms/linux-4.15.patch test/rcraid-dkms/linux-4.15.patch
--- rcraid-dkms/linux-4.15.patch 2020-01-03 18:23:54.519681652 +0100
+++ test/rcraid-dkms/linux-4.15.patch 2020-01-03 18:03:30.127029702 +0100
@@ -38,6 +38,15 @@
EXTRA_CFLAGS += -D__LINUX__
EXTRA_CFLAGS += -DRC_AHCI_SUPPORT -DRC_AMD_AHCI -DRC_AHCI_AUTOSENSE
+@@ -57,7 +57,7 @@
+ .PHONY: install bbanner ibanner
+
+ all: bbanner
+- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
++ $(MAKE) -C $(KDIR) M=$(PWD)
+
+ clean:
+ @rm -f *.o *.ko vers.c .*.cmd .*.d
@@ -89,7 +89,7 @@
obj-m := rcraid.oAnd then run makepkg by skipping checksum
$ makepkg -sri --skipchecksumsWhat I was missing before to access the RAID:
Append
modprobe.blacklist=ahci to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub.
I thought this is only necessary in case of booting from the RAID but it seems as if it is also mandatory to be able to mount the RAID.
Last edited by casat (2020-01-06 13:19:20)
Offline
I installed Thopiekar package on Manjaro and it didn't work, I think it's because AHCI is a builtin kernel module so blacklisting it doesn't work. correct me if I'm wrong I want to make it work.
Offline
Please don't hijack solved threads and be aware that we can't help you with Manjaro issues as stated in our rules you agreed to when registering.
https://bbs.archlinux.org/misc.php?action=rules
Closing.
Offline
Pages: 1
Topic closed