nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Moving a Linux system device

This is a discussion on Moving a Linux system device within the Linux software forums, part of the Linux Getting Started category; I'm having a problem moving a device with a Linux installation on it from one system to another, and could ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-14-2008, 05:25 AM
Junior Member
User
 
Join Date: May 2008
My distro: Mandriva 10
Posts: 3
Rep Power: 0
John is on a distinguished road
Post Moving a Linux system device

I'm having a problem moving a device with a Linux installation on it from one system to another, and could use some help.

The original configuration was an x86 box with two IDE disk devices. It had WindowsXP installed on /dev/hda and Mandrake Linux 10 on /dev/hdb. It was possible to boot successfully into either system via BIOS selection of the boot device.

The new configuration is also an x86 box, with WindowsXP installed on its own drive, plus the Linux drive which I removed from the old system. In the new system, WinXP still boots fine but Linux does not. Here's the report:
VFS: Mounted root (ext2 filesystem)
Mounting /proc filesystem
Mounting sysfs
Creating device files
mounting tmpfs on /dev
starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3 flags defaults
retrying without the option flags
mount: error 6 mounting ext3
retrying read-only without any flag
mount: error 6 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/sys failed: 2
umount /initrd/proc failed: 2
Initrd finished
Freeing unused kernel memory: 200k freed
Kernel panic: No init found. Try passing init= option to kernel.
...and that's as far as it goes.

Is it even possible to move to a new system like this? If so, how? Would it be better just to go through a re-install of the Linux software? Would a re-install overwrite my existing Linux partitions (root, swap, home)? Thanks!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-14-2008, 10:41 PM
agn agn is offline
Member
User
 
Join Date: Feb 2008
My distro: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Rep Power: 1
agn is on a distinguished road
Default

Is the linux drive still the primary slave (hdb) ?
Reply With Quote
  #3 (permalink)  
Old 05-14-2008, 11:56 PM
Junior Member
User
 
Join Date: May 2008
My distro: Mandriva 10
Posts: 3
Rep Power: 0
John is on a distinguished road
Default Re: Drive position

Supposedly so. According to the BIOS, the drive is installed as the slave on the first channel.
Reply With Quote
  #4 (permalink)  
Old 05-15-2008, 01:05 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 902
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

This is known issue. All you have to do is pass correct option to grub boot loader while booting so it can mount file system and boot into a kernel. You need to modify line called root (hdX,Y).

When you see Grub boot loader hit esc key
  1. Select the kernel
  2. Press the e key to edit the entry root(hdX,Y)
  3. Press the e key to edit kernel entry
  4. Press ENTER key
  5. Now press the b key to boot
You may have to try root(hd1,0) for first slave, partition 0 and so on. Play little bit till you get success such as root(hd0,1), root(hd1,1) etc. See GNU GRUB Manual 0.97

Once booted successfully update your grub.conf with correct root(hdX,y) entry.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 05-15-2008, 04:45 AM
Junior Member
User
 
Join Date: May 2008
My distro: Mandriva 10
Posts: 3
Rep Power: 0
John is on a distinguished road
Default Lilo, not Grub

The system is using Lilo as the boot loader, not Grub. Would similar instructions apply in that case?
Reply With Quote
  #6 (permalink)  
Old 05-15-2008, 02:43 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 902
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

My bad, I assumed that you are using Grub. Anyway at LILO menu - Press [ESC] at lilo prompt try
Code:
root=/dev/hdXY
Where X can be a,b,cd
hda = 1st IDE Master
hdb = 1st IDE Slave
hdc = 2nd IDE Master
hdd = 2d IDE Slave

If you are using SCSI / SATA use /dev/sda and so on

Where Y is partition number starts with 1


lilo.conf(5): config file for lilo - Linux man page
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks

Tags
boot loader , grub , lilo , lilo.conf , linux


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
waiting for device dev/sda5 to appear secure Linux hardware 1 08-22-2007 12:00 PM
Add or attach new virtual usb block device for Linux XEN guest VPS rockdalinux XEN 0 06-15-2007 09:31 PM
Linux software for development device drivers marfy Linux software 1 04-16-2007 04:20 PM
Need help on moving files and something else karabaja Shell scripting 12 08-25-2006 04:28 PM
moving files based on size kavi Shell scripting 2 11-11-2005 05:17 PM


All times are GMT +5.5. The time now is 12:14 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36