• Re: Moving root partition to new disk

    From Chris@110:300/11 to All on Wed Mar 28 09:43:58 2018
    J.O. Aho <user@example.net> wrote:
    On 03/27/18 23:27, Chris wrote:
    J.O. Aho <user@example.net> wrote:

    I don't know if it's an upside, you still run on an unstable OS which do >>> send information about you to the company unencrypted and which you do
    not have the power to disable.

    True. We'll see how it goes.

    If you have to go MS, then at least do use Win7.

    Not an option for the latest coffee lake processors and chipsets - only
    supported in Windows 10.

    Not sure it's 100% accurate, seems to be a number of people who
    installed ms-win-7 on Asus Maximus X Hero with Coffe Lake CPU, but then
    I don't use much more ms-win than run a copy at work in a virtual
    machine so that I can use latest version of Visual Studio (some of our products are made for ms-win only, others I do use KDevelop or VIM to
    write the code for).

    Yeah, I'm sure it's possible. I don't want spend my time dealing with
    random errors and instability - or at least MORE random errors than a
    typical windows install ;)


    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Wed Mar 28 11:29:30 2018
    On Tuesday, March 27, 2018 at 9:39:15 AM UTC-7, Chris wrote:
    Johnny <johnny@invalid.net> wrote:
    On Mon, 26 Mar 2018 20:46:49 -0000 (UTC)
    Chris <ithinkiam@gmail.com> wrote:
    =20
    Johnny <johnny@invalid.net> wrote:
    On Sun, 25 Mar 2018 12:04:56 +0100
    chris <ithinkiam@gmail.com> wrote:
    =20
    I want to move my current ubuntu 16.04 root partition from /dev/sda
    to /dev/sdd and then make /dev/sdd the main boot disk. The
    old /dev/sda is going to be used in a different machine FWIW.
    =20
    =20
    I'm quite happy with the moving of the actual contents of the
    partition whilst running a live version of ubuntu, but I've never
    been confident regarding the MBR and resetting GRUB to point to the
    new disk & partition. Can someone give me some pointers on how to
    go about it, please?
    =20
    Many thanks! =20
    =20
    I use Linux Mint, and this is how I reinstalled grub:
    =20
    From a live version of Linux Mint, I ran these commands:
    =20
    sudo mount /dev/sda1 /mnt
    =20
    sudo grub-install --boot-directory=3D/mnt/boot /dev/sda
    =20
    =20
    =20
    Just to confirm that the above worked exactly as indicated. Thanks
    Johnny!
    =20
    =20
    =20
    Glad I could help. I used it about two years ago when I was stupid
    enough to install Windows 10 after I installed Linux Mint. I no longer
    use Windows for anything.
    =20
    I've been Windows free at home for the best part of 10 years. Now, howeve=
    r,
    I'm wanting a gaming rig so am having to get Windows.
    =20
    The upside is that I can install linux directly from within Windows 10.
    I've had a bit of a play and it seems great.



    What I do is certainly faster. All that he cares about is that John 'Super = Troll' Gohde gets to express his robocall and then hang up and giggle about=
    it. The fact that Allie Higley is a real person on the other end of the ph= one is his motivation. Promotion is a wonderful thing and consumer ignoranc=
    e is even better. Ha, ha, ha!=20



    -=20
    Get Rich Slow
    https://youtu.be/48_DdtLGR9s
    Jonas Eklundh Communication

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Carlos E.R.@110:300/11 to All on Wed Mar 28 14:15:22 2018
    On 2018-03-27 23:16, Pascal Hambourg wrote:
    Le 27/03/2018 à 18:22, Chris a écrit :
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
    Le 26/03/2018 à 09:32, Chris a écrit :
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:

    Don't forget to update UUIDs in /boot/grub/grub.cfg.

    Why? Doesn't grub-install pick them up?

    grub-install does not create nor update grub.cfg. This is update-grub's
    job, and that must be done from the target system (chroot) because it
    does not have an option to specify the root directory.

    Hmm. It seemed to work fine here.

    Once I'd copied / from sda1 to sdd1, i removed sda and moved sdd to its
    slot. Then with a live usb i booted and ran grub-install on the new
    sda as
    indicated above.

    Rebooted to the hdd linux and it worked as expected. No need to fiddle
    with
    the fstab.

    How did you copy the root filesystem ? By cloning the raw partition with
    dd or the like or by file copy with cp or rsync ? I guess cloning, which copies the UUID ?

    Or rsync with labels.

    --
    Cheers, Carlos.

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Wed Mar 28 14:21:05 2018
    On Wednesday, March 28, 2018 at 5:16:09 AM UTC-7, Carlos E.R. wrote:
    On 2018-03-27 23:16, Pascal Hambourg wrote:
    Le 27/03/2018 =C3=A0 18:22, Chris a =C3=A9crit=C2=A0:
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
    Le 26/03/2018 =C3=A0 09:32, Chris a =C3=A9crit=C2=A0:
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:

    Don't forget to update UUIDs in /boot/grub/grub.cfg.

    Why? Doesn't grub-install pick them up?

    grub-install does not create nor update grub.cfg. This is update-grub=
    's
    job, and that must be done from the target system (chroot) because it
    does not have an option to specify the root directory.

    Hmm. It seemed to work fine here.

    Once I'd copied / from sda1 to sdd1, i removed sda and moved sdd to it=
    s
    slot. Then with a live usb i booted and ran grub-install on the new
    sda as
    indicated above.

    Rebooted to the hdd linux and it worked as expected. No need to fiddle
    with
    the fstab.
    =20
    How did you copy the root filesystem ? By cloning the raw partition wit=
    h
    dd or the like or by file copy with cp or rsync ? I guess cloning, whic=
    h
    copies the UUID ?
    =20
    Or rsync with labels.
    =20
    --=20
    Cheers, Carlos.



    Protected code is best done with code morphing. I'm not angry, he wants me =
    to be but I am laughing at him because Audra Moore's nonsense is so clear. =
    He actively didn't introduce all the specifications that he would later poo=
    poo... and we all know why. At least he has morons in his corner ;) Given = how often it seems that Audra Moore's signature is some skew of a statement=
    Tatiana Spearman made which had been a drubbing on Audra Moore for somethi=
    ng he did which was foolish/false/etc... its truly a common sign of Audra M= oore's continuing butthurt for having been so repeatedly defeated: Audra Mo= ore is undeniably unable of dealing with this group. What did you hope for = from the lying imbecile? That Audra Moore peabrain has nothing to blow but = time. He has nothing else. Especially not a caring family. I have been arou=
    nd to fully determine the depths of the guy's descent. Open source is only = free if your time has no value.=20

    Do you have a high school diploma? I bet Audra Moore thinks his life was wo= rse than Tatiana Spearman's.=20

    -=20
    My Snoring Solution
    http://www.5z8.info/add-worm_z4r9qk_fakelogin
    Jonas Eklundh Communication AB

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)
  • From Chris@110:300/11 to All on Wed Mar 28 19:27:22 2018
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
    Le 27/03/2018 à 18:22, Chris a écrit :
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
    Le 26/03/2018 à 09:32, Chris a écrit :
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:

    Don't forget to update UUIDs in /boot/grub/grub.cfg.

    Why? Doesn't grub-install pick them up?

    grub-install does not create nor update grub.cfg. This is update-grub's
    job, and that must be done from the target system (chroot) because it
    does not have an option to specify the root directory.

    Hmm. It seemed to work fine here.

    Once I'd copied / from sda1 to sdd1, i removed sda and moved sdd to its
    slot. Then with a live usb i booted and ran grub-install on the new sda as >> indicated above.

    Rebooted to the hdd linux and it worked as expected. No need to fiddle with >> the fstab.

    How did you copy the root filesystem ? By cloning the raw partition with
    dd or the like or by file copy with cp or rsync ? I guess cloning, which copies the UUID ?


    I guess that must be it.


    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (110:300/11@linuxnet)
  • From Steven Petruzzellis@110:300/11 to All on Wed Mar 28 21:37:35 2018
    On Wednesday, March 28, 2018 at 5:16:09 AM UTC-7, Carlos E.R. wrote:
    On 2018-03-27 23:16, Pascal Hambourg wrote:
    Le 27/03/2018 =C3=A0 18:22, Chris a =C3=A9crit=C2=A0:
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:
    Le 26/03/2018 =C3=A0 09:32, Chris a =C3=A9crit=C2=A0:
    Pascal Hambourg <pascal@plouf.fr.eu.org> wrote:

    Don't forget to update UUIDs in /boot/grub/grub.cfg.

    Why? Doesn't grub-install pick them up?

    grub-install does not create nor update grub.cfg. This is update-grub=
    's
    job, and that must be done from the target system (chroot) because it
    does not have an option to specify the root directory.

    Hmm. It seemed to work fine here.

    Once I'd copied / from sda1 to sdd1, i removed sda and moved sdd to it=
    s
    slot. Then with a live usb i booted and ran grub-install on the new
    sda as
    indicated above.

    Rebooted to the hdd linux and it worked as expected. No need to fiddle
    with
    the fstab.
    =20
    How did you copy the root filesystem ? By cloning the raw partition wit=
    h
    dd or the like or by file copy with cp or rsync ? I guess cloning, whic=
    h
    copies the UUID ?
    =20
    Or rsync with labels.
    =20
    --=20
    Cheers, Carlos.



    Things change. Maybe the concept of a newspaper is getting past its prime. = Autumn Elizabeth Nissen asked to be rated according to objective trolling c= riteria, which Tatiana Spearman accommodated. Was that meant to be your bes=
    t shot? "Missed it by that much" said Autumn Elizabeth Nissen's boyfriend.=
    =20

    --
    My Snoring Solution!! http://www.5z8.info/killallimmigrants_j6f7mm_gruesome-gunshot-wounds
    Jonas Eklundh

    --- MBSE BBS v1.0.7.2 (GNU/Linux-x86_64)
    * Origin: The Kofo System II BBS (110:300/11@linuxnet)