[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I change disk ?



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...





Reply to: