LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-21-2023, 04:54 AM   #1
rekotc
LQ Newbie
 
Registered: Oct 2023
Location: Italy
Distribution: Debian
Posts: 4

Rep: Reputation: 1
Raid0 drives not correctly detected on debian 12.2


Hello everybody,

I've recently updated a very old machine to Debian 12. This machine has a dual-boot setup with Windows 10.
The Windows system is installed on an RAID0 configuration (Intel softraid) on two physical drives, and it worked correctly before the update.
Now, when I run os-prober in order to detect the windows partition, I get the following:
Code:
lsblk: /dev/mapper/isw_bjdgfgejcf_RAIDSTACKER*[0-9]: not a block device
So I run fdisk -l to check the situation (I hid the unrelated drives from the output):

Code:
rekotc@QSTACKER:/dev/mapper$ sudo fdisk -l

Disk /dev/sdd: 465,76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AACS-0
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: 0x141abb57


Disk /dev/sde: 465,76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AACS-0
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: 0xacbc2e15

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sde1  *          2048     206847     204800   100M  7 HPFS/NTFS/exFAT
/dev/sde2           206848 1952495352 1952288505 930,9G  7 HPFS/NTFS/exFAT
/dev/sde3       1952495616 1953529855    1034240   505M 27 Hidden NTFS WinRE

[...]

Disk /dev/mapper/isw_bjdgfgejcf_RAIDSTACKER: 931,52 GiB, 1000210694144 bytes, 1953536512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disklabel type: dos
Disk identifier: 0xacbc2e15

Device                                       Boot      Start        End    Sectors   Size Id Type
/dev/mapper/isw_bjdgfgejcf_RAIDSTACKER-part1 *          2048     206847     204800   100M  7 HPFS
/dev/mapper/isw_bjdgfgejcf_RAIDSTACKER-part2          206848 1952495352 1952288505 930,9G  7 HPFS
/dev/mapper/isw_bjdgfgejcf_RAIDSTACKER-part3      1952495616 1953529855    1034240   505M 27 Hidden NTFS Win
Unfortunately, I cannot remember the old output for this setup, but it seems something wrong is going on here. The two drives are detected first as single drives, as /sdd and /sde, plus the /sde2 partition seems to be some kind of "raid" drive since it shows a 930,9G size. And then I have /dev/mapper/isw_bjdgfgejcf_RAIDSTACKER, which should be the actual raid0 configuration, but for some reason the disk is splitted into 3 different devices, with this "part1", "part2", "part3" added at the end of the device name.

Any hint about this? Thanks in advance.
 
Old 10-25-2023, 08:33 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,157

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
My guess is somehow a raid-0 is made with the whole 500G drive sdd and the 2nd partition of sde. That raid is partitioned into part[123]. However, the partition table of sde makes no sense. Maybe your controller is hiding the real disk partitions in order to provide the raid.

Can you try reading blocks from each partition of the raid using dd to see if it works?
 
Old 05-16-2024, 08:43 AM   #3
rekotc
LQ Newbie
 
Registered: Oct 2023
Location: Italy
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 1
I was finally able to spend some time on this machine, and I solved the problem! I write here the solution, it might be useful to somebody else.
I checked the logs, searching for errors or weird messages:
Code:
journalctl --since "2 hour ago"
and i got this:
Code:
udisksd[798]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
udisksd[798]: Failed to load the 'mdraid' libblockdev plugin
It seemed like the mdraid module was missing!
So I installed the following packages:
Code:
sudo apt-get install libblockdev-crypto2 libblockdev-mdraid2
After the installation, I rebooted, and run:
Code:
sudo update-grub
And my raid drive is now back!
Thanks.
 
1 members found this post helpful.
Old 05-16-2024, 11:03 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,454

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
I only did one job ever on Raid 0, and it was three spinning rust drives with no backup, and no redundancy. Data was striped across 2 drives, and the 3rd held the key to what was written where.

The server had died. If it had been a drive, for sure that company would have gone bankrupt. They very nearly did (go bankrupt) over the breakdown as it was.

Nowadays, NVMEs do more than those speeds, and SSDs. There's no need to have spinning rust on Raid 0. There is a need for backup, unless you're very careless of your data.

If you're seeing the need to run SSDs or NVMEs on Raid0, you must have something exotic under your care - the LHC?
 
Old 05-16-2024, 05:00 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
I doubt the OP had any say in the initial configuration - this is Win10 we are discussing here. I also consider RAID0 as a train-wreck looking for a place to happen, but each to their own.
The update will be appreciated by anyone in the same situation in future.
 
Old 05-16-2024, 07:31 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
https://www.icc-usa.com/intel-softwa...-hardware-raid

Is it RST?
 
Old 05-17-2024, 02:55 AM   #7
rekotc
LQ Newbie
 
Registered: Oct 2023
Location: Italy
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 1
eheh, we are talking about a 17+ years old machine, it was my gaming rig back then, I was young and reckless and I thought it would be cool to setup a raid0 and get the maximum speed
So I've been regretting it for 17 years , especially because it's an RST raid, at the time not well supported on linux. Nowadays I turn on this machine a couple of times per year and I'm always surprised to see that the drives are still spinning!

Thanks everybody
 
Old 05-17-2024, 04:23 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,454

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
Well, if your carefully worked-up saved games go down, I'm sure you'll survive.

The place I did that job at was getting printing jobs received over the internet and making it's own printing plates by some laser-controlled process which then got printed onsite. It was a massive printing operation out in the sticks in Kerry, about as far South West as you can get in Ireland.
 
Old 05-17-2024, 04:54 AM   #9
rekotc
LQ Newbie
 
Registered: Oct 2023
Location: Italy
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 1
Quote:
Well, if your carefully worked-up saved games go down, I'm sure you'll survive.
I created simlinks for all the saved games folders, pointing to my dropbox folder Good old times

Yes, I would never suggest a similar setup for a business!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
few drives are detected but others not detected in fedora 10 deb1bhu Linux - Hardware 5 07-18-2009 10:22 AM
Multiple IDE drives not detected correctly Mandriva 2009 Spring oldspike130 LinuxQuestions.org Member Intro 5 07-09-2009 10:51 PM
mdadm fails to assemble reconnected drives (debian, raid0) SandRock Linux - Software 12 11-09-2008 12:06 PM
Adaptec ASR-2820SA in Raid0 slower than SW-Raid0 phab Linux - Hardware 0 01-22-2007 09:03 AM
boot to PATA raid0 on Promise 378 *and see* SATA raid0 ICH5 ? patr Linux - Hardware 2 02-25-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration