0

A Linux newbie here. I am running an old Lubuntu distro on an ancient MSI Wind Notebook. Today, it refused to boot up, indicating some kind of hard disk failure with the message "error: failure reading sector 0x802 from 'hd0'".

I am able to boot the machine with the Ubuntu Boot Repair utility from a live USB but not able to repair the bad sectors in question. Below is the BootInfo Summary generated by the utility.

At this point, I care only about recovering my files, not the device itself, which given its age and present shape, I expect to trash after this unfortunate episode.

Incidentally, I am unable to turn off the Secure Boot feature in my BIOS/Boot settings.

Any help in recovering my files would be most appreciated. Thank you.

Boot Info Script 8f991e4 + Boot-Repair extra info      [Boot-Info 25oct2017]


============================= Boot Info Summary: ===============================

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos1)/boot/grub. It also embeds following components:

    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/sda1: unknown filesystem type ''.

sda2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.03
    Boot sector info:  Syslinux looks at sector 16392 of /dev/sdb1 for its 
                       second stage. The integrity check of Syslinux failed. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg /casper/vmlinuz.efi 
                       /EFI/BOOT/bootia32.efi /ldlinux.sys

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   310,505,471   310,503,424  83 Linux
/dev/sda2         310,507,518   312,580,095     2,072,578   5 Extended
/dev/sda5         310,507,520   312,580,095     2,072,576  82 Linux swap / Solaris


Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 3.8 GiB, 4011851776 bytes, 7835648 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048     7,835,647     7,833,600   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda5        bc197e7d-ada4-4a89-a8fb-9fe2f485bb64   swap       
/dev/sdb1        4E89-8A35                              vfat       BOOT-REPAIR
/dev/zram0       ed54f1c3-120c-4220-bb6b-4af64ab06179   swap       
/dev/zram1       13e51ac5-eca9-41b4-a731-2de9e52417fb   swap       

========================= "ls -l /dev/disk/by-id" output: ======================

total 0

    lrwxrwxrwx 1 root root  9 Jan 14  2020 ata-WDC_WD1600BEVT-22ZCT0_WD-WXE808N86657 -> ../../sda
    lrwxrwxrwx 1 root root 10 Jan 14  2020 ata-WDC_WD1600BEVT-22ZCT0_WD-WXE808N86657-part1 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Jan 14  2020 ata-WDC_WD1600BEVT-22ZCT0_WD-WXE808N86657-part2 -> ../../sda2
    lrwxrwxrwx 1 root root 10 Jan 14  2020 ata-WDC_WD1600BEVT-22ZCT0_WD-WXE808N86657-part5 -> ../../sda5
    lrwxrwxrwx 1 root root  9 Jan 14 02:29 usb-Generic-_Multi-Card_20071114173400000-0:0 -> ../../sdc
    lrwxrwxrwx 1 root root  9 Jan 14  2020 usb-Sony_Storage_Media_2A0903040053501-0:0 -> ../../sdb
    lrwxrwxrwx 1 root root 10 Jan 14  2020 usb-Sony_Storage_Media_2A0903040053501-0:0-part1 -> ../../sdb1
    lrwxrwxrwx 1 root root  9 Jan 14  2020 wwn-0x50014ee056296520 -> ../../sda
    lrwxrwxrwx 1 root root 10 Jan 14  2020 wwn-0x50014ee056296520-part1 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Jan 14  2020 wwn-0x50014ee056296520-part2 -> ../../sda2
    lrwxrwxrwx 1 root root 10 Jan 14  2020 wwn-0x50014ee056296520-part5 -> ../../sda5

    ================================ Mount points: =================================

    Device           Mount_Point              Type       Options

    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


    =========================== sdb1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
    set gfxmode=auto
    insmod efi_gop
    insmod efi_uga
    insmod gfxterm
    terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Boot-Repair-Disk session" {
    set gfxpayload=keep
    linux   /casper/vmlinuz.efi  file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
    initrd  /casper/initrd.lz
}
--------------------------------------------------------------------------------

============================== sdb1/syslinux.cfg: ==============================

--------------------------------------------------------------------------------
DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/
--------------------------------------------------------------------------------

=================== sdb1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

            ?? = ??             boot/grub/grub.cfg                             1

================= sdb1: Location of files loaded by Syslinux: ==================

           GiB - GB             File                                 Fragment(s)

            ?? = ??             syslinux.cfg                                   1
            ?? = ??             ldlinux.sys                                    1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda1


Unknown BootLoader on sda2

00000000  03 1f 68 fc 2b 8d d4 1c  8a 8f 59 22 21 60 e7 c5  |..h.+.....Y"!`..|
00000010  49 1e b1 62 69 92 ce b9  d4 b9 e5 a0 5a 99 b3 31  |I..bi.......Z..1|
00000020  e5 05 63 66 5d 8a 9a ba  f6 23 db b2 b7 0e 61 90  |..cf]....#....a.|
00000030  d8 7f 23 a5 6d 94 97 69  cd 7f 60 42 51 ea 11 1d  |..#.m..i..`BQ...|
00000040  fc 42 ed 6d e6 84 a6 1d  7a df 04 58 d0 44 97 a3  |.B.m....z..X.D..|
00000050  17 ef 28 25 e1 96 a4 e6  ad d9 0a cb e9 f0 32 7c  |..(%..........2||
00000060  9f 49 f6 13 84 6b 68 59  08 e8 0e 6e a1 a7 08 43  |.I...khY...n...C|
00000070  92 cf 64 a1 01 1e c4 41  59 68 13 41 48 c6 d7 59  |..d....AYh.AH..Y|
00000080  aa 9b 70 08 93 61 6c 5f  6f 28 cd e8 41 c7 ec dd  |..p..al_o(..A...|
00000090  6a 22 37 e0 0d a6 1c b2  fd 39 a7 2c 54 7f 1a 94  |j"7......9.,T...|
000000a0  8d 4b de 0a 7e 45 7a 5c  f1 4a 08 61 04 e8 c3 37  |.K..~Ez\.J.a...7|
000000b0  a8 11 4e fb 07 74 f6 3b  4d 13 0e 8b f5 c8 31 fb  |..N..t.;M.....1.|
000000c0  f2 fe b2 cb 35 05 c0 ca  3a 9a ee cc 1e 7e 92 58  |....5...:....~.X|
000000d0  52 5a eb ee f8 5b a9 16  d3 b8 48 fa 3e 75 67 8e  |RZ...[....H.>ug.|
000000e0  68 71 16 24 0a 52 e5 5c  65 be 89 f4 68 a9 31 66  |hq.$.R.\e...h.1f|
000000f0  ab 61 df e1 08 15 dc 8c  b7 3d 51 ea 9b 55 a4 98  |.a.......=Q..U..|
00000100  0b ab c4 2e 36 2c 2c d9  5b 96 b3 78 29 cd f7 25  |....6,,.[..x)..%|
00000110  31 8c ff 22 f8 06 69 a4  12 28 b1 11 8f 92 15 a6  |1.."..i..(......|
00000120  61 3b 23 f6 12 24 e4 4b  34 f1 c1 7c da 97 d6 49  |a;#..$.K4..|...I|
00000130  97 43 9e 1b a5 de e4 ce  2a 45 c2 50 18 2d 07 ad  |.C......*E.P.-..|
00000140  31 58 36 22 0e 57 c1 0c  22 a0 e3 f4 f5 96 02 16  |1X6".W..".......|
00000150  dc e6 4e 03 78 90 a7 b4  c6 28 12 e4 26 e1 2c 63  |..N.x....(..&.,c|
00000160  e0 8a 41 6a 13 87 35 3b  9b 26 95 01 ac 8b 3b 52  |..Aj..5;.&....;R|
00000170  fe 5a 37 a5 39 4a 42 10  31 98 cc 5c e9 f8 06 a2  |.Z7.9JB.1..\....|
00000180  ee 0e e7 7c f7 e5 3a 8f  31 5c b6 92 37 09 a5 72  |...|..:.1\..7..r|
00000190  6e 4b a4 c9 13 0c a1 78  b7 8e 39 d7 29 61 0e 18  |nK.....x..9.)a..|
000001a0  d7 66 9e c4 4c 62 56 51  90 c6 c5 60 5d ad 11 58  |.f..LbVQ...`]..X|
000001b0  01 2e 62 70 b0 3b 2f 25  75 ca 46 e5 b9 22 00 fe  |..bp.;/%u.F.."..|
000001c0  ff ff 82 fe ff ff 02 00  00 00 00 a0 1f 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


========= Devices which don't seem to have a corresponding hard drive: =========

sdc 

=============================== StdErr Messages: ===============================

hexdump: /dev/sda1: Input/output error
hexdump: /dev/sda1: Input/output error

ADDITIONAL INFORMATION :
=================== log of boot-repair 20200114_0227 ===================
boot-repair version : 4ppa62
boot-sav version : 4ppa62
boot-sav-extra version : 4ppa62
glade2script version : 3.2.3~ppa4
boot-repair is executed in live-session (Boot-Repair-Disk 32bit 1oct2017, zesty, Ubuntu, i686)
CPU op-mode(s):      32-bit
file=/cdrom/preseed/lubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --
ls: cannot access '/home/usr/.config': No such file or directory

=================== os-prober:


=================== blkid:
/dev/sdb1: LABEL="BOOT-REPAIR" UUID="4E89-8A35" TYPE="vfat" PARTUUID="20ab52fb-01"
/dev/loop0: TYPE="squashfs"
/dev/sda5: UUID="bc197e7d-ada4-4a89-a8fb-9fe2f485bb64" TYPE="swap" PARTUUID="0006b39d-05"
/dev/zram0: UUID="ed54f1c3-120c-4220-bb6b-4af64ab06179" TYPE="swap"
/dev/zram1: UUID="13e51ac5-eca9-41b4-a731-2de9e52417fb" TYPE="swap"


=================== UEFI/Legacy mode:
This live-session is not EFI-compatible.
SecureBoot maybe enabled.


=================== PARTITIONS & DISKS:



=================== parted -lm:

BYT;
/dev/sda:160GB:scsi:512:512:msdos:ATA WDC WD1600BEVT-2:;
1:1049kB:159GB:159GB:::boot;
2:159GB:160GB:1061MB:::;
5:159GB:160GB:1061MB:linux-swap(v1)::;

BYT;
/dev/sdb:4012MB:scsi:512:512:msdos:Sony Storage Media:;
1:1049kB:4012MB:4011MB:fat32::boot, lba;

BYT;
/dev/zram1:259MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:259MB:259MB:linux-swap(v1)::;

BYT;
/dev/zram0:259MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:259MB:259MB:linux-swap(v1)::;

=================== lsblk:
KNAME TYPE FSTYPE     SIZE LABEL
loop0 loop squashfs 642.9M
sda   disk          149.1G
sda1  part          148.1G
sda2  part              1K
sda5  part swap      1012M
sdb   disk            3.8G
sdb1  part vfat       3.8G BOOT-REPAIR
zram0 disk          246.8M
zram1 disk          246.8M

KNAME ROTA RO RM STATE   MOUNTPOINT
loop0    1  1  0         /rofs
sda      1  0  0 running
sda1     1  0  0
sda2     1  0  0
sda5     1  0  0         [SWAP]
sdb      1  0  1 running
sdb1     1  0  1         /cdrom
zram0    0  0  0         [SWAP]
zram1    0  0  0         [SWAP]


=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=480152k,nr_inodes=120038,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=101092k,mode=755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
/cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13290)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=101088k,mode=700,uid=999,gid=999)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)


=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro sda1 sda2 sda5 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sdc (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  autofs block bsg btrfs-control bus char console core cpu cpu_dma_latency cuse disk dri ecryptfs fb0 fd full fuse gpiochip0 hpet hwrng i2c-0 i2c-1 i2c-2 i2c-3 i2c-4 i2c-5 initctl input kmsg lightnvm log mapper mcelog media0 mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda5 sdb sdb1 sdc sg0 sg1 sg2 shm snapshot snd stderr stdin stdout uhid uinput urandom userio v4l vfio vga_arbiter vhci vhost-net vhost-vsock video0 zero
ls /dev/mapper:  control

=================== df -Th:

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  469M     0  469M   0% /dev
tmpfs          tmpfs      99M  4.9M   94M   5% /run
/dev/sdb1      vfat      3.8G  721M  3.1G  19% /cdrom
/dev/loop0     squashfs  643M  643M     0 100% /rofs
/cow           overlay   494M  4.2M  490M   1% /
tmpfs          tmpfs     494M     0  494M   0% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     494M     0  494M   0% /sys/fs/cgroup
tmpfs          tmpfs     494M  4.0K  494M   1% /tmp
tmpfs          tmpfs      99M  8.0K   99M   1% /run/user/999

=================== fdisk -l:
Disk /dev/loop0: 642.9 MiB, 674103296 bytes, 1316608 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: 149.1 GiB, 160041885696 bytes, 312581808 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: 0x0006b39d

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048 310505471 310503424 148.1G 83 Linux
/dev/sda2       310507518 312580095   2072578  1012M  5 Extended
/dev/sda5       310507520 312580095   2072576  1012M 82 Linux swap / Solaris


Disk /dev/sdb: 3.8 GiB, 4011851776 bytes, 7835648 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: 0x20ab52fb

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *     2048 7835647 7833600  3.8G  c W95 FAT32 (LBA)


Disk /dev/zram0: 246.8 MiB, 258797568 bytes, 63183 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram1: 246.8 MiB, 258797568 bytes, 63183 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Error: no partitions

** (zenity:6851): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.


=================== Suggested repair
The default repair of the Boot-Repair utility would not act on the MBR.
Additional repair would be performed:  repair-filesystems


=================== User settings
The settings chosen by the user will not act on the boot.
Download as text
New contributor
rchailly is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Same issue: askubuntu.com/questions/964512/… with some tips in there. – Rinzwind Jan 14 at 13:35
  • 1
    Once booted to the Ubuntu Live DVD/USB, you should be able to navigate to /home/username/* on /dev/sda1, and drag your files out to an attached USB hard drive. However, if you'd like to make an attempt at recovering the drive, I can tell you how to fsck the drive, and bad block it. Let me know. – heynnema Jan 14 at 14:11
  • heynnema: Thanks for your response. I am unable to access my home folder after booting from the live USB. As the summary report indicates the boot repair utility is not able to mount /dev/sda1. – rchailly Jan 14 at 14:34

Your Answer

rchailly is a new contributor. Be nice, and check out our Code of Conduct.

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

Browse other questions tagged or ask your own question.