Thursday, January 11, 2018

16.04 - Ubuntu partition disappeared (enter grub rescue)

A week ago I copied and entered a (forgotten) command to my Desktop. After so, ls showed nothing in any directory. I decided to reboot but ended up in grub rescue. I tried the solution here but did not work.



Added on 17-03-2018:



I am able to try Ubuntu by booting a USB. I try to locate my previous partition but it returns a partition error.



Disk /dev/loop0: 1.5 GiB, 1564921856 bytes, 3056488 sectors

Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
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: dos
Disk identifier: 0xe176b393


Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 3840167935 3840165888 1.8T 83 Linux
/dev/sda2 3840169982 3907028991 66859010 31.9G 5 Extended
/dev/sda5 3840169984 3907028991 66859008 31.9G 82 Linux swap /Solaris

Partition 2 does not start on physical sector boundary.

Disk /dev/sdb: 7.4 GiB, 7969177600 bytes, 15564800 sectors
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: dos
Disk identifier: 0x0004946c

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 15564799 15562752 7.4G c W95 FAT32 (LBA)


I am unsure what it means by Partition 2 does not start on physical sector boundary. Is there anything else I could try?




I appreciate any comment/suggestion.



Extra information:



GNU GRUB version 2.02~eta2-36ubuntu3.17
...
grub> ls
(memdisk) (hd0) (hd0,msdos1,apple2) (hd0,msdos1,apple1) (hd0,msdos1) (hd1) (hd2) (hd2,msdos5) (hd2,msdos1)
grub> ls (hd0,msdos1)

Partition hd0,msdos1: Filesystem type iso9660 - Label `Ubuntu 16.04.4 LTS amd64' - Last modification time 2018-02-28 19:15:18 Wednesday, UUID 2018-02-28-19-15-18-00 - Partition start at 1024KiB - Total size 7781376KiB


Now I boot the Desktop with Ubuntu USB (try Ubuntu). Here are the results:



sudo blkid
/dev/sdb1: UUID="2018-02-28-19-15-18-00" LABEL="Ubuntu 16.0.4 LTS amd64" TYPE="iso9660" PTUUID="550f2a26" PTTYPE="dos" PARTUUID="0004946c-01"
/dev/loop0: TYPE="squashfs"
/dev/sda5: UUID="8121875e-b7c4-4294-b463-1e6b958b86a0" TYPE="swap" PARTUUID="e176b393-05"
/dev/sda1: PARTUUID="e176b393-01"

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...