Deleting Windows

I’m going to delete the Windows partitions and expand /. Is there anything critical that I should leave alone? The EFI system partition, is that strictly for the Windows boot manager?

Unsure if it would be wise to delete efi in a dual boot scenario.

IIRC efi is only 500MB so I would leave it as is.

Depending on the layout of your drive it might be worth considering mounting the former windows partition inside /home/$user or somewhere else than doing risky maneuvers expanding /

2 Likes

You need the EFI partition on an EFI system, even if there is only one single system to boot. It’s your EFI BIOS that needs it, not Windows.

2 Likes

My home partition is more than sufficient in my setup. I only have 35 GB for / and that’s starting to run out of space.

Something is rwong … excessive cache, logs, etc, or maybe a horrendous amount of applications installed.

I easily have less than 1/2 that space used on / partition - using BTRFS … separate /home partition using XFS.

It is easy to reach 30-35GB on the / partition. As you don’t even know if the TO is using BTRFS or any other filesystem, stop claiming that this kind of space usage is wrong. For everybody who don’t uses BTRFS and has / on a seperate partition, all other directories excluding /home count to the usage. So it is easy to reach 35GB and more with normal use on /…

Another point is, if the TO uses BTRFS, experienced useres will know that it is easy to use the wrong tools to calculate the BTRFS space usage or misinterpret the results.

So before claiming that 35GB file usage is wrong, better ask the right questins:

  • which tools/commands where used to calculate the space usage
  • which filesystem and storage setup
1 Like

your disk layout would be interesting to see before making recommendations. is it a single disk setup with both linux and windows?
you should be able to wipe the windows data partition (C:) and expand your linux root, but leave efi alone or you won’t be able to boot anything.

1 Like

That is of course the first thing that should have been posted. Thus fdisk -l and lsblk-f.

I haven’t used Windows in years. I don’t even remember the password. I only retain it for warranty purposes, but that’s long expired. I have to upgrade to Leap 16.0 and want to take a snapshot first. Snapper isn’t configured, and those can get large. I have

> df -lh
Filesystem       Size  Used Avail Use% Mounted on
/dev/nvme0n1p6    35G   23G   12G  67% /
devtmpfs         4.0M  8.0K  4.0M   1% /dev
tmpfs            7.8G   32M  7.8G   1% /dev/shm
efivarfs         192K   57K  131K  31% /sys/firmware/efi/efivars
tmpfs            3.2G   19M  3.1G   1% /run
tmpfs            1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs            1.0M     0  1.0M   0% /run/credentials/systemd-sysctl.service
tmpfs            1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs            1.0M     0  1.0M   0% /run/credentials/systemd-vconsole-setup.service
/dev/nvme0n1p6    35G   23G   12G  67% /boot/grub2/i386-pc
/dev/nvme0n1p6    35G   23G   12G  67% /boot/grub2/x86_64-efi
/dev/nvme0n1p6    35G   23G   12G  67% /usr/local
/dev/nvme0n1p6    35G   23G   12G  67% /tmp
/dev/nvme0n1p6    35G   23G   12G  67% /root
/dev/nvme0n1p6    35G   23G   12G  67% /var
/dev/nvme0n1p6    35G   23G   12G  67% /srv
/dev/nvme0n1p6    35G   23G   12G  67% /opt
/dev/nvme0n1p10  150M  6.3M  144M   5% /boot/efi
/dev/nvme0n1p8   100G   36G   65G  36% /data
/dev/nvme0n1p7    40G   12G   29G  30% /home
/dev/sda1        916G  474G  396G  55% /multimedia
tmpfs            1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup.service
tmpfs            1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
tmpfs            1.6G   13M  1.6G   1% /run/user/1000
# fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SAMSUNG MZVLQ512HALU-00000              
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A87FE55E-612E-4071-93E2-A1D621844C76

Device              Start        End   Sectors  Size Type
/dev/nvme0n1p1       2048     206847    204800  100M EFI System
/dev/nvme0n1p2     206848     239615     32768   16M Microsoft reserved
/dev/nvme0n1p3     239616  209954815 209715200  100G Microsoft basic data
/dev/nvme0n1p4  998117376 1000214527   2097152    1G Windows recovery environmen
/dev/nvme0n1p5  919498752  920522751   1024000  500M Microsoft basic data
/dev/nvme0n1p6  920522752  993923071  73400320   35G Linux filesystem
/dev/nvme0n1p7  209954816  293840895  83886080   40G Linux filesystem
/dev/nvme0n1p8  293840896  503556095 209715200  100G Linux filesystem
/dev/nvme0n1p9  503556096  537110527  33554432   16G Linux swap
/dev/nvme0n1p10 993923072  994230271    307200  150M EFI System

Partition table entries are not in disk order.


Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1SB1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 484C96E6-B6D2-4861-87AC-92F449D230C3

Device     Start        End    Sectors   Size Type
/dev/sda1   2048 1953520063 1953518016 931.5G Linux filesystem

67% would be fine for normal operations, but I’m concerned about snapper and the migration tool using up the remaining free space.

I assume you are pointing to the 67% that is mentioned in the df listing. But hat most probably is a Btrfs file system. And there df does not deliver a useful answer (as already mentioned somewhere above).

And the lsblk -f is missing.

BTW, you seem to have two partitions of type EFI System, of which the one on p10 is mounted in your openSUSE system. Thus the openSUSE system “thinks” that is the correct one. But who knows?

Yes, it’s BTRFS.

> lsblk -f
NAME FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                            
└─sda1
     ext4   1.0            dd350386-0cc0-4e45-911b-a9a9a79b57ff  395.4G    52% /multimedia
sdb                                                                            
sr0                                                                            
nvme0n1
                                                                               
├─nvme0n1p1
│    vfat   FAT32 ESP      BAB6-AE78                                           
├─nvme0n1p2
│                                                                              
├─nvme0n1p3
│    ntfs         Acer     C2AAB781AAB77091                                    
├─nvme0n1p4
│    ntfs         Recovery E6C6BA3CC6BA0D35                                    
├─nvme0n1p5
│    vfat   FAT16          AF8E-519B                                           
├─nvme0n1p6
│    btrfs                 f65e3d61-2dc7-459e-9417-91da2a84454e   11.6G    65% /opt
│                                                                              /srv
│                                                                              /var
│                                                                              /root
│                                                                              /tmp
│                                                                              /usr/local
│                                                                              /boot/grub2/x86_64-efi
│                                                                              /boot/grub2/i386-pc
│                                                                              /
├─nvme0n1p7
│    xfs                   79f03fa4-5fd2-48ad-a9a1-3a9a070cefe1     28G    30% /home
├─nvme0n1p8
│    xfs                   ef0b3720-e3f9-463d-ae70-9cee2705068e   64.3G    36% /data
├─nvme0n1p9
│    swap   1              7fa04449-63e3-45d5-b3ab-37b4ee623869                [SWAP]
└─nvme0n1p10
     vfat   FAT16          6F5D-14DF                             143.6M     4% /boot/efi

Then please read this:

Check your snapper configuration - how many snapshots are kept, what cleanup strategy you are using etc.

https://en.opensuse.org/openSUSE:Snapper_Tutorial

Again, snapper isn’t configured. I didn’t enable it on the initial installation. I intend to do a manual snapshot now before upgrading to 16.0.

Hey everyone

jonc hasn’t asked how to get more space, or if he’s using too much, or anything like that. He believes, with some justification, that the free space he has right now might not be enough, and that he has free space he could use but it’s occupied by a Windows installation he’s not using.

And he’s simply asking how to delete Windows.

Can he delete the EFI partition? Probably not, and the best thing he can do is leave it. Besides, it’s a trivial partition.

What else should he do?
Delete the Windows partition, of course. Actually, he can change its type to btrfs and add it back to the system as is; I think that should work :grinning:
That applies to all Windows partitions, excluding the EFI, of course.

The boot menu is supposed to be generated dynamically. You delete the partition, and os-prober won’t create the Windows entry next time. One of the files in the EFI partition contains the information for the BIOS to load the Windows boot menu. The best thing to do is delete that, but it’s not really a problem.

To add the partitions, sudo btrfs device add /dev/(partition) / -f i.e. sudo btrfs device add /dev/nvme0n1p3 / -f

And that’s it.

Which one? There are two of them.

It seems he is using nvme0n1p10.

I think he can delete nvme0n1p1 but is about 100 M. He can leave it, or he can mount both and see which one has the Windows input and if it doesn’t have an input for Leap/Tumbleweed, etc.

But that is a good question, nor about free space.

Maybe not, but when he wants to clean up looking into this might give him a better picture about what is needed in a MS-Window-less future.

It has nothing to do with free or occupied space, nothing to do with us discussing this now here, it makes no sense.

Sometimes, with the best intentions, we overthink what people ask. Here’s one question. You could suggest he consider why he’s short on space. But he doesn’t want Windows at all!

Btw, Leap 16 clean install:

tux@pc-guay:~> sudo btrfs filesystem df /
[sudo] contraseña para tux: 
Data, single: total=9.01GiB, used=7.69GiB
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=512.00MiB, used=404.67MiB
GlobalReserve, single: total=24.36MiB, used=0.00B

User has three ESP’s need to check each one for the existence of other operating systems on those via mounting each one in turn and check contents…

By default AFAIK, system will look for the first instance, else have to specify the location…

On the hardware that I have tested, the system looks at all EFI partitions.

Hmm, that’s not quite correct. On a KVM virtual machine, it looked at only the first. But on two Dell systems and a Lenovo system, it looked at all EFI partitions.