Initramfs -system wont boot

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Initramfs -system wont boot

Post by computathug »

Ok i have 2 partitions on my HDD both are linux Mint. The second i added as a back up or for letting the kids play games. Now my main partition is no longer booting and boots to busy box initramfs .....

Both partitions are encrypted, i have tried to force the partition to mount but getting nothing. All the solutions i have found point to an Ntfs error with windows .... i no longer have windows, could this be a kernal error.

HEEELLLLPPPP!!!
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
18
Location: In your eye floaters.
Contact:

Re: Initramfs -system wont boot

Post by bad_brain »

try this one:
https://help.ubuntu.com/community/BootSectorFix" onclick="window.open(this.href);return false;

;)
Image

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Re: Initramfs -system wont boot

Post by Gogeta70 »

You could also try rebuilding your initramfs... Boot into the second Linux partition, mount the first partition on say /mnt/part1, then chroot into /mnt/part1. I'd try running update-initramfs in this chroot shell, then try booting your first partition again. In fact, for update-initramfs to work, you may need to do the following:

Code: Select all

mount -o rbind /sys /mnt/part1/sys
mount -o rbind /dev /mnt/part1/dev
mount -o rbind /proc /mnt/part1/proc
mount -o rbind /run /mnt/part1/run
Also, if you have a separate boot partition for Linux #1, make sure to mount it to /mnt/part1/boot
¯\_(ツ)_/¯ It works on my machine...

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Re: Initramfs -system wont boot

Post by computathug »

Cheers guys, manages to get the partition mounted, Will let you know how i get on with the rest of it when i have some free time later today. *thumb*
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Re: Initramfs -system wont boot

Post by computathug »

ok here is a list of my partitions.

Code: Select all

*******@rustytub ~ $ sudo fdisk -l
[sudo] password for *******: 

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 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
Disk identifier: 0x47834782

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    89595112    44796532+   7  HPFS/NTFS/exFAT
/dev/sda2        89595902   312580095   111492097    5  Extended
/dev/sda5       156076032   300421119    72172544   83  Linux
/dev/sda6       300423168   312580095     6078464   82  Linux swap / Solaris
/dev/sda7        89595904   156076031    33240064   83  Linux
now i can access the home directory but it is encrypted so next i am asked to input my password from by launching nautilus

Code: Select all

sudo nautilus
I can then launch

Access-Your-Private-Data.desktop which initiases the Terminal to insert my password.

I have done this but nothing changes, any ideas please???
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Re: Initramfs -system wont boot

Post by computathug »

Obviously the partitions are messed up so once i can access the other partition and save what i need i can start to clean it all up .......
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
18
Location: In your eye floaters.
Contact:

Re: Initramfs -system wont boot

Post by bad_brain »

have you run fsck, just to make sure it's no disk problem that may be possible to fix? :-k
Image

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Re: Initramfs -system wont boot

Post by Gogeta70 »

Instead of having nautilus try to mount your encrypted partition, try mounting it manually. I'm guessing that you're using LUKS encryption. Since your /dev/sda2 partition is the largest, I'm guessing that's your home partition, so try the following:

Code: Select all

cryptsetup luksOpen /dev/sda2 sda2_crypt
[enter password when prompted]
mount /dev/mapper/sda2_crypt /path/to/mount/to
¯\_(ツ)_/¯ It works on my machine...

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Re: Initramfs -system wont boot

Post by computathug »

bad_brain wrote:have you run fsck, just to make sure it's no disk problem that may be possible to fix? :-k

Code: Select all

fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
/dev/sda7 is mounted.
e2fsck: Cannot continue, aborting.
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Re: Initramfs -system wont boot

Post by computathug »

Cheers guys, can't say what it was specifically that fixed it as i was busy doing in between other things but all booting up again and yes....everything backed up :roll:
The devil can cite Scripture for his purpose.
-- William Shakespeare, "The Merchant of Venice"
https://tshirt-memes.com

Post Reply