Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #243852 > unrolled thread
| Started by | Pierre Couderc <pierre@couderc.eu> |
|---|---|
| First post | 2022-01-11 04:50 +0100 |
| Last post | 2022-01-15 20:20 +0100 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.debian.user
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
| From | Pierre Couderc <pierre@couderc.eu> |
|---|---|
| Date | 2022-01-11 04:50 +0100 |
| Subject | How do I change disk ? |
| Message-ID | <DEgky-5Mn-3@gated-at.bofh.it> |
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...
[toc] | [next] | [standalone]
| From | Hans <hans.ullrich@loop.de> |
|---|---|
| Date | 2022-01-11 11:30 +0100 |
| Message-ID | <DEmzG-1me-55@gated-at.bofh.it> |
| In reply to | #243852 |
[Multipart message — attachments visible in raw view] — view raw
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...
[toc] | [prev] | [next] | [standalone]
| From | Pierre Couderc <pierre@couderc.eu> |
|---|---|
| Date | 2022-01-11 17:30 +0100 |
| Message-ID | <DEsc3-56T-15@gated-at.bofh.it> |
| In reply to | #243853 |
[Multipart message — attachments visible in raw view] — view raw
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... > > >
[toc] | [prev] | [next] | [standalone]
| From | Hans <hans.ullrich@loop.de> |
|---|---|
| Date | 2022-01-11 20:10 +0100 |
| Message-ID | <DEuGS-6HX-11@gated-at.bofh.it> |
| In reply to | #243870 |
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...
[toc] | [prev] | [next] | [standalone]
| From | Pierre Couderc <pierre@couderc.eu> |
|---|---|
| Date | 2022-01-12 10:50 +0100 |
| Message-ID | <DEIqt-6XW-1@gated-at.bofh.it> |
| In reply to | #243884 |
Sorry to insist... but even for btrfs RAID1 disks of différent size ? OK, I shall try but I am surprised it is so simple... ;) On 1/11/22 20:01, Hans wrote: > 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... > > >
[toc] | [prev] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2022-01-15 20:20 +0100 |
| Message-ID | <DFWKJ-ql-1@gated-at.bofh.it> |
| In reply to | #243870 |
[Multipart message — attachments visible in raw view] — view raw
On Ma, 11 ian 22, 17:22:08, Pierre Couderc wrote: > Thank you. I am surprised; update-grub is enough to install grub correctly > on all drives...?? No, 'update-grub' is only used to update /boot/grub/grub.cfg. > > - install grub on the new harddrive (grub --install /dev/sdb or > > update-grub might do it) You will need 'grub-install /dev/sdb' or something like that, though you might need to run 'update-grub' afterwards. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web