gperrot
September 6th, 2015, 12:21 PM
Hello !
I am using Ubuntu 14.04 LTS on my laptop with a dual boot (Win7). Last days, using a LiveUSB, I decrease the size of my Win7 partition and I increase the size of my Ubuntu partition. Unfortunately, during the resize of the Ubuntu partition, my laptop was not well connected to main electricity and end of battery life happened before the end of the resizing process...). After that, I was not able to boot on LiveUSB (I recreated one). Furthermore, I was not able to boot on hard disk with dual partition :
error : attempt to read or write outside of partition
Entering rescue mode...
grub rescue
Now, after booting on my new LiveUSB, I can have some diagnostic command results :
ubuntu@ubuntu:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/cow 999320 104688 842204 12% /
udev 1938416 4 1938412 1% /dev
tmpfs 389984 1228 388756 1% /run
/dev/sdb1 3914192 2078080 1836112 54% /cdrom
/dev/loop1 985344 985344 0 100% /rofs
none 4 0 4 0% /sys/fs/cgroup
tmpfs 1949908 1028 1948880 1% /tmp
none 5120 4 5116 1% /run/lock
none 1949908 80 1949828 1% /run/shm
none 102400 36 102364 1% /run/user
/dev/sda3 153471104 143977488 9493616 94% /media/ubuntu/C8D8BA53D8BA400C
/dev/loop0 999320 104688 842204 12% /media/ubuntu/01322115-d3d3-46ce-83a8-0143153abebb
It seems that the content of Win7 partition (sda3) is OK.
When I try to see the content of the Ubuntu partition (sda6), here is the error message :
Unable to access “147 GB Volume”
Error mounting /dev/sda6 at /media/ubuntu/370e34c9-1ba6-4cca-a1b2-22bbd261f22b: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda6" "/media/ubuntu/370e34c9-1ba6-4cca-a1b2-22bbd261f22b"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda6,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
If I try to see syslog messages about my sda partitions :
ubuntu@ubuntu:~$ dmesg |grep sda
[ 10.515500] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 10.515613] sd 0:0:0:0: [sda] Write Protect is off
[ 10.515616] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 10.515775] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 10.583508] sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
[ 10.584836] sd 0:0:0:0: [sda] Attached SCSI disk
[ 13.670166] EXT4-fs (sda6): error loading journal
[ 34.119371] Adding 4042748k swap on /dev/sda5. Priority:-1 extents:1 across:4042748k FS
[ 334.553551] EXT4-fs (sda6): error loading journal
I would like to repair my sda6 partition in order to restore some files I didn't backup before and better than that, if it is possible, restore my dual boot ubuntu/win7 in order to avoid reinstallation of both OS.
Could you help me to achieve that please ?
Thanks in advance for your help !!!
Gigi
I am using Ubuntu 14.04 LTS on my laptop with a dual boot (Win7). Last days, using a LiveUSB, I decrease the size of my Win7 partition and I increase the size of my Ubuntu partition. Unfortunately, during the resize of the Ubuntu partition, my laptop was not well connected to main electricity and end of battery life happened before the end of the resizing process...). After that, I was not able to boot on LiveUSB (I recreated one). Furthermore, I was not able to boot on hard disk with dual partition :
error : attempt to read or write outside of partition
Entering rescue mode...
grub rescue
Now, after booting on my new LiveUSB, I can have some diagnostic command results :
ubuntu@ubuntu:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/cow 999320 104688 842204 12% /
udev 1938416 4 1938412 1% /dev
tmpfs 389984 1228 388756 1% /run
/dev/sdb1 3914192 2078080 1836112 54% /cdrom
/dev/loop1 985344 985344 0 100% /rofs
none 4 0 4 0% /sys/fs/cgroup
tmpfs 1949908 1028 1948880 1% /tmp
none 5120 4 5116 1% /run/lock
none 1949908 80 1949828 1% /run/shm
none 102400 36 102364 1% /run/user
/dev/sda3 153471104 143977488 9493616 94% /media/ubuntu/C8D8BA53D8BA400C
/dev/loop0 999320 104688 842204 12% /media/ubuntu/01322115-d3d3-46ce-83a8-0143153abebb
It seems that the content of Win7 partition (sda3) is OK.
When I try to see the content of the Ubuntu partition (sda6), here is the error message :
Unable to access “147 GB Volume”
Error mounting /dev/sda6 at /media/ubuntu/370e34c9-1ba6-4cca-a1b2-22bbd261f22b: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda6" "/media/ubuntu/370e34c9-1ba6-4cca-a1b2-22bbd261f22b"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda6,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
If I try to see syslog messages about my sda partitions :
ubuntu@ubuntu:~$ dmesg |grep sda
[ 10.515500] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 10.515613] sd 0:0:0:0: [sda] Write Protect is off
[ 10.515616] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 10.515775] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 10.583508] sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
[ 10.584836] sd 0:0:0:0: [sda] Attached SCSI disk
[ 13.670166] EXT4-fs (sda6): error loading journal
[ 34.119371] Adding 4042748k swap on /dev/sda5. Priority:-1 extents:1 across:4042748k FS
[ 334.553551] EXT4-fs (sda6): error loading journal
I would like to repair my sda6 partition in order to restore some files I didn't backup before and better than that, if it is possible, restore my dual boot ubuntu/win7 in order to avoid reinstallation of both OS.
Could you help me to achieve that please ?
Thanks in advance for your help !!!
Gigi