0

The computer gave me some strange errors like 'device not found' always while booting into Ubuntu, so tried to figure it out and used only the tips from this site to get a fast and secure virtual machine, which I know is possible to start up by a USB stick, well now I stuck here with a highly encrypted VM, it starts LUBUNTU from the stick but not my own Ubuntu 14.04 system which is encrypted on the stick as well ... arrgh.

I remember that the final advice was to boot now and cross fingers… well, here I'm.

Finally I got the USB ready to boot, works fine, now I want my system working again with this USB stick as the keyloader ... but how.

The GNU GRUB version 1.99-21ubuntu3.9 calls up 2 different entries:

  1. LUBUNTU
  2. Ubuntu

The syntax for loading the second iso is as follows:

setparams 'Run /second.iso (if at (hd0,msdos1) alias /isodevice)'
loopback loop /second.iso linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=second.iso splash -- initrd (loop)/casper/initrd.lz 

and delivers the

error: file not found
error: no such disk
error: you need to load the kernel first.
Press any key to continue ...

brings me straight back to the GRUB. ???

How to start this by which reference ???

Managed to enter the BIOS, started with the USB stick into Lubuntu, now when I open a terminal:

root@lubuntu:/# sudo blkid -c /dev/null
/dev/loop0: LABEL="Lubuntu 13.10 i386" TYPE="iso9660"
/dev/loop1: TYPE="squashfs" 
/dev/sda1: UUID="419f80ea-a281-4744-a437-9d542e0e53ea" TYPE="ext2" 
/dev/sda5: UUID="7712339f-809a-49c4-a75f-52268e7db087" TYPE="crypto_LUKS" 
/dev/sdb1: LABEL="LubuGrubIsoSwp" UUID="d9e77e76-8fbd-47f6-8b79-25386a6f6f11" TYPE="ext2" 
/dev/sdb2: UUID="3d1893f5-6e68-46d0-a957-9a9d74dc5d10" TYPE="swap" 
/dev/zram0: UUID="7f6856c8-6fac-4f11-9516-b84096cd0e1e" TYPE="swap" 
/dev/zram1: UUID="516fdaa9-eaa3-4d73-afcf-18b2a48eeeb7" TYPE="swap" 
/dev/sdc1: LABEL="Backup" UUID="8042115342114F72" TYPE="ntfs" 
/dev/mapper/luks-7712339f-809a-49c4-a75f-52268e7db087: UUID="Q0yk3A-tXJO-yC6T-tlyw-0X1E-HQ2Y-2eNfOJ" TYPE="LVM2_member" 

Furthermore ...

root@lubuntu:/# cat /etc/fstab
overlayfs / overlayfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sdb2 swap swap defaults 0 0

Please, can someone give me some little advice to start my computer again, either in recovery mode or a complete new installation, if this is possible from here?

Should be possible to re/activate it or not ? But how ?

Do you need some more information?

Managed to download testdisk, here comes the selection I got:

root@lubuntu:/# testdisk
TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Select a media (use Arrow keys, then press Enter):
>Disk /dev/sda - 60 GB / 55 GiB - KINGSTON SVP200S37A60G
 Disk /dev/sdb - 7759 MB / 7400 MiB - TOSHIBA TransMemory
 Disk /dev/sdc - 1000 GB / 931 GiB - SAMSUNG HD105SI
 Disk /dev/mapper/lubuntu--vg-root - 55 GB / 52 GiB
 Disk /dev/mapper/lubuntu--vg-swap_1 - 3871 MB / 3692 MiB
 Disk /dev/mapper/luks-7712339f-809a-49c4-a75f-52268e7db087 - 59 GB / 55 GiB
 Disk /dev/dm-0 - 59 GB / 55 GiB
 Disk /dev/dm-1 - 55 GB / 52 GiB
 Disk /dev/dm-2 - 3871 MB / 3692 MiB

Now comes the ultimate information for the programmer cracks here:

root@lubuntu:/# fdisk -l
Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 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 identifier: 0x00061965

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   117229567    58363905    5  Extended
/dev/sda5          501760   117229567    58363904   83  Linux

Disk /dev/sdb: 7759 MB, 7759462400 bytes
239 heads, 62 sectors/track, 1022 cylinders, total 15155200 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 identifier: 0x000bec46

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     3084287     1541120   83  Linux
/dev/sdb2         3084288     3903487      409600   82  Linux swap / Solaris

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 identifier: 0x012773ec

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63  1953518959   976759448+   7  HPFS/NTFS/exFAT

Disk /dev/mapper/luks-7712339f-809a-49c4-a75f-52268e7db087: 59.8 GB, 59762540544 bytes
255 heads, 63 sectors/track, 7265 cylinders, total 116723712 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 identifier: 0x00000000

Disk /dev/mapper/luks-7712339f-809a-49c4-a75f-52268e7db087 doesn't contain a valid partition table

Disk /dev/mapper/lubuntu--vg-root: 55.9 GB, 55889100800 bytes
255 heads, 63 sectors/track, 6794 cylinders, total 109158400 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 identifier: 0x00000000

Disk /dev/mapper/lubuntu--vg-root doesn't contain a valid partition table

Disk /dev/mapper/lubuntu--vg-swap_1: 3871 MB, 3871342592 bytes
255 heads, 63 sectors/track, 470 cylinders, total 7561216 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 identifier: 0x00000000

Disk /dev/mapper/lubuntu--vg-swap_1 doesn't contain a valid partition table
root@lubuntu:/# 

How do I use the command e2fsck here? How is the exact syntax with my system?

Hope this gives the needed infos to get the system back on track.

The system gets more complicated, tried a re-installation, now the partition is totally scrambled.

Started from a Live/CD 12.04 and used some commands>

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 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 identifier: 0x000b173c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048      499711      248832   83  Linux
/dev/sda2          501758   117229567    58363905    5  Extended
/dev/sda5          501760   117229567    58363904   83  Linux

Disk /dev/mapper/luks-e1947161-3359-45a6-bfe2-5a140d8498fe: 59.8 GB, 59762540544 bytes

255 heads, 63 sectors/track, 7265 cylinders, total 116723712 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 identifier: 0x00000000

Disk /dev/mapper/luks-e1947161-3359-45a6-bfe2-5a140d8498fe doesn't contain a valid partition table

Disk /dev/mapper/ubuntu-root: 55.9 GB, 55889100800 bytes
255 heads, 63 sectors/track, 6794 cylinders, total 109158400 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 identifier: 0x00000000

Disk /dev/mapper/ubuntu-root doesn't contain a valid partition table

Disk /dev/mapper/ubuntu-swap_1: 3871 MB, 3871342592 bytes
255 heads, 63 sectors/track, 470 cylinders, total 7561216 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 identifier: 0x00000000

Disk /dev/mapper/ubuntu-swap_1 doesn't contain a valid partition table

Disk /dev/sdb: 7759 MB, 7759462400 bytes
239 heads, 62 sectors/track, 1022 cylinders, total 15155200 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 identifier: 0x000bec46

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     3084287     1541120   83  Linux
/dev/sdb2         3084288     3903487      409600   82  Linux swap / Solaris

What can I do to get the system back to work?

Got my system back, how, I burned myself a LIVE-CD from openSuse 13.1, started with it, replaced all the Ubuntu mess up with the encrypted LVM raid, now the system works fine and superfast again, no need to rebuild it, will stay with the openSuse.

Thanks to all for the help, have a nice and good time with Ubuntu, maybe I will give it a try and install it beside openSuse ... makes this sense.

Zanna
  • 72,312

2 Answers2

1

If you still have access to the bash shell,try updating the grub to look for devices to mount

sudo update-grub

This may help in mounting the partition while booting.

0

For reinstallation:

  1. boot from CD/USB/DVD as I mentioned above
  2. open Terminal & get root :

    Ctrl+Alt+T

    then enter sudo su

  3. use GNU parted to delete all partitions

    parted /dev/sda rm /dev/sda1

    parted /dev/sdb rm /dev/sdb1 ....

  4. hit 2 times Ctrl+D to exit the terminal

  5. launch the installer gui from the desktop and install your system.

For repair

  1. start the Bootmedium and get root access

  2. mount the root partition of your system

    mkdir /mnt if /mnt does not exist

    mount /dev/sdXY /mnt

  3. prepare the chroot

    mount -o bind /proc /mnt/proc

    cp /etc/resolv.conf /mnt/etc/resolv.conf

    mount --rbind /sys /mnt/sys/

    mount --rbind /dev /mnt/dev/

  4. Chroot into your system

    chroot /mnt

  5. Try to fix your system... apt-get -f install to reinstall broken things

    apt-get dist-upgrade to rebuild the boot-images

    apt-get install --reinstall initramfs

    update-grub or grub-mkconfig

    and whatever you think will help.

  6. hit Ctrl+D to exit the chroot.