Trying again: I installed grub twice on two drives, how to fix it?
Marco Fioretti
mfioretti at nexaima.net
Sun May 3 11:07:21 UTC 2020
On Sun, May 3, 2020 at 12:28, Ralf Mardorf via ubuntu-users wrote:
2) reconfigure/repartition the HD. Right now, what is still $HOME when
booting the HD install is $HOME/home/marco in the SSD install, and
this is how the HD is partitioned and mounted:
Don't rush things. "$HOME/home/marco" is probably a typo ;).
Yes, you are right, sorry. I meant /home/home/marco
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 82238097 82031250 39,1G 7 HPFS/NTFS/exFAT
/dev/sda3 82239488 625141759 542902272 258,9G 83 Linux
/dev/sda3 is a root directory or just /home? IIUC it's a root directory
containing /home, but you will only keep /home, not a bootable install
on sda3, right?
correct. /dev/sda3 was / in the HD install, and is mounted as /home by the SD one.
That is why right now I still have /home/usr, /home/bin, /home/sbin ...but I don't need/want them anymore.
Also, the HD where /dev/sda3 is now excluded by the BIOS boot sequence. But in the grub menu
I still have an entry to boot from that drive/partition, and it still works.
Deleting the Windows NTFS partitions is no big deal.
I spoke too early about removing the windows partitions. Family just told me we
may need them for a week or two (because some public website we MUST interact with
because of the lockdown only works with windows, it seems. No comment, but not negotiable...)
So the plan seems, please correct me if I am wrong:
1) just delete everything I don't need from /home, that is /home/boot, /home/root, /home/usr, /home/bin...
everything but my actual personal files
2) run sudo update-grub (which will delete the old entry, since there will be no more /boot, etc.. on the HD
3) as soon as it is possible to erase windows, backup everything somewhere else, delete the windows partitions with gparted,
expand the /dev/sda3 partition to fill the whole drive, again using gparted
4) change /home from being the /dev/sda3 partition to being a folder inside the / partition
5) mount /dev/sda3 on another, permanent location, e.g. /backup (just an example)
instructions on steps 4 and 5 are particularly welcome, to be sure I do not make my own user account temporarily unusable...
About this:
A backup drive shouldn't be inside the computer. Remove the drive and
assemble it into an USB enclosure.
of course, you are 400% right. Here and now (lockdown, local hardware stores closed, maybe won't reopen, online orders taking weeks to deliver...) is not possible, since I have no extra enclosures, cables, etc. So I have to accept the risk of keeping that drive inside for now.
Marco
--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com (mailto:ubuntu-users at lists.ubuntu.com)
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users (https://lists.ubuntu.com/mailman/listinfo/ubuntu-users)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20200503/e0e9b038/attachment.html>
More information about the ubuntu-users
mailing list