SlackwareThis Forum is for the discussion of Slackware Linux.
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.
13.37 64bit Raid 5 (3x2To) new installation initrd boot failed
I'm trying to setup a new raid NAS with 3x2To following README_RAID.TXT generic kernel with initrd crash and computer freeze, i'm trying to google different message but i'm stuck need help please.
/boot sd[abc]1 md3 100m (bootable)
/ sd[abc]2 md0 25Go
/home sd[abc]3 md1 3.7T
swap sd[abc]4 md2 4Go
freespace 100m
partition type is FD, i've read somewhere that we should use type AD ? with current only ?
Then i run slackware 13.37 64 setup normaly and choose to install lilo in simple mode to the MBR with the option:
Code:
- When asked about additional "append=" parameters, RAID 0 and
RAID 5 users should type in "root=/dev/md0", to ensure that the proper array is mounted on / at bootup.
i exit from the setup and continue:
Code:
Start by switching into your actual installation directory:
- chroot /mnt
Let's make sure LILO boots from the RAID arrays properly. Using your
favorite editor (vim/nano/pico), edit /etc/lilo.conf:
- add a new line (add it anywhere, but don't indent it):
raid-extra-boot = mbr-only
- You will need to change the following line:
boot = <something>
RAID 0 and RAID 5 users, change it to:
boot = /dev/md3 <----- according to what i have created
- Save the file and exit your editor.
- run "lilo".
Here i don't understand what the word indent mean ? Reverso and Google translation in french don't help me on this one
After this point i don't reboot and directly edit to use the generic kernel. i have done a previous install that didn't work and tested to reboot with the huge.s default kernel but computer also freeze.
Code:
Typically, a user switches to a generic kernel by booting the system, and
afterwards running the following:
- cd /boot
- rm vmlinuz System.map config
- ln -s vmlinuz-generic-smp-* vmlinuz
- ln -s System.map-generic-smp-* System.map
- ln -s config-generic-smp-* config
Don't run lilo yet, we'll do that soon.
Next, edit (create, if necessary) /etc/mkinitrd.conf and add:
MODULE_LIST="ext3"
RAID="1"
We're almost done.
Edit /etc/lilo.conf, and find the line at the very end that says:
image = /boot/vmlinuz
Add a new line after it that says:
initrd = /boot/initrd.gz
In this case, be sure to indent the line you've added!
Next, create the initrd based on the config file created earlier.
mkinitrd -F
Finally, run "lilo" to make the new settings take effect, give yourself a
pat on the back, and reboot your finished system. :)
then i reboot and computer freeze at the screenshot attached in previous post.
i have followed the README_RAID.TXT to build the same computer in RAID 1 with two drive of 2To and everything went fine.
I'm searching google as much as i can and don't find any solution, can anyone tell me what I have missed? Thanks in advance.
Can you post the exact contents of your lilo.conf file?
As for the word "indent", that means "put some amount of whitespace at the front of the line of text." I know that some computer languages (Python is famous for this) use the amount of indentation to indicate blocks of code.
For example, in Python this bit of code...
Code:
for x in range(chunks):
yield line[offset:offset+6]
offset += 6
...is not the same as this bit of code...
Code:
for x in range(chunks):
yield line[offset:offset+6]
offset += 6
In the first example, "offset" is incremented by 6 inside the "for" loop. In the second one, "offset" is incremented by 6 only when the loop ends.
I suspect lilo works the same way, judging from the comment you posted (I use grub, myself).
thanks for your answer, i'm not at home, i'll post my lilo.conf tonight, i haven't put any whitespace in front of the line. I started a fresh install again yesterday.
From the screen shot, you got the terminating error because the root device wasn't mounted - as indicated in teh previosu warning line that mount could not find the entry in /etc/fstab so you might start there.
i've started a fresh install yesterday with 3 partition instead of 4 with no bootable, i've read somewhere that when lilo is in MBR it doesn't need the boot flag, i end up with the same screenshot error
my lilo.conf:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
raid-extra-boot = mbr-only
append="root=/dev/md0 vt.default_utf8=0"
boot = /dev/md2
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt
# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 120
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
#vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
#vga=791
# VESA framebuffer console @ 1024x768x32k
#vga=790
# VESA framebuffer console @ 1024x768x256
#vga=773
# VESA framebuffer console @ 800x600x64k
#vga=788
# VESA framebuffer console @ 800x600x32k
#vga=787
# VESA framebuffer console @ 800x600x256
#vga=771
# VESA framebuffer console @ 640x480x64k
#vga=785
# VESA framebuffer console @ 640x480x32k
#vga=784
# VESA framebuffer console @ 640x480x256
#vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/md0
label = Linux
read-only
# Linux bootable partition config ends
/etc/mkinitrd:
Code:
MODULE_LIST="ext3"
RAID="1"
i have followed the README_RAID.TXT for the initrd:
Code:
Edit /etc/lilo.conf, and find the line at the very end that says:
image = /boot/vmlinuz
Add a new line after it that says:
initrd = /boot/initrd.gz
In this case, be sure to indent the line you've added!
Next, create the initrd based on the config file created earlier.
mkinitrd -F
Finally, run "lilo" to make the new settings take effect, give yourself a
pat on the back, and reboot your finished system. :)
Hello NyteOwl, thx for the idea, i have attached my fstab and an updated version of the screenshot error with 3 partition. Is it normal that my /etc/mdadm.conf is entirely commented ?
It works, problem seems to be an incomplete mkinitrd.conf, i'll post the complete configuration tomorrow and pass the thread solved, but need some sleep first
finally after some sleep and a new fresh install this morning my complete setup RAID 5 on 3x2To following README_RAID.TXT, hope that it can be useful to someone ^^
Run Slackware 13.37 64bit install from USB/DvD, partitioning with cfdisk:
Code:
/boot 100Mo sda1 DA RAID 1 md3
/ 25Go sda2 DA RAID 5 md0
/home 3.6T sda3 DA RAID 5 md1
swap 4Go sda4 DA RAID 1 md2
free 100mo
partition type DA.
no bootable partition.
Duplicate partition to three 2To drives with sfdisk:
partition type is FD, i've read somewhere that we should use type AD ? with current only ?
It's "da" and it is for any recent Slackware version 13.x
The old kernel auto detect (which needs "fd") is no longer used, it has been replaced by mdadm in the initrd scanning the disks and assembling the arrays instead.
finally after some sleep and a new fresh install this morning my complete setup RAID 5 on 3x2To following README_RAID.TXT, hope that it can be useful to someone ^^
It is useful indeed! Thanks a lot for sharing your experience!
root@1337-64r:~# sfdisk -d /dev/sda | sfdisk /dev/sdb
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 243201 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdb: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdb1 63 192779 192717 da Non-FS data
/dev/sdb2 192780 50187059 49994280 da Non-FS data
/dev/sdb3 50187060 3898830914 3848643855 da Non-FS data
/dev/sdb4 3898830915 3906831284 8000370 da Non-FS data
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.