!Screenshot
Issue: After a reboot, the boot process drops to the BusyBox shell and I end up at the Initramfs prompt:
Cause: 1. Unexpected powerloss and shock to the harddisk in a some way example charging a device while system being shutdown and causing bad superblock in system.
Solution:
Firstly, boot into a live CD or USB
Find out your partition number by using
Then, list all superblocks by using the command:
Replace "sda2" to your drive number
Now, to check and repair a Linux file system using alternate superblock # 32768:
The -y flag is used to skip all the Fix? questions and to answer them all with a yes automatically
Now try mounting the partition:
Now, try to browse the filesystem with the following commands:
If you are able to perform the above commands, you have most probably fixed your error.
Now, restart you computer and you should be able to boot normally.
(source)
#errors #Notes #fixes
Issue: After a reboot, the boot process drops to the BusyBox shell and I end up at the Initramfs prompt:
BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)
Cause: 1. Unexpected powerloss and shock to the harddisk in a some way example charging a device while system being shutdown and causing bad superblock in system.
Solution:
Firstly, boot into a live CD or USB
Find out your partition number by using
sudo fdisk -l|grep Linux|grep -Ev 'swap'
Then, list all superblocks by using the command:
sudo dumpe2fs /dev/sda2 | grep superblock
Replace "sda2" to your drive number
Now, to check and repair a Linux file system using alternate superblock # 32768:
sudo fsck -b 32768 /dev/sda2 -y
The -y flag is used to skip all the Fix? questions and to answer them all with a yes automatically
Now try mounting the partition:
sudo mount /dev/sda2 /mnt
Now, try to browse the filesystem with the following commands:
cd /mnt mkdir test ls -l cp file /path/to/safe/location
If you are able to perform the above commands, you have most probably fixed your error.
Now, restart you computer and you should be able to boot normally.
(source)
#errors #Notes #fixes
Use apt-file search to check broken libraries belongs to which file?
X11 /extensions /Xcomposite.h No such file or directory
http://askubuntu.com/questions/801252/ddg#900768
Whenever a compile fails with a missing file simply leverage the infrastructure to search for the missing ubuntu package
which returns with
this technique works across any missing file
On a fresh OS if you issue
it will fail with error
The program 'apt-file' is currently not installed. To run 'apt-file' please ask your administrator to install the package 'apt-file'
which just means you need to do a one time setup of the local search cache so just run
--Scott Stensland
#notes #fixes
X11 /extensions /Xcomposite.h No such file or directory
http://askubuntu.com/questions/801252/ddg#900768
Whenever a compile fails with a missing file simply leverage the infrastructure to search for the missing ubuntu package
apt-file search some_missing_file_goes_here
# cmd 1 apt-file search X11/extensions/Xcomposite.h
# cmd 1which returns with
libxcomposite-dev: /usr/include/X11/extensions/Xcomposite.h
so solution is to install that missing packagesudo apt-get install libxcomposite-dev
# cmd 2this technique works across any missing file
On a fresh OS if you issue
apt-file search X11/extensions/Xcomposite.h
it will fail with error
The program 'apt-file' is currently not installed. To run 'apt-file' please ask your administrator to install the package 'apt-file'
which just means you need to do a one time setup of the local search cache so just run
sudo apt-get install apt-file -y
sudo apt-file update
now re-issue the search shown above (cmd 1) then install package (cmd 2)--Scott Stensland
#notes #fixes
Ask Ubuntu
X11/extensions/Xcomposite.h: No such file or directory
I've tried to compile https://unix.stackexchange.com/a/228674 under Ubuntu.
Unfortunately ending up with following error:
/tmp/find-cursor$ make
cc find-cursor.c -o find-cursor -lX11
find-cursor...
Unfortunately ending up with following error:
/tmp/find-cursor$ make
cc find-cursor.c -o find-cursor -lX11
find-cursor...
Known Errors #fixes
Gparted cannot open
source: https://unix.stackexchange.com/questions/424987/why-can-i-not-open-gparted-from-the-command-line
Working Solution:
- Make sure having
Gparted cannot open
source: https://unix.stackexchange.com/questions/424987/why-can-i-not-open-gparted-from-the-command-line
$ sudo gparted
(gpartedbin:7820): Gtk-WARNING **: cannot open display:
Working Solution:
- Make sure having
xorg-xhost and polkit
installed- sudo sh -c 'DISPLAY=:0 exec gparted'
To transfer Files Over ftp on Arch Linux!
#ftp #fixes #notestonubelikeme
Are you on arch-linux?
Are frustrated like me wondering where is ftp in arch repos?
then look no more just install lftp
free to use your ftp commands such as get and put to upload and download files over ftp
#ftp #fixes #notestonubelikeme
Are you on arch-linux?
Are frustrated like me wondering where is ftp in arch repos?
then look no more just install lftp
sudo pacman -S lftpconnect with your ftp server
lftp admin@192.168.24.1:1234just like that you connected and
free to use your ftp commands such as get and put to upload and download files over ftp