Results 1 to 9 of 9

Thread: Delete home partition but retain grub dual boot?

  1. #1

    Default Delete home partition but retain grub dual boot?

    Hi
    I have a dual boot system with Suse sitting on top of Windows 10. I would like to free up space used by Suse to extend my Windows space. I'm planning to run Suse on a different machine entirely (I already backed up my user data) but I thought I'd have problems at boot since it currently uses grub. So my idea was to delete the home partition with Yast, but leave the boot partition. If I did that, would the boot into Windows via grub still work? If so, I'd then just extend the windows partition into the freed up space.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,138

    Default Re: Delete home partition but retain grub dual boot?

    Without real information your story is confusing. So please show:
    Code:
    lsblk -f
    Henk van Velden

  3. #3

    Default Re: Delete home partition but retain grub dual boot?

    Code:
    fred@localhost:~> lsblk -f
    NAME   FSTYPE LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINT
    sda                                                                            
    ├─sda1 vfat   ESP         BC84-481C                                            
    ├─sda2                                                                         
    ├─sda3 ntfs   OS          E0DA101EDA0FEF98                                     
    ├─sda4 ntfs               E6F63B7FF63B4F55                                     
    ├─sda5 ntfs   Image       58E03EAAE03E8E6E                                     
    └─sda6 ntfs   DELLSUPPORT 961453CD1453AECD                                     
    sdb                                                                            
    ├─sdb1                                                                         
    ├─sdb2 ntfs   DATA        C226C7F326C7E70F                                     
    ├─sdb3 vfat               D9FB-60DE                                            
    ├─sdb4 swap               a734fbe6-faca-4bb6-8baf-2af76cac9d4a                 
    ├─sdb5 btrfs              75c3c04e-8742-411f-95bd-8fd80c971e89                 
    ├─sdb6 btrfs              6a693123-3ade-4870-a971-bb25d998249e   16.6G    50% /root
    ├─sdb7 vfat               C54E-5C30                             494.6M     1% /boot/efi
    ├─sdb8 xfs                61cf5185-e691-40d1-96e0-62ad4a7f90d0  185.4G    73% /home
    └─sdb9 swap               f4b4f044-ab82-433b-a5f0-6b10e8bd93f2                [SWAP]
    sr0 
    

  4. #4

    Default Re: Delete home partition but retain grub dual boot?

    Actually, looking at that output, I seem to have a bunch of partitions doing nothing sbd 3, 4, 5, and possibly 1 too. I think these might be remnants of earlier Suse versions. Maybe I could delete these without any visible effect?

  5. #5
    Join Date
    Sep 2012
    Posts
    6,795

    Default Re: Delete home partition but retain grub dual boot?

    Quote Originally Posted by fredsiejo View Post
    Code:
    fred@localhost:~> lsblk -f
    NAME   FSTYPE LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINT
    sda                                                                            
    ├─sda1 vfat   ESP         BC84-481C                                            
    
    If you are on UEFI, you can simply change default boot option to Windows in BIOS Setup or using efibotmgr. Post output of "efibootmgr -v" on Linux.

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,138

    Default Re: Delete home partition but retain grub dual boot?

    Quote Originally Posted by fredsiejo View Post
    Actually, looking at that output, I seem to have a bunch of partitions doing nothing sbd 3, 4, 5, and possibly 1 too. I think these might be remnants of earlier Suse versions. Maybe I could delete these without any visible effect?
    That is something you should know of course. Except when someone else managed the system earlier and you inherited it without any documentation.

    But to me it looks as if your Windows (but I know nothing about Windows) is on sda and your openSUSE (and other unused and forgotten) Linux is on sdb (except maybe sdb2 which has an ntfs file system?). Thus follow @avidjaar's advice and the whole of sdb is free for anything you want to do with it (including removing it from the system).
    Henk van Velden

  7. #7

    Default Re: Delete home partition but retain grub dual boot?

    Code:
    fred@localhost:~> sudo efibootmgr -v
    [sudo] password for root:  
    BootCurrent: 0002
    Timeout: 0 seconds
    BootOrder: 0002,0005,0000,0001
    Boot0000* EFI PXE 0 for IPv4 (50-9A-4C-22-7C-BF)        PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(509a4c227cbf,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
    Boot0001* EFI PXE 0 for IPv6 (50-9A-4C-22-7C-BF)        PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/MAC(509a4c227cbf,0)/IPv6([::]:<->[::]:,0,0)RC
    Boot0002* opensuse-secureboot   HD(7,GPT,ea7738d7-6fa6-4c8d-8472-c7101a268cfa,0x14334800,0xfa000)/File(\EFI\opensuse\shim.efi)
    Boot0005* Windows Boot Manager  HD(1,GPT,cb6f5030-e4d0-4ff1-9f57-67cae993e429,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.
    d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...9................
    
    And yes, Windows OS is on sda, which is an SSD. Everything else is on sdb, including some Windows user data.

  8. #8
    Join Date
    Sep 2012
    Posts
    6,795

    Default Re: Delete home partition but retain grub dual boot?

    Quote Originally Posted by fredsiejo View Post
    Code:
    BootOrder: 0002,0005,0000,0001
    Boot0002* opensuse-secureboot   HD(7,GPT,ea7738d7-6fa6-4c8d-8472-c7101a268cfa,0x14334800,0xfa000)/File(\EFI\opensuse\shim.efi)
    Boot0005* Windows Boot Manager  HD(1,GPT,cb6f5030-e4d0-4ff1-9f57-67cae993e429,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.
    d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...9................
    
    If you are going to remove openSUSE anyway you can delete its boot option with
    Code:
    efibootmgr -B 0002
    after that computer should boot Windows by default. Or you should be able to change boot order and make Windows the first boot option with
    Code:
    efibootmgr -o 0005,0002,0000,0001
    keeping openSUSE.

  9. #9

    Default Re: Delete home partition but retain grub dual boot?

    Right. So if I understand what happens currently, EUFI invokes Suse as default, which in turn puts up the grub boot menu?
    (where, as it happens, I have Windows as the default boot). But if for any reason the Suse boot failed, EUFI would then go on to boot Windows anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •