[SOLVED] Installing Slackware on RAID 1. Misunderstandings with Initrd.
Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Installing Slackware on RAID 1. Misunderstandings with Initrd.
I install Slackware 14.2 64-bit on RAID 1 following README_RAID.TXT (Slackware RAID HOWTO v1.02 2013/03/09 by Amritpal Bath) instruction from ISO distribution.
After creation a customized /etc/mdadm.conf for my system (at the end of "Setup" section):
- mdadm -Es > /etc/mdadm.conf
following recommendation of the official Slackware to switch to the "generic" kernel, I moved on to the "Using the generic kernel" section and ended up creating /etc/mkinitrd.conf and add:
MODULE_LIST="ext4"
RAID="1"
There's a note further down the instructions:
Quote:
Note: If the module for your hard drive controller is not compiled into the
generic kernel, you will want to add that module to the MODULE_LIST variable
in mkinitrd.conf. For example, my controller requires the mptspi module, so
my /etc/mkinitrd.conf looks like:
Code:
MODULE_LIST="ext4:mptspi"
RAID="1"
On what I'm stuck on having the following questions:
1) How do I find out if I have a module for the hard drive controller compiled into the generic kernel?
2) And if it is not compiled, then what should be written into the MODULE_LIST variable?
My config:
Motherboard ASUS PRIME B450M-A
Two 1Tb SATA 6Gb/s Western Digital Gold <WD1005FBYZ> 3.5" 7200rpm 128Mb HDDs
According to this your disk controller uses the ahci kernel driver.
Running 'grep -i ahci /usr/src/linux/.config' on a Slackware 14.2 64-bit install with the generic kernel shows that as builtin.
Exactly, the script you specified helped, the system booted.
Did the following:
(1)
From the installation flash drive from \slackware64\a\ executed: installpkg kernel-modules-4.4.14-x86_64-1.txz
I don't know should I have done this, or just run the script (next point)?
(2)
Executed the script: /usr/share/mkinitrd/mkinitrd_command_generator.sh > /etc/mkinitrd.conf
I got /etc/mkinitrd.conf not the same as in the instructions, but with a long command mkinitrd… something there. I did not execute this command manually.
(3)
Executed again: mkinitrd –F
(4)
Rerun: lilo
(5)
Exited the installer and rebooted: exit
reboot
But when loading, as you can see on the screenshot, when mounting md2, md3 and md4, the system outputs: No such file or directory while trying to open
Possibly non-existent device
And further: special device … does not exist
Earlier, when I set up RAID before installing the system, I gave the following commands:
Then, when installing the system, I assigned the same names to the mount points (disk names).
So, now, when the system has finally booted, disks in Explorer are displayed without a name (bottom left).
But in the Root section there are 3 directories with these names (underlined in red), having the same size of 19 Gb, which does not correspond to the sizes of the disks to which I gave these names:
1) Is this normal, is this how it should be?
2) How to mount these disks (md2, md3, md4) so that in the system (in the file manager) they are displayed under the specified names and can be configured in SAMBA with these names?
Your current fstab created by Slackware during installation would mount /dev/md2 /dev/md3 and /dev/md4 if they
existed on your system.
The output of the mdadm command you posted before shows instead devices /dev/md/programs, /dev/md/archive, and
/dev/md/exchange. These devices are not getting mounted .
Your current fstab created by Slackware during installation would mount /dev/md2 /dev/md3 and /dev/md4
The output of the mdadm command you posted before shows instead devices /dev/md/programs, /dev/md/archive, and
/dev/md/exchange.
Thank you Poucket!
Now everything works as it should.
Why did Slackware mark them as /dev/md/, if I specified /dev/md[2 3 4] when creating them?
Why did Slackware mark them as /dev/md/, if I specified /dev/md[2 3 4] when creating them?
Yes. Thought about that question but did not know enough to give a answer. Perhaps someone more familiar with
both mdadm and Slackware installer could tell us what happened.
BTW, BombJack if you have not yet run
Code:
/sbin/swapon -s
to be sure the system is using its virtual memory.
To mount a swap partition the first line of /etc/fstab may also have to be edited.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.