Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #243884

Re: How do I change disk ?

From Hans <hans.ullrich@loop.de>
Newsgroups linux.debian.user
Subject Re: How do I change disk ?
Date 2022-01-11 20:10 +0100
Message-ID <DEuGS-6HX-11@gated-at.bofh.it> (permalink)
References <DEgky-5Mn-3@gated-at.bofh.it> <DEmzG-1me-55@gated-at.bofh.it> <DEsc3-56T-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am Dienstag, 11. Januar 2022, 17:22:08 CET schrieb Pierre Couderc:
Yes, should be so by default.

Good luck!

Hans
> Thank you. I am surprised;  update-grub is enough to install grub
> correctly on all drives...??
> 
> On 1/11/22 11:24, Hans wrote:
> > Am Dienstag, 11. Januar 2022, 04:38:36 CET schrieb Pierre Couderc:
> > 
> > My way:
> > 
> > 
> > - Boot with a live cd with clonezilla on it (i.e. clonezilla live)
> > 
> > 
> > - clone the complete harddrive to the new one. Pay attentention, that
> > the new one must be equal or bigger than the source.
> > 
> > 
> > - Use another live cd with gparted on it and move or resize the
> > partitions.
> > 
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > Second way (more work and more complicated):
> > 
> > 
> > - Boot with a linux live system (debian live, Knoppix whatever)
> > 
> > 
> > - mount the old one to a new mountpoint in root, like /disk1
> > 
> > 
> > - partition the new drive to your needs manually
> > 
> > 
> > - mount the new one to a new mountpoint in root, like /disk2
> > 
> > 
> > - use rsync for transferring data to the new one
> > 
> > 
> > - reboot to your old system with the connected new harddrive
> > 
> > 
> > - install grub on the new harddrive (grub --install /dev/sdb or
> > update-grub might do it)
> > 
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > Have fun
> > 
> > 
> > 
> > Best
> > 
> > 
> > Hans
> > 
> > > I have a btrfs RAID1 system. I did install it with /dev/sda disk (efs on
> > > 
> > > sda1, btrfs on sda2). Then, after install,  I added  a sdb disk (vfat on
> > > 
> > > sdb1, btrfs on sdb2) and I did  btrfs balance.
> > > 
> > > 
> > > 
> > > As /dev/sda is now old, I want to change it. I know btrfs procedures but
> > > 
> > > I do not know grub procedures.
> > > 
> > > 
> > > 
> > > I suppose I should install "some grub thing" on sdb1 and inform the
> > > 
> > > system to boot on sdb1. How to do that ?
> > > 
> > > 
> > > 
> > > Is there a good tutorial that I have not found ?
> > > 
> > > 
> > > 
> > > Is it possible to have a system booting automatically on sdb1 if sda1
> > > 
> > > fails ?
> > > 
> > > 
> > > 
> > > In fact I did add later an identical sdc disk...

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do I change disk ? Pierre Couderc <pierre@couderc.eu> - 2022-01-11 04:50 +0100
  Re: How do I change disk ? Hans <hans.ullrich@loop.de> - 2022-01-11 11:30 +0100
    Re: How do I change disk ? Pierre Couderc <pierre@couderc.eu> - 2022-01-11 17:30 +0100
      Re: How do I change disk ? Hans <hans.ullrich@loop.de> - 2022-01-11 20:10 +0100
        Re: How do I change disk ? Pierre Couderc <pierre@couderc.eu> - 2022-01-12 10:50 +0100
      Re: How do I change disk ? Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-15 20:20 +0100

csiph-web