LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-05-2012, 11:19 AM   #1
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 592

Rep: Reputation: 140Reputation: 140
Boot from removed raid disk with copied filesystem?


I have a raid10 which i wish to expand the idea was to remove 1 disk from the raid and copy the filesystem to this disk and then adapt lilo to boot from this disk.
But it doesn't work. It keeps booting from the raid. I also tried chroot but then lilo exits with a error.
Code:
bash-4.1# mount -t ext2 /dev/sdc3 /mnt/disk
bash-4.1# chroot /mnt/disk
bash-4.1# lilo
Warning: LBA32 addressing assumed
Fatal: raid_setup: stat("/dev/sdc3")
Code:
bash-4.1# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] 
md_d0 : active raid10 sdb[1] sda[0]
      1464685056 blocks 256K chunks 2 far-copies [3/2] [UU_]
      bitmap: 1/11 pages [4KB], 65536KB chunk

unused devices: <none>
Old lilo.conf
Code:
bash-4.1# cat /etc/lilo.conf
boot = /dev/sdc
compact        # faster, but won't work on all systems.
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=" raid=noautodetect md=d0,/dev/sda,/dev/sdb,/dev/sdc3 vt.default_utf8=1"
prompt
timeout = 50
vga = 886
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/md_d0p2
  label = Linux
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
New lilo.conf
Code:
bash-4.1# cat /mnt/disk/etc/lilo.conf
boot = /dev/sdc
map=boot/map
#install=mnt/disk/boot/boot.b
compact        # faster, but won't work on all systems.
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="vt.default_utf8=1"
# raid=noautodetect md=d0,/dev/sda,/dev/sdb,/dev/sdc3 vt.default_utf8=1"
prompt
timeout = 50
vga = 886
# Linux bootable partition config begins
image =/boot/vmlinuz
  root = /dev/sdc3
  label = Linux
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
 
Old 05-05-2012, 11:47 AM   #2
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 592

Original Poster
Rep: Reputation: 140Reputation: 140
Found simple solution added extra entry in lilo.conf
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] centos 6.2 live cd copied to disk: no operating system on re-boot needsleep Linux - Newbie 3 04-05-2012 12:03 PM
[SOLVED] Software RAID (mdadm) - RAID 0 returns incorrect status for disk failure/disk removed Marjonel Montejo Linux - General 4 10-04-2009 07:15 PM
RAID-1 with one disk causes filesystem to be corrupt? alirezan1 Linux - Newbie 4 02-23-2009 12:23 PM
I removed a drive from my raid array, how can I get it to boot alone? abefroman Linux - Hardware 2 10-04-2005 09:40 AM
Removed second hard disk, Mandrake will not boot. TravisOSF Linux - Hardware 5 06-22-2004 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration