Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-05-2014, 11:40 PM
|
#1
|
LQ Newbie
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9
Rep:
|
Lilo, Windows, Raid0 [Fatal: Bios device code]
Hello all,
My brain is fried and I need to take a deep breather. Can someone please point me in the right direction to get all HDDs working and allow my Windows partition to be read by Lilo. I can only boot into Linux if I disconnect all HDDs. If I want to boot into Windows, I just disconnect my Linux HDD. Below is a my setup.
And you read that right, the error message is complaining about sdc[HDD] and sda[SSD] EVEN THOUGH sda[SSD] and sdb[SSD] are the motherboard Raid0 SSD with the Windows partition.
Motherboard Raid0 setup:
120 SSD sda [sda1 & sda2]
120 SSD sdb [sdb1]
4TB Window Data sdc1
1TB Slackware64 14.1 sdd [sdd1 swap & sdd2 / & sdd3 /home]
500GB Window Data sde1
Error message
Code:
# lilo
Warning: LBA32 addressing assumed
Fatal: Bios device code 0x80 is being used by two disks /dev/sdc (0x0820) and /dec/sda (0x0800)
Broken lilo.conf
Quote:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sdd
......Cut out unneeded items......
# slackgk
image = /boot/vmlinuz-generic-3.10.17
initrd = /boot/initrd.gz # lilo will see initrd.gz
root = /dev/sdd1
label = slackgk
read-only
# slackhg
image = /boot/vmlinuz
root = /dev/sdd2
label = slackhg
read-only
# Windows 8.0
other = /dev/sda1
label = Win8.0
table = /dev/sda
# map-drive=0x800
# to=0x82
# map-drive=0x82
# to=0x81
boot-as = 0x80
# Linux bootable partition config ends
|
Full fdisk: fdisk [sda-sdc]// fdisk [sdd-sde]// error at startup [all hdd plugged in]
Any and all advise would be greatly appreciated. Thank you!
Last edited by 桃甘蕉; 07-06-2014 at 10:35 AM.
|
|
|
07-06-2014, 02:04 AM
|
#2
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
Are you using a Windows HDD formatted with GPT style partitioning?
|
|
2 members found this post helpful.
|
07-06-2014, 09:45 AM
|
#3
|
LQ Newbie
Registered: Oct 2009
Location: Geldermalsen, The Netherlands
Distribution: Slackware 14.0
Posts: 21
Rep:
|
Raid 0 problem
I had one time a problem with a hardware raid0 set up where the disks where different and exchanged
I don't know if you are using a hardware raid or a software raid, bur if you are using a hardware raid you could try to recompile the kernel with CONFIG_SATA_PMP=n (instead of y) in order to disable the port multiplier functionality which when enabled is confusing things.
|
|
|
07-06-2014, 10:23 AM
|
#4
|
LQ Newbie
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9
Original Poster
Rep:
|
Yes, the 4TB HDD is formatted with windows & it is GTP. I have found more information on my problem. I notice every time I try booting into Linux with another HDD plugged in, it fails at booting sda2, which is odd. Because lilo knows to boot up device sdd and partition sdd2. Why is it falling back to sda2 instead of sdd2? Also, I can't even get lilo to finish checking the config [with the lilo] with Windows enable in the config file with that dang [fatal: bios device code] error.
I have included my full fdisk. I couldn't for the life of me figure out how to get setterm to dump my fdisk when working from the cd. Please see the attachment for more information. First two images is the full fdisk & and the third image is the error message I get when booting up with all HDDs plugged in.
SlackInstalled: The confusion was on my end, when I said faked Raid, I meant I am using the MB Raid setup, not Windows software Raid or Linux software Raid.
Code:
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sdd
.....................................................
# Linux bootable partition config begins
# slackgk
image = /boot/vmlinuz-generic-3.10.17
initrd = /boot/initrd.gz # lilo will see initrd.gz
root = /dev/sdd1
label = slackgk
read-only
# slackhg
image = /boot/vmlinuz
root = /dev/sdd2
label = slackhg
read-only
# Windows 8.0
#other = /dev/sda1
# label = Win8.0
# table = /dev/sda
# map-drive=0x800
# to=0x82
# map-drive=0x82
# to=0x81
# boot-as = 0x80
# Linux bootable partition config ends
Last edited by 桃甘蕉; 07-06-2014 at 10:27 AM.
|
|
|
07-06-2014, 12:19 PM
|
#5
|
Member
Registered: Jul 2003
Location: Montana
Posts: 303
Rep:
|
What's your /etc/fstab look like? Off the top of my head, I'd first verify the bios boot order and then set lilo and fstab to use by-uuid or by-id so if the drives change position it doesn't matter.
|
|
1 members found this post helpful.
|
07-06-2014, 12:47 PM
|
#6
|
LQ Newbie
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9
Original Poster
Rep:
|
I have been changing the boot order around a lot for this issue, and it doesn't do anything. I was actually thinking about the fstab last night as I haven't touched it once during this whole problem. And now, I feel a bit silly. However I thought Lilo would deal with everything. But how will I get Windows to be loaded in lilo now? I gave up on that yesterday.
Code:
/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext4 defaults 1 1
/dev/sda3 /home ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
I have changed the HDDs to the UUIDs. It should work now. I going to test right now.
Code:
UUID=e0972fca-9900-4733-a059-1399b123c1a1 swap swap defaults 0 0
UUID=19edc8cb-fe0e-46c2-a958-50710c032095 / ext4 defaults 1 1
UUID=78ca3590-7325-4c44-af18-0b06c2dccf6a /home ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
Update:
The new fstab with the UUID does not correct the problem with the windows raid plugged in or not. I am still receiving the following error on bootup.
Tried sda, sdb, sdc, sdd, sde & tried sdc, sdc, sdd, sde plugged in and it didn't work.
Quote:
mount: mounting /dev/sda2 on /mnt failed: invalid argument
error: no /sbin/init found on rootdev (or not mounted). trouble ahead.
you can try to fix it. type 'exit' when things are done.
|
Last edited by 桃甘蕉; 07-06-2014 at 01:06 PM.
|
|
|
07-06-2014, 11:43 PM
|
#7
|
Member
Registered: Jul 2003
Location: Montana
Posts: 303
Rep:
|
LILO is not happy with random changing drives during the boot. Try setting up LILO to use UUID and by-id also after creating an initrd.
http://mirrors.slackware.com/slackwa.../README.initrd
There might be a more proper way but this is what I've been using:
Code:
$ cat /etc/lilo.conf
boot = /dev/disk/by-id/ata-INTEL_SSDSC2CW120A3_CVCV239201E4120BGN
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
append="elevator=noop vt.default_utf8=0"
prompt
timeout = 50
vga = 775
image = /boot/vmlinuz
initrd = /boot/initrd.gz
append = "elevator=noop root=UUID=7076d649-a4a9-4e60-952e-408ea298dd94"
label = Slack64
read-only # Partitions should be mounted read-only for checking
|
|
1 members found this post helpful.
|
07-08-2014, 12:00 AM
|
#8
|
LQ Newbie
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9
Original Poster
Rep:
|
Oh my, It is working with all HDDs plugged in!!! I had to re-create the initrd for it load my sdd drive. I believe making a new initrd was the key all along and that changing the fstab and lilo.confg didn't matter/did anything. Can anyone confirm this?
Also, how should I handle the windows raid0 configuration on the SSDs? [Thanks BrianW]
|
|
|
07-08-2014, 08:22 AM
|
#9
|
Member
Registered: May 2008
Location: Republic of Texas
Posts: 393
Rep:
|
AFAIK, when the loader loads the kernel, the latter doesn't know anything about uuuids, hence the need for an initrd which will provide that information to the kernel.
I had the same problem when creating my 'slackware-on-a-stick'. I was using the huge kernel, but still needed the initrd.
Last edited by perbh; 07-08-2014 at 08:25 AM.
|
|
|
All times are GMT -5. The time now is 03:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|