LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-05-2014, 11:40 PM   #1
桃甘蕉
LQ Newbie
 
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9

Rep: Reputation: Disabled
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.
 
Old 07-06-2014, 02:04 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Are you using a Windows HDD formatted with GPT style partitioning?
 
2 members found this post helpful.
Old 07-06-2014, 09:45 AM   #3
SlackInstalled
LQ Newbie
 
Registered: Oct 2009
Location: Geldermalsen, The Netherlands
Distribution: Slackware 14.0
Posts: 21

Rep: Reputation: 2
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.
 
Old 07-06-2014, 10:23 AM   #4
桃甘蕉
LQ Newbie
 
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9

Original Poster
Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	sda2.jpg
Views:	27
Size:	130.2 KB
ID:	15853   Click image for larger version

Name:	sdd2.jpg
Views:	25
Size:	131.7 KB
ID:	15854   Click image for larger version

Name:	IMG_20140706_080626.jpg
Views:	26
Size:	95.4 KB
ID:	15855  

Last edited by 桃甘蕉; 07-06-2014 at 10:27 AM.
 
Old 07-06-2014, 12:19 PM   #5
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 303

Rep: Reputation: Disabled
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.
Old 07-06-2014, 12:47 PM   #6
桃甘蕉
LQ Newbie
 
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-06-2014, 11:43 PM   #7
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 303

Rep: Reputation: Disabled
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.
Old 07-08-2014, 12:00 AM   #8
桃甘蕉
LQ Newbie
 
Registered: Jun 2014
Distribution: Slack14.1
Posts: 9

Original Poster
Rep: Reputation: Disabled
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]
 
Old 07-08-2014, 08:22 AM   #9
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lilo 23.2: Fatal: trying to map files from unnamed device 0x001 stf92 Debian 6 04-23-2014 07:26 PM
Lilo wont write to MBR, Fatal error: only linear boot device supported agentc0re Slackware 2 03-16-2008 03:23 PM
lilo and windows on Hardware RAID0 (3ware) ganja_guru Linux - Hardware 2 08-23-2005 02:42 PM
need Bios driver to exec custom on board bios code wmain Linux - Software 0 09-03-2004 09:32 AM
mandrake 9.1 - LILO - windows on a raid0 array desteffy Linux - Hardware 1 07-08-2003 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:19 PM.

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