Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Accidentally deleted Windows after installing Linux

  1. #1
    Join Date
    Dec 2022
    Beans
    1

    Accidentally deleted Windows after installing Linux

    After I installed Linux (Lubuntu), I realize that I might have accidentally deleted Windows, below I have attached a screenshot of the output when I enter

    Code:
    sudo fdisk -l


    in my terminal.


    I am thinking to delete /dev/nvme0n1p2 and /dev/nvme0n1p4 partitions and re-install Windows again for dual-booting.
    Is this the right direction? Thank you!!
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2013
    Location
    East Yorkshire
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Accidentally deleted Windows after installing Linux

    If you wish to dual boot, you'll need to shrink your Linux partition (nvme0n1p3) by the size you wish your windows partition to be. Format the space you've created as NTFS, then install Windows on that.
    Gparted should be able to help you with that.

  3. #3
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Accidentally deleted Windows after installing Linux

    I believe the user is saying that they had Windows installed, attempted to install Ubuntu (presumably as a dual boot) and wiped out Windows.

    If such is the case, the user may not have installation media.

    The question is: How to restore the Windows installation.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  4. #4
    Join Date
    Jan 2013
    Location
    East Yorkshire
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Accidentally deleted Windows after installing Linux

    So first question. Do you have your Windows installation media to boot from?

  5. #5
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Accidentally deleted Windows after installing Linux

    ... and, do you have your backups handy?
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  6. #6
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Accidentally deleted Windows after installing Linux

    You have recovery environment partition. Go here to read what WinRe is and what you can do with it:
    https://learn.microsoft.com/en-us/wi...iew=windows-11

  7. #7
    Join Date
    May 2010
    Beans
    3,402

    Re: Accidentally deleted Windows after installing Linux

    Install Windows but leave space for Ubuntu unpartitioned and unallocated. You can then install Ubuntu to the space

  8. #8
    Join Date
    Oct 2017
    Location
    /dev/sdx
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Accidentally deleted Windows after installing Linux

    Quote Originally Posted by fung0808 View Post
    After I installed Linux (Lubuntu), I realize that I might have accidentally deleted Windows, below I have attached a screenshot of the output when I enter

    Code:
    sudo fdisk -l


    in my terminal.


    I am thinking to delete /dev/nvme0n1p2 and /dev/nvme0n1p4 partitions and re-install Windows again for dual-booting.
    Is this the right direction? Thank you!!
    Your /dev/nvme0n1p2 is only 16MB you can't use that one for your MS Windows. I prefer you create another unallocated partition for your MS Windows coming from your /dev/nvme0n1p3. Once done, then install MS Windows on it. You can't just install and uninstall on your drive. You just have to plan first before going into action. You can easily choose "along side with MS Windows" If you want dual boot in your system. You should have be careful in reading instructions so that you don't accidentally delete important files in your system. In this case, you should have to create another unallocated partition then be careful which partition you should choose when installing other Operating System.
    Example: For placing the other operating system to other newly created partition. Once you knew that, you will never gonna erase your existing other Operating System. Regards and cheers
    corn ubuntuforums community.
    Open Source platform where the real world of human is here. Click here for Solve thread

  9. #9
    Join Date
    Jan 2018
    Beans
    121

    Re: Accidentally deleted Windows after installing Linux

    Quote Originally Posted by QIII View Post
    I believe the user is saying that they had Windows installed, attempted to install Ubuntu (presumably as a dual boot) and wiped out Windows.

    If such is the case, the user may not have installation media.

    The question is: How to restore the Windows installation.
    VMC's post on the recovery partition may be better but with Dell you can also download a recovery ISO image.
    Last edited by donald187; December 21st, 2022 at 06:46 AM.

  10. #10
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Accidentally deleted Windows after installing Linux

    Yes. I understand that.

    What is being described in that post is re-installation, not recovery/restoration. While re-installation may be necessary, nobody has mentioned recovering the OP's files and data.

    You will note that I asked about the OP's backups, which likely do not exist. We do not have an answer to that yet. Nobody has indicated to the OP whether or not they can recover their data in the machine's present state. Nobody has said anything to indicate to the OP that re-installation will not restore data, but make it unrecoverable at this point.

    Any attempt at data recovery, if it will work, will need to happen before re-installing.

    That being the case, any discussion of how to "recover" the Windows installation will necessarily start with a discussion of the feasibility of data recovery.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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