LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Erasing partition table (https://www.linuxquestions.org/questions/linux-distributions-5/erasing-partition-table-4175664253/)

jamasoo 11-14-2019 09:20 AM

Erasing partition table
 
1 Attachment(s)
Hello,

How could i rewrite my partition table as to have only the Windows OS partition?

It is my job's computer and i have already installed Slackware, Ubuntu, and Xubuntu (which are great) but now i definitely need to erase those because i am not allowed to do it, according to my boss.

I have installed gparted but could also work with cfdisk.

My computer needs to be as it was in the beginning, otherwise i could be in a big trouble.

Thanks for any help

M

jsbjsb001 11-14-2019 09:28 AM

If you made a clone image of the drive before you installed said Linux distro's, then you could just restore the image.

If you didn't make a clone image of the drive beforehand; then is there any reason why you can't just use Gparted (or whatever other partitioning program) to delete the Linux partitions, and if need be restore the bootloader (if you overwrote the MBR) ?

Jan K. 11-14-2019 10:46 AM

Why can't you just use Windows Disk Management to delete and merge?


/edit: ah! Windows' not installed at all!:doh:


Carry on! :D

jamasoo 11-14-2019 10:48 AM

Thank you for the quick answer, i really appreciated.

I did not make a clone image, so i have to delete the linux partitions, right?

I had tried that already but something is preventing gparted from erasing said partitions (something to do with logical partitions...). I am currently out of the office but will get back tomorrow with the specific error.

Thank you again for your help.

M

Jan K. 11-14-2019 10:51 AM

If you don't have a clone, it's a fresh install? Then use disk tool during the install...

jamasoo 11-14-2019 11:00 AM

Quote:

Originally Posted by Jan K. (Post 6057710)
Why can't you just use Windows Disk Management to delete and merge?

Thanks.

I did not know that, but nevertheless, it definitely sounds like it needs root privileges, which i do not have on windows (and i would be in a even bigger trouble if i ask our manager to perform that kind of task on the computer). This guy is allergic to linux...

BTW windows is installed

M

Jan K. 11-14-2019 01:25 PM

Windows *is* installed??

Can't even read a picture anymore... :rolleyes: but in that case it's easier. See post #3...

syg00 11-14-2019 04:14 PM

Don't do anything until you have re-installed the Windows boot-loader. Do it from a recovery disk - if you don't have one, Windows has tools to build one. Then you can delete the Linux partitions, including that swap, from a Linux liveCD.


All times are GMT -5. The time now is 06:25 PM.