0

I'm trying to delete Ubuntu, but I can't find a way to locate Ubuntu partitions. In most threads, people just point out which one is which without saying how did they know. So I tried, and this is what I've got:

ds command

and this:

GParted

  • 3
    Just so you know, depending on where GRUB is installed, if you delete the Ubuntu partition before fixing the MBR through Windows, you may render your system unbootable... – You'reAGitForNotUsingGit Mar 30 '17 at 21:29
  • I found that using the EasyBCD program is a good way to deal with this. Thank you for the warning! – Wolf Mar 30 '17 at 21:41
  • I haven't used any of the proposed tools, but maybe this question askubuntu.com/q/133533/108339 is also helpful. – Olaf Dietsche Mar 30 '17 at 21:42
  • Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you what's too long) should be uploaded to a pastie service and linked to in the question. Thanks. – David Foerster Mar 30 '17 at 23:06
3

The first one df shows file systems used by Linux, although most are memory file systems (first column says tmpfs or udev).

The ones with /dev are real file systems, but Linux can mount non-Linux file systems too.


The second image is more meaningful, showing partitions on your hard disk. When you look at the third column (File System), you can see various types

  • ntfs - Windows
  • fat32 - DOS/Windows
  • ext4 - Linux
  • linux-swap - Swap space used by Linux (equivalent to swapfile.sys or pagefile.sys under Windows)
| improve this answer | |
  • So I should delete the /dev/sda9 and /dev/sda6 ? Thanks a lot – Wolf Mar 30 '17 at 21:22
  • You can have more than one ext4 partitions, also Linux can be installed onto different file system. So, the right is the one that is mounted on the root of the file system /. – pa4080 Mar 30 '17 at 21:28
  • @Wolf Yes and no, /dev/sda9 is a Linux partition, but /dev/sda6 is some NTFS/Windows partition. The one above, /dev/sda10 is the Linux swap partition. – Olaf Dietsche Mar 30 '17 at 21:29
  • @SpasSpasov Where do you see a second ext4 partition? – Olaf Dietsche Mar 30 '17 at 21:30
  • 1
    @SpasSpasov I misread your comment, and you're right of course. It could have been another partition. – Olaf Dietsche Mar 30 '17 at 22:01
1

/dev/sda9 is the ubuntu partition. This contains ALL of your ubutntu files. the /dev/sda2 contains files required to boot the system. Dont bother about the rest, their are partitions, created and mounted by running system (ds command output).

Partitions located in /dev/ are the "physical" partitions.

| improve this answer | |
  • So the only one I should find in windows partitions manager and delete is the sda9 (and sda6..?). Thank you. – Wolf Mar 30 '17 at 21:29
  • sda6 is an ntfs partition. The flag msftdata means it's a Windows partition. Maybe it's only your old movie collection, maybe it's something more crucial to the system. Linux programs are unlikely to be found there if you didn't put them there yourself. – Yves Mar 30 '17 at 22:23
  • why sda6? no, not the sda6. The above answer (by Olaf Dietsche) is a bit more precise, I think :) – psad Mar 30 '17 at 22:48
1

Your Ubuntu installation is located as "/" seen from within Ubuntu The Linux installation is mounted at "/". So you can identify the partition using its mount point "/". In this case sda9.

This is a simple answer as you can have components of your installation on several partitions (like your personal files).

The tmpfs indicated by df are temporary file storages. Swap space is used by Linux as a way to store temporary data (for example some tmpfs data if RAM is low).

Deleting the "/" partition will delete Ubuntu. Be sure you know what you're doing. Deleting the Ubuntu partition doesn't mean everything will get back to the state before the Ubuntu installation. Extensive doc at https://ubuntuforums.org and https://help.ubuntu.com/ .

| improve this answer | |
  • What about /dev/sda10? Shouldnt I delete Ubuntu Swap partition as well? – Wolf Mar 30 '17 at 21:43
  • Depending on what you want to do next. You can always use a swap space (basically a reserved empty space) if you want to install one or several other linux distros after deleting ubuntu. If you want to go on with only lets say Windows installations, then you can delete the swap space and reclaim the space. – Yves Mar 30 '17 at 22:13
0

Mount the partition and check it's content and depending on your installation type the home folder should be there.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.