Ubuntu: Does Ubuntu LiveCD automatically create a SWAP partition?


Forgive my noob-tastic question, but I'm very confused by what I'm seeing. I was trying to recover a drive, and was always told to make a LiveCD and run that. When I ran the LiveCD from boot, I started by running lsblk. Here is the result.

enter image description here

I could be mistaken, but I think that the Ubuntu LiveCD has gone and created a SWAP partition right at the head of the disk I was trying to recover.

sdb is the flash drive that I was using, as far as I can tell. It has the right size, approximately 32ish GB, and the drive i was trying to recover from was a 1TB drive, which is sda. lsblk was the first command I ran when I started the Live Environment. Any thoughts? Should I write this drive off as unrecoverable? Or am I misunderstanding what I'm reading?


The Live images do not alter the partition tables of disks unless you are manually editing them (via command line or gparted), or are installing Ubuntu to the disk.

You assume that the Live images made alterations and that there's no partitions on the disk that are readable based on lsblk. You need to try running sudo fdisk -l to list the actual data about partitions and their file types (unless it's a GPT partition table but it probably isn't). More than likely, the disk you are working with has a swap partition already in place on the disk. The Live images do auto mount swap partitions in an attempt to get swap, when a swap partition already exists.

Don't forget to try and mount sda2 and sda3 before assuming the drive is damaged and irrecoverable. It's very unlikely that a swap partition at the beginning of the disk would indicate drive death, especially if the other two partitions mount fine and the data there is accessible.

And in follow up to your comment on whether Windows does this, Windows doesn't use swap partitions.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »