<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: boot disk substituition in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087707#M6994</link>
    <description>Yes boot in rescue chroot to disk and there &lt;BR /&gt; &lt;BR /&gt;#/etc/lilo&lt;BR /&gt; &lt;BR /&gt;if it is lilo you had on disk.&lt;BR /&gt; &lt;BR /&gt;J-P&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Oct 2003 05:35:20 GMT</pubDate>
    <dc:creator>Huc_1</dc:creator>
    <dc:date>2003-10-14T05:35:20Z</dc:date>
    <item>
      <title>boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087696#M6983</link>
      <description>Hi all.&lt;BR /&gt;&lt;BR /&gt;I got a linux box with 2 ide disks, hda and hdb.&lt;BR /&gt;the boot disk (hda) is giving some signals of an imminent mechanical failure (sometimes I hear strange noises from it). But it is still working.&lt;BR /&gt;&lt;BR /&gt;I'm thinking to bring the whole linux system on hdb, connect it as primary master and then boot from it. the old broken hda will become the new hdb... and then I'll wait for its death :-)&lt;BR /&gt;&lt;BR /&gt;How can I do this? I want to keep this working linux without reinstallation.&lt;BR /&gt;Eventually I can connect these disks (one at time) to another linux machine with a lot of disk space, in order make some kind of copy between them.&lt;BR /&gt;&lt;BR /&gt;thanks a lot!&lt;BR /&gt;Claudio&lt;BR /&gt;&lt;BR /&gt;P.S.: these disks have different capacity. 6 GB  for hda (4 GB used), 5.1 GB for hdb.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2003 02:06:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087696#M6983</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-10-08T02:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087697#M6984</link>
      <description>You have the ghost utility. There is a version that runs directly under OS. I got one that runs under Windows(2000,XP),I'm sure they have for Linux too.&lt;BR /&gt;&lt;BR /&gt;You can try mirroring the disk ,but since your second disk is smaller then the first -I'm not sure it'll work.&lt;BR /&gt;Best Regards.</description>
      <pubDate>Wed, 08 Oct 2003 02:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087697#M6984</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2003-10-08T02:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087698#M6985</link>
      <description>If the disk are identical, dd will copy disk to disk. But it is a bit-by-bit copy and if the source disk has errors, dd will copy those.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Wed, 08 Oct 2003 02:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087698#M6985</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2003-10-08T02:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087699#M6986</link>
      <description>If you have your disk in a LVM volume group you can use pvmove to move physical extents to the  other disk.  It doesn't sound like you have this so your only option is to use cpio or tar or possibly dd (tar won't copy device files but you can do a quick script to re-create them) and copy everything to similarly created filesystems on the other disk.  If you run lilo don't forget to install lilo on the other disk and adjust lilo.conf (or grub.conf if that's your thing).</description>
      <pubDate>Wed, 08 Oct 2003 03:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087699#M6986</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-08T03:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087700#M6987</link>
      <description>These disks aren't identical, as I said before.&lt;BR /&gt;the second disk is smaller than the first, but the data can fit into it.&lt;BR /&gt;&lt;BR /&gt;hda is partitioned so:&lt;BR /&gt;/dev/hda1: 1.8 GB for /&lt;BR /&gt;/dev/hda2: 200 MB swap space&lt;BR /&gt;/dev/hda3: 4 GB for /home&lt;BR /&gt;&lt;BR /&gt;/home isn't so important, I can copy its content somewhere else. just keep the system working on the second disk is enough for me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2003 03:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087700#M6987</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-10-08T03:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087701#M6988</link>
      <description>You can create partitions on the new drive ( not necessary the same size) and then using dump/restore to transfer the partition files. Repeat for each partition. Then reinstall your bootloader.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Wed, 08 Oct 2003 03:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087701#M6988</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2003-10-08T03:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087702#M6989</link>
      <description>You could also.&lt;BR /&gt;&lt;BR /&gt;make a bootable floppy &lt;BR /&gt;partition disk &lt;BR /&gt;mark first partition as bootable (from fdisk)&lt;BR /&gt;make a file system's' on partition's'&lt;BR /&gt; from the file found in / write script like &lt;BR /&gt;ex: &lt;BR /&gt; rsync -avz /bin /bck&lt;BR /&gt; rsync -avz /boot /bck&lt;BR /&gt; rsync -avz /dev /bck&lt;BR /&gt; rsync -avz /etc /bck&lt;BR /&gt; rsync -avz /home /bck&lt;BR /&gt; rsync -avz /initrd /bck&lt;BR /&gt; rsync -avz /lib /bck&lt;BR /&gt; rsync -avz /lost+found /bck&lt;BR /&gt; rsync -avz /misc /bck&lt;BR /&gt; rsync -avz /mnt /bck&lt;BR /&gt; rsync -avz /opt /bck&lt;BR /&gt; rsync -avz /root /bck&lt;BR /&gt; rsync -avz /sbin /bck&lt;BR /&gt; rsync -avz /System.map /bck&lt;BR /&gt; rsync -avz /tmp /bck&lt;BR /&gt; rsync -avz /usr /bck&lt;BR /&gt; rsync -avz /var /bck&lt;BR /&gt; rsync -avz /vmlinuz /bck&lt;BR /&gt;&lt;BR /&gt;bring system to single user&lt;BR /&gt;run your tailored rsync script&lt;BR /&gt;stop system&lt;BR /&gt;physicaly switch disk hda to hdb, hdb to hda&lt;BR /&gt;boot from floppy&lt;BR /&gt;watch for error&lt;BR /&gt;login as root&lt;BR /&gt;run lilo ro grube&lt;BR /&gt;correct errors ?&lt;BR /&gt;take out floppy&lt;BR /&gt;boot&lt;BR /&gt;watch for errors ?&lt;BR /&gt;when all is well add hdb to fstab as read only&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;note that he command rsync could be used to remote node but then not from single user mode !&lt;BR /&gt; &lt;BR /&gt;The above could give you a few error's on open files (not a lot from single user mode !)&lt;BR /&gt; &lt;BR /&gt;That iw why I thing in theses senario Ghost is still the best/safest way.&lt;BR /&gt; &lt;BR /&gt;Hope this helps&lt;BR /&gt; &lt;BR /&gt;J-P&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2003 04:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087702#M6989</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-08T04:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087703#M6990</link>
      <description>In the above reply forgot the following &lt;BR /&gt;  &lt;BR /&gt;bring system to single user&lt;BR /&gt;------------&lt;INSERT&gt;-----------------&lt;BR /&gt;mount /dev/hdb /bck&lt;BR /&gt;-------------&lt;END insert=""&gt;-----------&lt;BR /&gt;run your tailored rsync script&lt;BR /&gt; &lt;BR /&gt;Mea maximila culpa.&lt;BR /&gt; &lt;BR /&gt;J-P&lt;/END&gt;&lt;/INSERT&gt;</description>
      <pubDate>Wed, 08 Oct 2003 04:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087703#M6990</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-08T04:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087704#M6991</link>
      <description>I'll try your suggestions this weekend. See ya next week for the points!&lt;BR /&gt;&lt;BR /&gt;thanks again,&lt;BR /&gt;Claudio</description>
      <pubDate>Wed, 08 Oct 2003 05:06:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087704#M6991</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-10-08T05:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087705#M6992</link>
      <description>Hi all... I'm here again.&lt;BR /&gt; &lt;BR /&gt;I tried the dump/restore solution... It seemed to me enough simple.&lt;BR /&gt; &lt;BR /&gt;1. connected the 6GB disk on another linux machine as IDE primary slave.&lt;BR /&gt; &lt;BR /&gt;2. 'dump'ed the /dev/hdb1 and /dev/hdb3 to file.&lt;BR /&gt; &lt;BR /&gt;3. connected the 5.1GB disk on the same machine.&lt;BR /&gt; &lt;BR /&gt;4. repartitioned this disk like the old one: /dev/hdb1 (ext2), /dev/hdb2 (swap), /dev/hdb3 (ext2) BUT a little bit smaller partitions.&lt;BR /&gt; &lt;BR /&gt;5. 'restore'ed from file the partitions 1 and 3.&lt;BR /&gt; &lt;BR /&gt;6. reconnected this disk on his original machine, as primary master.&lt;BR /&gt; &lt;BR /&gt;7. boot from floppy, a floppy that works well with the original boot disk (the 6GB one). I still haven't installed grub on this hard disk.&lt;BR /&gt; &lt;BR /&gt;8. got an error: 'kernel panic: no init found. try passing the init= parameter' or something similar.&lt;BR /&gt;I think that the init executable file should be exactly where it was on the old disk... What's wrong?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Claudio</description>
      <pubDate>Tue, 14 Oct 2003 04:18:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087705#M6992</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-10-14T04:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087706#M6993</link>
      <description>try to boot into rescue and in a chroot enviroment install grub in MBR</description>
      <pubDate>Tue, 14 Oct 2003 04:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087706#M6993</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2003-10-14T04:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087707#M6994</link>
      <description>Yes boot in rescue chroot to disk and there &lt;BR /&gt; &lt;BR /&gt;#/etc/lilo&lt;BR /&gt; &lt;BR /&gt;if it is lilo you had on disk.&lt;BR /&gt; &lt;BR /&gt;J-P&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Oct 2003 05:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087707#M6994</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-14T05:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087708#M6995</link>
      <description>&lt;BR /&gt;It may be that your "root=" line is no longer correct on the floppy.  Check which device is which in the boot messages you get before your panic.  Try a append="init=/bin/sh" in your lilo.conf which should at least get you a shell on boot so you can see what state your machine is in. Check what has been mounted where.  If this fails then your / filesystem is probably not mounted.&lt;BR /&gt; &lt;BR /&gt;One other option is to create a small partition on your new disk and install a tiny linux on it.  Boot that.</description>
      <pubDate>Tue, 14 Oct 2003 06:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087708#M6995</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-14T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087709#M6996</link>
      <description>Best,&lt;BR /&gt;&lt;BR /&gt;Dit you try this:&lt;BR /&gt;dd if=/dev/hda1 of=/dev/hdb1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;succes&lt;BR /&gt;&lt;BR /&gt;Idriz&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Oct 2003 13:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087709#M6996</guid>
      <dc:creator>I.Delic</dc:creator>
      <dc:date>2003-10-14T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087710#M6997</link>
      <description>Did you finaly get to try it, Claudio.&lt;BR /&gt; &lt;BR /&gt;I be interested by how you did it&lt;BR /&gt; &lt;BR /&gt;J-P (0 pts for this just a question ?, tks)&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Oct 2003 08:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087710#M6997</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-16T08:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087711#M6998</link>
      <description>Sorry for the delay... It is one of my home machines (a tiny 486 100Mhz happy to be yet in use), and in the evening I haven't got much time for hardware maintenance. However...&lt;BR /&gt; &lt;BR /&gt;Answering to Mark Grant, the root= parameter is correct. It is root=/dev/hda1 and with the old disk (6GB) it works. I have copied that partition in the first partition of the new disk (5.1GB) so, when I connect the new disk&lt;BR /&gt;as primary master the boot partition is always /dev/hda1.&lt;BR /&gt;I'm quite sure that the kernel on the floppy hangs because it cannot mount /dev/hda1 of the new disk as /. But I don't know why.&lt;BR /&gt; &lt;BR /&gt;The suggestion of I.Delic (dd if=/dev/hda1 of=/dev/hdb1) isn't good, I think: the source and the destination partitions have different sizes.&lt;BR /&gt; &lt;BR /&gt;I suspended (temporarily) these experiments when I connected the old disk (6GB) as primary master, the new disk (5.1GB) as secondary master and booted rom floppy, expecting to have /dev/hda1 as root partition.&lt;BR /&gt;After a while I realized that the root partition was /dev/hdc1 (?!?!?!???) mmmmmh... Now I got to discover what's happened.&lt;BR /&gt; &lt;BR /&gt;I'll keep you informed.&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Claudio&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Oct 2003 08:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087711#M6998</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-10-16T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: boot disk substituition</title>
      <link>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087712#M6999</link>
      <description>Problem solved. The boot floppy was unable to boot the linux contained in the new harddisk because I formatted the root partition using ext2.&lt;BR /&gt; &lt;BR /&gt;I suppose (but I'm not sure) that the boot floppy's kernel mounts in read-only mode the /dev/hda1 partition, read the /etc/fstab file (where /dev/hda1 is specified as ext3 filesystem), then it tries to remount that partition in read-write mode using ext3. As I said before, it is an ext2 filesystem so the system hangs.&lt;BR /&gt; &lt;BR /&gt;I repeated the restore process after formatting /dev/hda1 of the new harddisk using ext3, then boot from floppy, install grub, reboot again. Wow... it worked!&lt;BR /&gt; &lt;BR /&gt;Sergejs Svitnevs' solution, dump &amp;amp; restore, worked great. Thanks to all!&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Claudio</description>
      <pubDate>Sat, 18 Oct 2003 20:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/boot-disk-substituition/m-p/3087712#M6999</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-10-18T20:25:06Z</dc:date>
    </item>
  </channel>
</rss>

