#How to load the kernel

185 messages · Page 1 of 1 (latest)

sacred fox
#

I was adjusting my partition,but the devices got switched off in the middle.i tried again after doing check in gparted and the size of the partition increased.
Now when i switch on without the live boot, it gives an error about loading kernal or smthing

brittle shoal
sacred fox
#

🥲

brittle shoal
sacred fox
#

K

brittle shoal
#

not sure if that'll do anything, but worth a try I guess

sacred fox
brittle shoal
sacred fox
#

Nop,the problem

#

Should i use compatible mode or not?

brittle shoal
#

be more specific. what is compatible mode?

sacred fox
#

One of the 2 options in live usb

brittle shoal
# sacred fox

fsck /dev/[your drive and partition, so example sda2]

brittle shoal
sacred fox
#

Oh one min

brittle shoal
sacred fox
brittle shoal
# sacred fox

well that seems bad
can you open disks app and show me what you see?

sacred fox
#

first time seeing the loop device

sacred fox
brittle shoal
ivory hinge
#

never seen such a cluttered partition layout before

brittle shoal
#

well only things I can try of right now would be to rebuild initrd and boot-repair
@sacred fox can you boot to windows normally?

sacred fox
#

i havent tried after this problem

#

so like 10 min

#

my pc is slow

ivory hinge
brittle shoal
sacred fox
#

sda 10 is taking time

#

sudo fsck /dev/sda10
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/sda10 primary superblock features different from backup, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure

#

still loading

brittle shoal
sacred fox
#

sudo fsck /dev/sda10
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/sda10 primary superblock features different from backup, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda10: 1199740/3276800 files (1.0% non-contiguous), 11452827/13107200 blocks

#

////////////////////////////////////////////
mint@mint:~$ sudo fsck /dev/sda1
fsck from util-linux 2.37.2
fsck.fat 4.2 (2021-01-31)
/dev/sda1: 237 files, 18651/65536 clusters
mint@mint:~$ sudo fsck /dev/sda2
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda2

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>

mint@mint:~$ sudo fsck /dev/sda3
fsck from util-linux 2.37.2
mint@mint:~$ sudo fsck /dev/sda4
fsck from util-linux 2.37.2
mint@mint:~$ sudo fsck /dev/sda5
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/sda5: clean, 553932/8208000 files, 6985830/32768000 blocks
mint@mint:~$ sudo fsck /dev/sda6
fsck from util-linux 2.37.2
mint@mint:~$ sudo fsck /dev/sda7
fsck from util-linux 2.37.2
mint@mint:~$ sudo fsck /dev/sda8
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
Games: clean, 35294/4924800 files, 7489430/19660800 blocks
mint@mint:~$ sudo fsck /dev/sda9
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
fsck.ext2: No such file or directory while trying to open /dev/sda9
Possibly non-existent device?

#

mint@mint:~$ sudo fsck /dev/sda10
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/sda10 primary superblock features different from backup, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda10: 1199740/3276800 files (1.0% non-contiguous), 11452827/13107200 blocks
mint@mint:~$ sudo fsck /dev/sda11
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
fsck.ext2: No such file or directory while trying to open /dev/sda11
Possibly non-existent device?
mint@mint:~$ sudo fsck /dev/sda12
fsck from util-linux 2.37.2
mint@mint:~$ sudo fsck /dev/sda13
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
fsck.ext2: No such file or directory while trying to open /dev/sda13
Possibly non-existent device?
mint@mint:~$

#

there is no 9 and 11 really

#

i was typing with the flow

ivory hinge
#

dont fsck anything but fat and ext4

sacred fox
#

ok

#

mint@mint:~$ sudo fsck /dev/sda1
fsck from util-linux 2.37.2
fsck.fat 4.2 (2021-01-31)
/dev/sda1: 237 files, 18651/65536 clusters
mint@mint:~$ sudo fsck /dev/sda10
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/sda10: clean, 1199740/3276800 files, 11452827/13107200 blocks
mint@mint:~$ sudo fsck /dev/sda8
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
Games: clean, 35294/4924800 files, 7489430/19660800 blocks
mint@mint:~$ sudo fsck /dev/sda5
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/sda5: clean, 553932/8208000 files, 6985830/32768000 blocks
mint@mint:~$

#

should i try to open windows?

sacred fox
ivory hinge
sacred fox
#

ok

brittle shoal
sacred fox
#

Its checking D

#

Windows opens

sacred fox
#

I started with d since it only had 3 gb data, it is still not finished

brittle shoal
sacred fox
#

yes

#

i think it will take a day or so for complete checking

brittle shoal
#

hmm

#

that's a lot for 3 gb.

#

you might want to run boot-repair from the live usb after this one is completed

#

otherwise, not sure if checking C will also do anything. you might have to reinstall

#

and if you decide to, ffs make your partitioning a bit better. don't create that many partitions. just keep windows C partition, and make a single root partition for Linux (or if you want seperate /home)

sacred fox
#

Its stuck in stage 4

#

No change for past 2 or 3 hrs

brittle shoal
#

or if you don't want to wait and don't mind having all your data wiped from that 3gb partition, just give it up

#

you can run boot-repair as last resort. if that doesn't work, regenerate initrd. if that doesn't work, wait until someone has a decent idea or just give up and reinstall.

sacred fox
#

Somthing happened

#

But

#

Eta is kinda problem

#

Its on recovery drive

brittle shoal
sacred fox
#

first time seeing less than 100 %use on my lap

brittle shoal
sacred fox
#

nvm installed

#

is it bad?

#

@brittle shoal

sacred fox
brittle shoal
#

but I would replace it when you can

#

it'll probably fail sooner or later

#

get a 256gb sata if you really can't spare more money, but even 1tb ones are fairly cheap nowadays

#

and according to some nerd
"multiple read errors, LOTS of seek errors (0x2b = 43 so far), lots of uncorrectable errors (0x2a1 = 673), shitton of command timeouts (0x60014 = 393236) and it was used a lot"
he's saying it's cooked

sacred fox
ivory hinge
#

surface scan takes hours or days

sacred fox
ivory hinge
#

u log to c first

sacred fox
#

C:\WINDOWS\System32>

ivory hinge
#

yeah

#

ur already on that disk now

#

then just do chkdsk /f

sacred fox
#

ok

#

Chkdsk cannot run because the volume is in use by another
process. Would you like to schedule this volume to be
checked the next time the system restarts? (Y/N) y

This volume will be checked the next time the system restarts.

brittle shoal
brittle shoal
#

@sacred fox any progress?

sacred fox
#

Restarted normally, windows is working fine

sacred fox
#

I need to try to recover data i guess

sacred fox
#

Uhm, will the sda name of the home folder change?

#

Looking through advanced linux option

brittle shoal
#

I believe you should just regenerate initrd

#

@sacred fox did you have this error before?

#

you need prepare a Linux mint usb drive

sacred fox
sacred fox
sacred fox
ivory hinge
brittle shoal
# sacred fox i have it

mount /dev/sda5 /mnt
mount /dev/sda1 /mnt/boot
sudo chroot /mnt (you now use your system from the live usb)
update-initramfs -u (I'm pretty sure that's the correct command and will do it correctly, if not then someone please correct me)

#

then you can reboot
boot mint thru advanced options
if it doesn't work, then boot to the usb drive and run boot-repair, and then do recommended repair. If that doesn't work, you can press e when you have the advanced option that got you to the init error before (or if boot-repair fixes it, the default option) selected, and send the contents of it here)

sacred fox
#

Sudo chroot/mnt gives no directory/bin /bash

ivory hinge
#

mount /dev/sda5 /mnt/

#

if that doesn't work, make a temporary mounting directory in the live environment:
sudo mkdir /mnt/rootsystem

#

then mount /dev/sda5 /mnt/rootsystem

#

then sudo mkdir /mnt/bootpart

#

then mount /dev/sda1 /mnt/bootpart

#

then sudo chroot /mnt/rootsystem

sacred fox
#

sudo chroot /mnt/rootsystem
chroot: failed to run command ‘/bin/bash’: No such file or directory

#

@ivory hinge

#

uhm, should i try reinstall>

#

?

ivory hinge
#

wait

#

did u make the folder first?

#

ls /mnt

sacred fox
#

yes

#

mint@mint:~$ ls /mnt
bin boot-sav lib lib64 lost+found opt rootsystem swapfile
boot bootpart lib32 libx32 mnt root sbin

ivory hinge
#

hmmm

ivory hinge
sacred fox
#

how to backup if i cant open it?

#

idont think there is imp things in it

ivory hinge
#

check thru its home folder

#

either upload to dropbox/OneDrive or to second usb drive or memory card

brittle shoal
sacred fox
brittle shoal
#

can you try to cd to /mnt/rootsystem/bin

#

then
ls
and look for bash

sacred fox
#

showing no directory again

brittle shoal
#

wdym?

sacred fox
sacred fox
brittle shoal
sacred fox
#

isnt it windows?

brittle shoal
ivory hinge
ivory hinge
brittle shoal
ivory hinge
#

meh . better to specify the ESP explicitly if setting up a UEFI-run dualboot

brittle shoal
sacred fox
brittle shoal
ivory hinge
#

find the partition u want linux to install on

#

then click on 'change' button

#

set "use as" to ext4 journalling filesystem, and set mountpoint to /

#

for sda1 click change button, use as ESP make sure format box is not marked

#

find home partition u want to use for linux personal home files, then click change button

#

set as ext4, and mountpoint as /home

#

show final layout before continuing, and try to stretch window big

sacred fox
ivory hinge
#

i think so.

sacred fox
#

uhm i think i will share screenshot of eaxh step

ivory hinge
# sacred fox

according to this, it looks like u had main linux on sda5

sacred fox
#

it said ubiman failed

ivory hinge
sacred fox
#

ok

#

it sgonna take a while

ivory hinge
ivory hinge
#

any news, @sacred fox ?

sacred fox
sacred fox
ivory hinge
sacred fox
ivory hinge
#

naj

#

just what you need

#

from both Windows User folder and/or current linux installation's home folder

ivory hinge
#

follow that ticket exactly from beginning to end if you want to have a simple and easy dual-OS setup on one drive.