0

Some time ago I made my own „OS” based on mint(Debian Based distro). About u week ago I deleted 3rd partition with Ubuntu. Before this weekend I got BSOD on windows, so I'm stuck on mint. And here is my problem with third OS: i deleted accidentally grub. The problem is yet bigger because filesystem was btrfs. I copied all files (even system)to external drive and formatted partition with mint to ext4, then I recopied system and tried with GRUBrepair. As I saw root and sudo was locked (mint doesn’t have su by default), so I tried to repair by myself. Now system is stuck between: grub shell, busybox shell (initramfs error), live boot mint and „shell”with prompt for root password (i didnt setted up that YET). Is there a way to boot PC normally? Or i’m stuck on live-boot? I don’t have space for installing third OS (space which stayed after deleting ubuntu was joined to windows) and my PC is yet on guarantee... (yet worse but guarantee is only for physical things, OOF)

PS: bios on my pc is „aptio setup utility”, there is no way to disable uefi and i can’t: boot rescueCD from pendrive and/or boot pc from external HDD. I don’t have external CD/DVD reader.

Thanks for answer (if any)

Here are all commands in busybox i can use : enter image description here

Actually I didn't have fsck. So, after lot of tries I found reiserfsck instead of fsck I don't know how to run for checking partitions. So, I added a picture of it : enter image description here

When I tried reiserfsck --check /dev/sda6 I got some error :

enter image description here Now i have another errrrrrrorrrr, I'm stuck on screen which asks me for password of non-existing user : enter image description here

  • `Some time ago I made my own „OS` While this is very tough. And, none of us know how you did this. So, your question might become more harder for us more than you think. I just can help you by saying try to install [grub loader](https://unix.stackexchange.com/questions/636502/grub-rescue-error) the possible way you can. For me, **grub-loader is my "heart" whenever I lost it I just live with frustration, "tension" and lifeless that's why I always care of grub-loader**. Keep trying to fix it. –  Apr 25 '21 at 14:13
  • `busybox shell (initramfs error)` I had created a question on [`initramfs error`](https://unix.stackexchange.com/questions/634942/mint-boot-error-ima-error-communicating-to-tpm-chip) –  Apr 25 '21 at 14:13
  • O yeah, i saw, thx! And yes - grub’s frustrating – hacknorris Apr 25 '21 at 14:43
  • Edit: found a bug in code - initramfs doesn’t find fsck... – hacknorris Apr 25 '21 at 14:48
  • And [here](https://postimg.cc/xkSmkvNs) error. – hacknorris Apr 25 '21 at 14:51
  • [From this post](https://forums.linuxmint.com/viewtopic.php?t=319546) a person is saying to try `sudo fsck` I don't think that it will work either.. [Read it also](https://linuxhandbook.com/fsck-command/) –  Apr 25 '21 at 15:01
  • Sh: sudo: not found :) – hacknorris Apr 25 '21 at 15:03
  • And [here](https://i.postimg.cc/pLKYKyLD/image.jpg) full error – hacknorris Apr 25 '21 at 15:31
  • Edit: photo was incomplete, [here](https://i.postimg.cc/rp8nm5Nd/image.jpg) full error – hacknorris Apr 25 '21 at 15:38
  • don't run `fsck` with `su`. `su` used for Superuser(to become Root User). Read [the answer](https://askubuntu.com/a/86088/1166068). I am looking for an answer for you while this is very hard to say..! –  Apr 25 '21 at 15:42
  • At first write `su`. Then, run those command `ln -s /usr/bin/ntfsfix /sbin/fsck.ntfs` and ``ln -s /usr/bin/ntfsfix /sbin/fsck.ntfs-3g` –  Apr 25 '21 at 15:49
  • I agree but what i can do if even you cant find something? Why ntfs? Now there is ext4 not ntfs... – hacknorris Apr 25 '21 at 15:49
  • Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/123421/discussion-between-istiak-and-hacks-norris). –  Apr 25 '21 at 15:50
  • 1
    ⚆ _ ⚆ now i know why i was getting iniramfs error: i was making () with every "link" to file in grub... Here is another screenshot with place where i am (both terminal place and real location) : https://i.postimg.cc/brWXBnvv/image.jpg , and yes - it doesn't look good because i didnt setted up root account... – hacknorris Apr 25 '21 at 19:48
  • [Read the answer](https://superuser.com/a/471493/1257564) you may not get notification if I send the message to chat.. [At the last moment you will get an answer](https://forums.linuxmint.com/viewtopic.php?t=315482#top) did you remove anything inside /bin? –  Apr 25 '21 at 22:01
  • 1
    Im not sure but yet yesterday i was messing up with sudo, so... Maybe... And if about error - it's not the same i got on my pc... I had "enter root password for maintenance or press ctrl+D to continue" – hacknorris Apr 26 '21 at 02:52
  • Let's [continue this discussion in chat](https://chat.stackexchange.com/rooms/123421/discussion-between-istiak-and-hacks-norris) –  Apr 26 '21 at 03:44

0 Answers0