Compile errors - clang https://askubuntu.com/questions/1565640/compile-errors-clang

I began to receive these compile errors for mango (and labwc):

ninja: Entering directory `build'
[48/48] Linking target mango
FAILED: mango 
clang  -o mango mango.p/meson-generated_xdg-shell-protocol.c.o mango.p/meson-generated_pointer-constraints-unstable-v1-protocol.c.o mango.p/meson-generated_cursor-shape-v1-protocol.c.o mango.p/meson-generated_tablet-v2-protocol.c.o mango.p/meson-generated_ext-image-copy-capture-v1-protocol.c.o mango.p/meson-generated_ext-image-capture-source-v1-protocol.c.o mango.p/meson-generated_ext-foreign-toplevel-list-v1-protocol.c.o mango.p/meson-generated_ext-workspace-v1-protocol.c.o mango.p/meson-generated_tearing-control-v1-protocol.c.o mango.p/meson-generated_wlr-foreign-toplevel-management-unstable-v1-protocol.c.o mango.p/meson-generated_dwl-ipc-unstable-v2-protocol.c.o mango.p/meson-generated_wlr-layer-shell-unstable-v1-protocol.c.o mango.p/meson-generated_wlr-output-power-management-unstable-v1-protocol.c.o mango.p/src_mango.c.o mango.p/src_common_util.c.o mango.p/src_ext-protocol_wlr_ext_workspace_v1.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/local/lib/x86_64-linux-gnu -Wl,--start-group -lm /usr/lib/x86_64-linux-gnu/libxcb.so /usr/lib/x86_64-linux-gnu/libxcb-icccm.so /usr/local/lib/x86_64-linux-gnu/libscenefx-0.4.so /usr/lib/x86_64-linux-gnu/libwayland-server.so /usr/local/lib/x86_64-linux-gnu/libwlroots-0.19.so /usr/lib/x86_64-linux-gnu/libxkbcommon.so /usr/lib/x86_64-linux-gnu/libinput.so /usr/lib/x86_64-linux-gnu/libwayland-client.so /usr/lib/x86_64-linux-gnu/libpcre2-8.so -Wl,--end-group
/usr/bin/ld: mango.p/src_mango.c.o: in function `setup':
/home/vaskark/work/mango/build/../src/mango.c:5788:(.text+0x2e6ff): undefined reference to `wlr_drm_lease_v1_manager_create'
/usr/bin/ld: mango.p/src_mango.c.o: in function `createmon':
/home/vaskark/work/mango/build/../src/mango.c:3013:(.text+0x345e0): undefined reference to `wlr_drm_lease_v1_manager_offer_output'
/usr/bin/ld: mango.p/src_mango.c.o: in function `requestdrmlease':
/home/vaskark/work/mango/build/../src/mango.c:4747:(.text+0x3c9ed): undefined reference to `wlr_drm_lease_request_v1_grant'
/usr/bin/ld: /home/vaskark/work/mango/build/../src/mango.c:4751:(.text+0x3ca20): undefined reference to `wlr_drm_lease_request_v1_reject'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Not sure what's happened as I was able to compile successfully before. And my current installs of mango and labwc are giving me a "Failed to connect to DRM backend" error message.

Any help would be greatly appreciated.

Thanks.

Ubuntu 25.10

Can I use opencode models in openclaw without an API key? https://askubuntu.com/questions/1565638/can-i-use-opencode-models-in-openclaw-without-an-api-key
  1. I setup both opencode and openclaw on my Ubuntu

  2. I don't quite understand why my opencode works without an API key

  3. But it does, and I'm able to run opencode and use its free models

  4. Is there a way to get openclaw to be able to use the models without providing an API key too?

Problem with ae.archive.ubuntu.com : It is down [duplicate] https://askubuntu.com/questions/1565637/problem-with-ae-archive-ubuntu-com-it-is-down

I'm trying to update my package index and ae.archive.ubuntu.com at IP 217.198.190.55 is not reachable. How can I report this?

Ubuntu goes into suspend when keyboard, mouse and display disconnect https://askubuntu.com/questions/1565634/ubuntu-goes-into-suspend-when-keyboard-mouse-and-display-disconnect

My Ubuntu 25 platform goes into suspend when I use my Video, Keyboard and Mouse switch to connect to my Windows 11 pro machine, This prevents me from accessing my Ubuntu machine with ssh from my windows machine. Is there a setting or other means to force my Ubuntu to stay active when my keyboard and display switches from my Ubuntu to my Windows machine?

Ubuntu won’t boot – brief black screen then back to BIOS (ThinkPad P15 Gen 1) https://askubuntu.com/questions/1565632/ubuntu-won-t-boot-brief-black-screen-then-back-to-bios-thinkpad-p15-gen-1

I’m running into a weird issue with my ThinkPad P15 Gen 1. Whenever I try to boot into Ubuntu, I just get a black screen for like half a second, and then it kicks me straight back to the BIOS.

GRUB seems to be installed normally, efibootmgr looks fine, and the boot entry is still there in the BIOS as well. So I’m kinda stuck figuring out what’s actually going wrong here.

Has anyone seen something like this before or got an idea how to fix it? Would really appreciate any help 🙏

Annoying sticky keys issue on Ubuntu 24.04 and also 25.10 (after upgrading) https://askubuntu.com/questions/1565630/annoying-sticky-keys-issue-on-ubuntu-24-04-and-also-25-10-after-upgrading

It has been months now since I started facing these sticky keys issues! Even after upgrading to 25.10 I still see this pop-up stating sticky keys was enabled. I already followed many tutorials, disabled "everything" related with accessibility, but I keep on being haunted by this behavior I cannot get rid of.

I thought it was a problem with my KVM switch and attached (to the KVM) mouse and keyboard, but with everything disconnected and using only the notebook's mouse and keyboard the sticky keys keep on activating themselves. I also observe that when it is activated, when I click the mouse on any button\shortcut I have on my taskbar, it is shown me the right-click menu even if I click the shortcut\button with the left mouse button.

Another strange behavior is that when I boot my notebook, at the login screen the keyboard does not work at first (I can't type in the password!) and I need to restart the notebook and then, after this new restart the keyboard works. This behavior happens frequently, but also many times it works since the first boot. All these bad behavior patterns started after some update on Ubuntu 24.04. On previous versions of Ubuntu I used before (18.04, 22.04 ...) I never had this. Can you provide me some help on how to definitively get rid of this problem? Is it a bug? Is it something to do with my hardware?

No sound from snap Thunderbird on new Ubuntu installation https://askubuntu.com/questions/1565628/no-sound-from-snap-thunderbird-on-new-ubuntu-installation

I had to reinstall Ubuntu 24.04 LTS on my Dell Latitude 5510, and all is well except that Thunderbird does not play any sound. Prior to reinstall it worked well, and I was notified when a new mail arrived.

ALSA works well (verified by using aplay to play sound files), and all other GUI apps with sound are working.

I have tried to connect the Thunderbird snap to ALSA:

sudo snap connect thunderbird:alsa
[sudo] password for bernt:
error: snap "thunderbird" has no plug named "alsa"

So that was not the thing to do.

Anyone?

initramfs after every reboot https://askubuntu.com/questions/1565627/initramfs-after-every-reboot

I installed Ubuntu 24.04 on my old 2015 MacBook Pro to try and play around and learn Linux with it. On every reboot I get the stuck in intiramfs. I've used fsck /dev/sdax -y multiple times and keep getting stuck. When I do fsck it says everything is fixed, but then when I use exit to continue it writes a couple more lines. The last one starts with failed and then it boots. It moves on too quickly for me to read, so I don't know what's failing.

It runs fine when I'm using it right after booting, but as soon as I leave Firefox on and suspend and then come back, the whole thing freezes/crashes and I can't open any apps other than home and maybe the App Center. When this happens the system completely bogs down, but according to the System Monitor none of the CPU is being used. Is there anything I should do right after installation to smooth anything out?

Adding new panel then rebooting causes it to disappear and is unable to show again https://askubuntu.com/questions/1565624/adding-new-panel-then-rebooting-causes-it-to-disappear-and-is-unable-to-show-aga

Basically, I wanted to add a top bar, so I did it by going into edit mode and add panel at the top, I put a bunch some MacOS theme stuff that I liked and put it on the top bar. It worked the entire time as intended, but when rebooting, it just disappears and I have no idea why. The bottom default panel still works, even if I make changes to it, it still shows them every boot. But any other I make disappears.

STEPS TO REPRODUCE
1. Add a top panel, put a bunch of stuff on it.
2. Reboot or shutdown

OBSERVED RESULT
Top panel disappears

EXPECTED RESULT
Panel should remain after every boot as it was last left.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.04 LTS
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

trying to automatically restart wifi https://askubuntu.com/questions/1565613/trying-to-automatically-restart-wifi

Ubuntu 24.04.4 LTS

To preface, I didn't have this issue with Ubuntu 22...Trying to automatically restart wifi for my jellyfin server. I can't remotely connect to jellyfin at all times, because at some point my wifi is possibly going to sleep (everything appears connected, can reach all websites, jellyfin works locally). So I initially disabled wifi power saving. Didn't stop the issue. Then I tried an auto script via cron, it runs every 10 minutes to check if there is a connection and if there isn't it restarts the network. Problem is everything appears connected, in fact is connected. So it doesn't go through restarting the network. Does anyone have a possible solution? Perhaps a way to restart the network every 4 hours regardless of a current connection.

Unable to open Cronopete https://askubuntu.com/questions/1565603/unable-to-open-cronopete

I have updated to Ubuntu 22.04 on my laptop. Previously I have used Cronopete for my backups. I have installed Cronopete in Ubuntu 22.04.

Cronopete does not open when I click on the icon in "Show Applications"

If I try to run Cronopete from the terminal I get the following error message:

$ tony@TONYZ-UBUNTU:\~$ cronopete
cronopete: symbol lookup error: cronopete: undefined symbol: g_once_init_enter_pointer
Why do I suddenly get "A privileged instruction was executed at address 004dd5b4" Wine error? https://askubuntu.com/questions/1565600/why-do-i-suddenly-get-a-privileged-instruction-was-executed-at-address-004dd5b4

I played the old original Command and Conquer game, There was an update and suddenly it would no longer start.

It stops with:

A privileged instruction was executed at address 004dd5b4    
Click on OK to terminate the application.

Kubuntu 22.04 LTS (Yes, I know we have to upgrade). And yes, I know OpenRA exists.

The error first appeared in Lutris, so I tried reinstall, new wine prefix, complete reinstall of game, try different wine versions in Lutris. Nothing worked. Then I moved over to PlayOnLinux, installed there and I had the same issue.

At first I thought it was a Lutris issue, but it seem this is system-wide. I am unsure what update would cause this, but it seems as if something is blocking Wine. The game worked just fine, then one day this error message appeared and it no longer worked.

System: Ryzen 7 2700, 16 GB RAM, Nvidia GTX 1650 4 GB; kernel 5.15.0-174-generic x86_64

Lutris log - original error:

Started initial process 30014 from taskset -c 0-0 /home/user/.local/share/lutris/runners/wine/wine-staging-11.2-x86_64/bin/wine /media/user/biggames1/CnC/drive_c/WESTWOOD/CNC95/C&C95.EXE DXVK_FRAME_RATE 60  
Start monitoring process.  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
Monitored process exited.  
Initial process has exited (return code: 256)  
Exit with return code 256"  
\-Lutris log    
  
new prefix in Lutris and fresh install:  
Started initial process 52570 from /home/user/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /media/user/biggames1/cncz/drive_c/WESTWOOD/CNC95/C&C95.EXE  
Start monitoring process.  
esync: up and running.  
wine: RLIMIT_NICE is \<= 20, unable to use setpriority safely  
Monitored process exited.  
Initial process has exited (return code: 38400)  
Exit with return code 38400
Why do all my programs spam app icons when installed? https://askubuntu.com/questions/1565590/why-do-all-my-programs-spam-app-icons-when-installed

I'm not sure how to phrase this. Every time I download an app or program, no matter if it's from Steam, App Center, Flathub, or anywhere else, I get either one icon of it on my app screen, or I get 1-2 pages full of it.

or i get 1-2 pages full of it

I thought maybe I pressed a button to mess it up, but I just downloaded something new, and the same thing happened again.

Before you ask, no, I didn't download most of these programs from different sources. only a few apps were downloaded from different sources, and those aren't the ones I'm confused about. For example, all of my Steam games have several respective icons.

all of my steam games have several respective icons

...and you can't download a game from Steam twice. Most things I download are Steam games, so this is the bigger issue.

I only have one semi-normal page. It's getting out of control.

i only have one semi-normal page.

Edit: this doesn't happen on my desktop screen, it only happens on my app screen. Here's my desktop screen, for clarity: enter image description here

There also isn't a way for me to delete the icons by right-clicking them.

enter image description here

Package apt-clone. Restoring packages https://askubuntu.com/questions/1565539/package-apt-clone-restoring-packages

I'm experimenting trouble trying to restore packages with apt-clone. I used the common commands with no success.

sudo apt install apt-clone
sudo apt-clone clone [name of the file]
sudo apt-clone restore [name of the file]

My Ubuntu server failed and I have to restore those packages that worked once.

There's and optional option: --with dpkg-repack to restore dpkg packages apart from the ones cloned with apt.

How to get modifier keys such as ctrl, alt, tab and so on in an on-screen-keyboard in Wayland? https://askubuntu.com/questions/1555182/how-to-get-modifier-keys-such-as-ctrl-alt-tab-and-so-on-in-an-on-screen-keyboa

The onboard on-screen-keyboard offers a lot of buttons.

onboard

Unfortunately, it does not work on Wayland, and Ubuntu and Kubuntu are going to deprecate x11.

The default on-screen-keyboard in wayland does not have too many buttons enter image description here

The on-screen-keyboard in Ubuntu is not as feature-rich as onboard. For example, it does not come with tab or control buttons, which are often necessary to operate in a terminal on a tablet device running GNU/Linux.

How to either

  1. Run Onboard in Wayland?
  2. Add the additional keys (ctrl, tab and so on) to the existing Wayland keyboard?
System Icons Missing After Unexpected Shutdown - Ubuntu 24.04.2 LTS https://askubuntu.com/questions/1553385/system-icons-missing-after-unexpected-shutdown-ubuntu-24-04-2-lts

I was working on my project and suddenly my laptop was shutdown. And then I reopened my laptop. It's missing somehow. I don't know why. screenshots of missing icons

LibTiff5 removed after Ubuntu 24.04 installation, how to install again? https://askubuntu.com/questions/1540324/libtiff5-removed-after-ubuntu-24-04-installation-how-to-install-again

I use an animation software (Mine-Imator lol) which has a hard dependency on a package going under the name of "LibTiff5". Now I know what that is, the problem is that it wants LibTiff5 specifically. But as of Ubuntu 24.04 (or 23 not sure) LT5 was dropped in favor of LibTiff6, and remains on 22.04 (Jammy Jellyfish). LT6 of course isn't supported by it because the software hasn't been updated in 2 years at the time of writing. Neither is LT5-dev. My question is, is there a good non-painful way to install the old LT5 on Ubuntu 24.04?

......../Mine-imator: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory
fresh install 22.04 lts deja dup restore "no backup files found" https://askubuntu.com/questions/1482528/fresh-install-22-04-lts-deja-dup-restore-no-backup-files-found

i have a confirmed backup of my old laptop image.

deja dup does recognise the backup hard-drive and folder on fresh install of 22.04 LTS on new laptop..

enter image description here

but the deja dup on new install says 'no backup found'...

no backups found

i have read that the default location for deja dup may have to be set to the location of the backup (where the backup is that i want to restore).. but there seems to not be alot of information on this situation i find myself in.

if anyone has a clear and clean method, much appreciated

11[14761.537078] blk_update_request: I/0 error, dev sdh sector 0 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 0 [duplicate] https://askubuntu.com/questions/1459204/1114761-537078-blk-update-request-i-0-error-dev-sdh-sector-0-op-0x0-read
[14761.537078] blk_update_request: I/0 error, dev sdh sector 0 op 0x0: (READ) flags 0x0 phys_seg 1 prio class 0
MTISERVER login: 11[14761.537078] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.537117] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.549732] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.549847] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.549943] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.549972] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550019] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550046] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550089] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550118] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550155] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550181] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550217] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550242] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550266] Dev sdh: unable to read RDB block 0
[14761.550290] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550315] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550345] blk_update_request: I/O error, dev sdh, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550370] Buffer I/O error on dev sdh, logical block 0, async page read
[14761.550407] blk_update_request: I/O error, dev sdh, sector 24 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[14761.550432] Buffer I/O error on dev sdh, logical block 3, async page read
22-04 : Howto install python-gtk2 and python-glade-2 for fslint https://askubuntu.com/questions/1405544/22-04-howto-install-python-gtk2-and-python-glade-2-for-fslint

I need python-gtk2 and python-glade-2 for an old app, but when I run dpkg -i I get this (translated), stating I miss python ???

sudo dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb python-glade2_2.24.0-5.1ubuntu2_amd64.deb 
Selecting packet python-gtk2 previously deselected.
(reading database... 364958 files et directories already installed.)
Preparation to unpacking python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ...
Unpacking python-gtk2 (2.24.0-5.1ubuntu2) ...
Selecting packet python-glade2 previously deselected.
Preparation to unpacking python-glade2_2.24.0-5.1ubuntu2_amd64.deb ...
Unpacking python-glade2 (2.24.0-5.1ubuntu2) ...
dpkg: dependencies problems prevent configuration of python-gtk2 :
 python-gtk2 depends on python (<< 2.8) ; although :
  Packet python is not installed.
 python-gtk2 depend on python (>= 2.7) ; although :
  Package python is not installed.
 python-gtk2 depend on python:any (>= 2.6.6-7~) ; although :
  Package python is not installed.

dpkg: error when processing python-gtk2 package (--install) :
 dependencies problems - left unconfigured
dpkg: dependencies problems prevent configuration of python-glade2 :
 python-glade2 depends on python (<< 2.8) ; although :
  Package python is not installed.
 python-glade2 depends on python (>= 2.7) ; although :
  Package python is not installed.
 python-glade2 depends on python-gtk2 (= 2.24.0-5.1ubuntu2) ; although :
 Package python-gtk2 is not yet configured.

dpkg: error when processing python-glade2 package (--install) :
 dependencies problems - left unconfigured
Errors were encountered when running :
 python-gtk2
 python-glade2

Although :

sudo apt list python2.7 --installed
Listing... Done
python2.7/jammy,now 2.7.18-13ubuntu1 amd64  [installed]

Please tell me what is wrong there. I did it OK some days ago on a debian11 and I just had to run

sudo apt -f install

to fix the problem. Instead, when I apt -f install here, ubuntu wants to remove the 2 packages instead of fixing the installation.

Thanks for tips. I know this is really not standard thing to do.

How change the font size in Ubuntu Server 20.04 LTS https://askubuntu.com/questions/1402246/how-change-the-font-size-in-ubuntu-server-20-04-lts

What I'm trying to do is increase the font size, not change the resolution. I still want my resolution to be 4k, but I want a bigger font size. Is this possible? This is the terminal, there is no GUI installed.

Edit: the answer was: sudo vi /etc/default/console-setup FONTFACE="Terminus" FONTSIZE="16x32" sudo update-initramfs -u sudo reboot

It would be nice also to change the console resolution but I don't know how in Ubuntu Server 20.04 LTS

Upgrade to Ubuntu 19.10 led me to Firmware Bug TSC_DEADLINE + ACPI BIOS Error https://askubuntu.com/questions/1189892/upgrade-to-ubuntu-19-10-led-me-to-firmware-bug-tsc-deadline-acpi-bios-error

After a reboot during the update to Ubuntu 19.04 to 19.10, I arrived at a boot error following the GRUB boot loader. My machine is an HP Pavilion Gaming Notebook. I use it dual boot with Windows 10. The error messages begin with:

[0.0393321] [Firmware Bug] TSC_DEADLINE disabled due to Errata: please update microcode to version 0xb2 (or later)

There is also a kernel panic message:

[    0.039321] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please 
update microcode to version: 0xb2 (or later)
[    0.386679] ACPI BIOS Error (bug): _SB.PCI0.RP07.PXSX._DSW: Insufficient 
arguments - ASL declared 1, ACPI requires 3 (20190703/nsarguments-152)
[    0.387554] ACPI BIOS Error (bug): _SB.PCI0.RP09.PXSX._DSW: Insufficient 
arguments - ASL declared 1, ACPI requires 3 (20190703/nsarguments-152)
[    0.430590] platform MSFT0101:00: failed to claim resource 1: [mem 0xfed40000-0xfed40fff]
[    0.430596] acpi MSFT0101:00: platform device creation failed: -16
[    0.844241] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.844263] CPU: 7 PID: 1 Comm: swapper/0 Not tainted 5.3.0-23-generic #25-Ubuntu
[    0.844280] Hardware name: HP HP Pavilion Gaming Notebook/818E, BIOS F.82 08/18/2016
[    0.844296] Call Trace:
[    0.844306]  dump_stack+0x63/0x8a
[    0.844315]  panic+0x101/0x2d7
[    0.844325]  mount_block_root+0x23f/0x2e8
[    0.844335]  mount_root+0x38/0x3a
[    0.844344]  prepare_namespace+0x13f/0x194
[    0.844354]  kernel_init_freeable+0x231/0x255
[    0.844366]  ? rest_init+0xb0/0xb0
[    0.844376]  kernel_init+0xe/0x100
[    0.844385]  ret_from_fork+0x35/0x40
[    0.844440] Kernel Offset: 0xe200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.844466] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
_

Can anyone help me return Ubuntu to a working state?

How to loop with case esac in shell scripting? https://askubuntu.com/questions/1131468/how-to-loop-with-case-esac-in-shell-scripting

I'd like to write a script where if a user enters a path which contains his/her $HOME directory, it would raise an error and the script will run until user enters a valid path in which the loop will break.

Apparently it gives a syntax error if I have continue or break commands. What do I do wrong here? Thanks, Jen.

#!/bin/bash

function project1_install_dir_path() {   

    boolian_2=true; 
    while true; do

    if [ "$boolian_2" = true ] ; then

       read -p "Enter FULL folder path where you want to install colsim1:" fullpath

       echo "you have enterd "$fullpath". Please press 'y' to confirm and 'n' to enter again"

       case "$fullpath" in

       "$HOME"*) echo "Error: The path cannot be in your HOME" ;; continue      
       */home*) echo "Error: The path cannot contain 'home' in the path" ;; continue
       *) echo "you have entered a valid path" ;; break

       esac
       done    
   fi    
}

function main() {

project1_install_dir_path    
}

Terminal Output

jen@ss23:/bash_file.sh 
-bash: /project/bash_file.sh: line 62: syntax error near unexpected token `newline'
-bash: /project/bash_file.sh: line 62: ` "$HOME"*) echo "Error: The path cannot be in your HOME" ;; continue  
VirtualBox startup error for Lubuntu - kernel panic not syncing https://askubuntu.com/questions/1120392/virtualbox-startup-error-for-lubuntu-kernel-panic-not-syncing

I am trying to boot up Lubuntu on virtualbox to obtain OpenFOAM software as indicated @ Using OpenFOAM in VirtualBox .

I'm using Ubuntu 16.04. I receive this kernel panic error message on startup.

[   22.835415]  [<c13a4ea0>] ? __wrmsr_on_cpu+0x40/0x40
[   22.835706]  [<c13a4ea0>] ? __wrmsr_on_cpu+0x40/0x40
[   22.835876]  [<c10e89df>] smp_call_function_single+0x6f/0x100
[   22.836060]  [<c1b26193>] ? intel_cqm_init+0x288/0x288
[   22.836220]  [<c1b26193>] ? intel_cqm_init+0x288/0x288
[   22.836438]  [<c13a526d>] rdmsrl_safe_on_cpu+0x4d/0x80
[   22.836603]  [<c1b261db>] pt_init+0x48/0x259
[   22.836750]  [<c100211a>] do_one_initcall+0xaa/0x200
[   22.836905]  [<c1b26193>] ? intel_cqm_init+0x288/0x288
[   22.837073]  [<c1b18cf6>] ? kernel_init_freeable+0x126/0x1d9
[   22.837246]  [<c1b18d16>] kernel_init_freeable+0x146/0x1d9
[   22.837416]  [<c1757700>] kernel_init+0x10/0xe0
[   22.837562]  [<c1092ed1>] ? schedule_tail+0x11/0x50
[   22.837720]  [<c17658c1>] ret_from_kernel_thread+0x21/0x30
[   22.837883]  [<c17576f0>] ? rest_init+0x70/0x70
[   22.838071] Code: Bad EIP value.
[   22.838401] EIP: [<febdb8b3>] 0xfebdb8b3 SS:ESP 0068:f6cbbe5c
[   22.839193] ---[ end trace 1b06e6cf98ad2464 ]---
[   22.842657] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00
00000b
[   22.842657]
[   22.843212] ---[ end Kernel panic - not syncing: Attempted to kill init! exit
code=0x0000000b
[   22.843212]
_
Issues after update 16.04 - 18.04 LTS https://askubuntu.com/questions/1095422/issues-after-update-16-04-18-04-lts

I recently tried upgrading my HP Z420 workstation from Ubuntu 16.04 to 18.04. While updating, Ubuntu froze at the instance shown.

[user@hostname]:~$ sudo apt-get update; sudo update-manager -d
Ign:1 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Hit:2 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu xenial InRelease
Hit:3 http://lu.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://lu.archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:7 http://lu.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Get:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:10 https://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease
Hit:11 https://download.sublimetext.com apt/dev/ InRelease
Fetched 107 kB in 0s (151 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
from gi.repository import Dbusmenu, Unity
Checking for a new Ubuntu release
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gdk
/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import WebKit2 as WebKit
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'

(appstreamcli:7885): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed

(appstreamcli:7885): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
AppStream cache update completed, but some metadata was ignored due to errors.
MarkInstall libc6 [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=1
MarkInstall locales [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=0
Installing libc-bin as Depends of locales
MarkInstall libc-bin [ amd64 ] < 2.23-0ubuntu10 -> 2.27-3ubuntu1 > ( libs ) FU=0
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done

(bionic:7134): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu Bold 13.1982421875'

(bionic:7134): Pango-WARNING **: font_face status is: file not found

(bionic:7134): Pango-WARNING **: scaled_font status is: file not found

(bionic:7134): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='PangoFcShapeEngine', font='Ubuntu Bold 13.1982421875', text='Upgrading Ubuntu to version 18.04'
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/libgvc6-plugins-gtk.0.crash'
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/fontconfig.0.crash'
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/fontconfig.0.crash'

I then rebooted after which I consistently got a kernel panic, as shown.

[    0.787089] Kernel panic - not syncing: VFS: Unable to mount root fs
on unknown-block(0,0)
[    0.787149] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.15.0-39-generic #42-U
buntu
[    0.787201] Hardware name: Hewlett-Packard HP Z420 Workstation/1589, BIOS J61
v02.55 02/07/2013
[    0.787257] Call Trace:
[    0.787303]  dump_stack+0x63/0x8b
[    0.787352]  panic+0xe4/0x244
[    0.787398]  mount_block_root+0x1f6/0x2da
[    0.787442]  ? set_debug_rodata+0x17/0x17
[    0.787486]  mount_root+0x38/0x3a
[    0.787527]  prepare_namespace+0x139/0x18e
[    0.787571]  kernel_init_freeable+0x224/0x251
[    0.787625]  ? rest_init+0xb0/0xb0
[    0.787668]  kernel_init+0xe/0x110
[    0.787722]  ret_from_fork+0x35/0x40
[    0.787798] Kernel Offset: 0x21800000 from 0xffffffff81000000 (relocation 
range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.787860] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs
on unknown-block(0,0)
_

I then booted from a live CD and ran bootrepair, with output shown info

This solved the Kernel Panic. However, now I only get a blank screen (same color as in Grub2).

When I enter Grub and select an earlier kernel, Ubuntu 18.04 loads but I only get a command line login, not a GUI. At the command I tried re-running apt-get update but this also gave errors relating to metadata, see

[user@hostname]:~$ sudo apt-get update
[sudo] password for [user]:
Ign:1 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://lu.archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://lu.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:6 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:7 http://lu.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metada
ta [204 B]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 M
etadata [9,416 B]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 I
cons [16.3 kB]
Fetched 109 kB in 1s (111 kB/s)
AppStream system cache was updated, but problems were found: Metadata files have
errors: /var/cache/app-info/xmls/fwupd.xml
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test
-w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-ca
che > /dev/null; fi'
E: Sub-process returned an error code
[user@hostname]:~$ _

I am at a total loss how to get things up and running again.

According to janmyszkier's answer I checked the HDD for errors using the Disks utility (extended self-test) and, reassuringly, no issues were found.

I tried using a live CD and chroot method in a virtual console to try and redo the upgrade, but the errors remain. Specifically, Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory), could not load /boot/System.map-4.4.0-121-generic: No such file or directory, could not open directory /lib/modules/4.4.0-121-generic: No such file or directory, and /usr/share/initramfs-tools/hooks/plymouth failed with return 1. See below:

$sudo mount /dev/sda6 /mnt
$sudo mount --bind /dev /mnt/dev
$sudo mount --bind /proc /mnt/proc
$sudo mount --bind /sys /mnt/sys
$sudo chroot /mnt
$apt update
........
$apt upgrade
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be REMOVED:
  linux-image-extra-4.4.0-121-generic
The following NEW packages will be installed:
  bubblewrap
The following packages have been kept back:
  libhmsbeagle1v5 phyml
The following packages will be upgraded:
  apache2-bin bolt desktop-file-utils firefox-locale-en ghostscript
  ghostscript-x gir1.2-gnomedesktop-3.0 gir1.2-javascriptcoregtk-4.0
  gir1.2-packagekitglib-1.0 gir1.2-totem-1.0 gir1.2-webkit2-4.0 git git-man
  gnome-desktop3-data gnome-initial-setup grub-common grub-pc grub-pc-bin
  grub2-common gstreamer1.0-packagekit libapache2-mod-perl2
  libgnome-desktop-3-17 libgs9 libgs9-common libgvc6-plugins-gtk
  libjavascriptcoregtk-4.0-18 libldap-2.4-2 libldap-common
  libpackagekit-glib2-18 libsmbclient libssh-4 libtotem0
  libunity-settings-daemon1 libwbclient0 libwebkit2gtk-4.0-37
  libwebkit2gtk-4.0-37-gtk2 openjdk-8-jre openjdk-8-jre-headless packagekit
  packagekit-tools python-samba python3-distupgrade python3-update-manager
  samba-common samba-common-bin samba-libs smbclient totem totem-common
  totem-plugins ubuntu-keyring ubuntu-release-upgrader-core
  ubuntu-release-upgrader-gtk unity-settings-daemon update-manager
  update-manager-core update-notifier update-notifier-common
58 upgraded, 1 newly installed, 1 to remove and 2 not upgraded.
387 not fully installed or removed.
Need to get 0 B/83.9 MB of archives.
After this operation, 155 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
(Reading database ... 1326337 files and directories currently installed.)
Removing linux-image-extra-4.4.0-121-generic (4.4.0-121.145) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-121-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
Error! Your kernel headers for kernel 4.4.0-121-generic cannot be found.
Please install the linux-headers-4.4.0-121-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-121-generic
WARNING: missing /lib/modules/4.4.0-121-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-121-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-121-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-121-generic (--remove):
 installed linux-image-extra-4.4.0-121-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.4.0-121-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
possible to mark all mail as read using one line terminal? https://askubuntu.com/questions/994498/possible-to-mark-all-mail-as-read-using-one-line-terminal

I am not trying to remove all the mails.

I googled for mark all mail as read, actually got posts saying how to delete them instead.

I found out using echo p | mail will output first of unread then mark it read, but if I do this, I have to loop through them.

I figured for all read mails, they will be appended to a file named mbox

What I am trying to do is...I want to create a bash file which is then used for crontab that let's say, at the end of each month, change the name of mbox into month-year in this way I can keep track and organize the mails BUT in order to have the mails appended into mbox is reading the mails one by one first.

Am I thinking this in a wrong direction? Or can someone give me some advices?

Thanks in advance for any help

EDIT: I am just using sudo apt install mailutils for my ubuntu server

Kernel panic - not syncing: Not all CPUs entered broadcast exception handler https://askubuntu.com/questions/989900/kernel-panic-not-syncing-not-all-cpus-entered-broadcast-exception-handler

I am using Windows 8.1. I want to dual boot with Ubuntu 16.04, but I get this error:

[   28.125319] nouveau 0000:09:00.0: fifo: SCHED_ERROR 06 []
[   28.126384] nouveau 0000:09:00.0: fifo: SCHED_ERROR 06 []
[   28.127448] nouveau 0000:09:00.0: fifo: SCHED_ERROR 06 []
[   28.128509] nouveau 0000:09:00.0: fifo: SCHED_ERROR 06 []
[   70.277338] Kernel panic - not syncing: Timeout: Not all CPUs entered broadcast exception handler
[   71.327471] Shutting down cpus with NMI
[   71.337996] Kernel Offset: disabled
[   71.343862] Rebooting in 30 seconds..
Kernel panic (…) Unable to mount root fs on unknown-block(0,0) https://askubuntu.com/questions/821602/kernel-panic-unable-to-mount-root-fs-on-unknown-block0-0

I have upgraded from Ubuntu 14.04 to 16.04.01 after that there is a problem with grub2 (I have upgraded by sudo apt-get update and sudo do-release-upgrade -d), I am getting an error message: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0).

I have tried:

  • sudo update-initramfs -u -k $(uname -r) and sudo update grub2 (I've got an error: Missing /lib/modules/$(uname -r) and could not open directory /lib/modules/$(uname -r)).
  • Boot repair disk (but it keep saying that "Please close all your package managers (Software Center, Update...".

Results of lsblk -f /dev/sda:

ubuntu@ubuntu:~$ lsblk -f /dev/sda
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
├─sda1 ext4   VM    9cd6d4cd-4429-4af1-866d-7d1da991a222
└─sda2 ext4   psql  7585d4da-d743-4249-876b-f01b145b9850
ubuntu@ubuntu:~$ lsblk -f /dev/sdb
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sdb                                                      
├─sdb1 ext4   Root  c251b9bf-0122-43c7-8d76-328a8373b3d6
├─sdb5 ext4   Var   8d153819-dd3b-4f7f-846b-15c643eb4138
├─sdb6 ext4   Home  64c011da-4087-4445-9b2f-4bae074a97ee
├─sdb7 ext4   Misc  86e596f6-6bbe-46c7-b81e-27548433d288
└─sdb8 swap   Swap  115ea621-32f5-4a2e-a0bb-93f33355bd0e [SWAP]
ubuntu@ubuntu:~$ lsblk -f /dev/sdc
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sdc                                                            
└─sdc1 vfat   UBUNTU 16_0 0E1C-0580                            /cdrom
ubuntu@ubuntu:~$ 

Boot-Repair Boot Info Summary:

============================= Boot Info Summary: ===============================
 
 => No boot loader is installed in the MBR of /dev/sda.
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of  
    the same hard drive for core.img. core.img is at this location and looks  
    in partition 112 for .
 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdc.
 
sda1: __________________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:   
    Boot files:         
 
sda2: __________________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:   
    Boot files:         
 
sdb1: __________________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 16.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab  
                       /boot/extlinux/extlinux.conf
 
sdb2: __________________________________________________________________________
 
    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:  
 
sdb5: __________________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:   
    Boot files:         
 
sdb6: __________________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:   
    Boot files:         
 
sdb7: __________________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:   
    Boot files:         
 
sdb8: __________________________________________________________________________
 
    File system:       swap
    Boot sector type:  -
    Boot sector info:  
 
sdc1: __________________________________________________________________________
 
    File system:       vfat
    Boot sector type:  SYSLINUX 6.03
    Boot sector info:  Syslinux looks at sector 32784 of /dev/sdc1 for its  
                       second stage. The integrity check of Syslinux failed.  
                       No errors found in the Boot Parameter Block.
    Operating System:   
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg  
                       /efi/BOOT/grubx64.efi /ldlinux.sys
 
============================ Drive/Partition Info: =============================
 
Drive: sda _____________________________________________________________________
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
 
Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
 
/dev/sda1               2,048   929,525,759   929,523,712  83 Linux
/dev/sda2         929,525,760 1,953,523,711 1,023,997,952  83 Linux
 
 
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 698.7 GiB, 750156374016 bytes, 1465149168 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
Disklabel type: dos
 
Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
 
/dev/sdb1    *          2,048   117,186,559   117,184,512  83 Linux
/dev/sdb2         117,188,606 1,465,147,391 1,347,958,786   5 Extended
/dev/sdb5         117,188,608   312,498,175   195,309,568  83 Linux
/dev/sdb6         312,500,224   898,435,071   585,934,848  83 Linux
/dev/sdb7         898,437,120 1,448,763,391   550,326,272  83 Linux
/dev/sdb8       1,448,765,440 1,465,147,391    16,381,952  82 Linux swap / Solaris
 
 
Drive: sdc _____________________________________________________________________
Disk /dev/sdc: 15 GiB, 16041099264 bytes, 31330272 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
Disklabel type: dos
 
Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
 
/dev/sdc1    *          2,048    31,330,271    31,328,224   c W95 FAT32 (LBA)
 
 
"blkid" output: ________________________________________________________________
 
Device           UUID                                   TYPE       LABEL
 
/dev/loop0                                              squashfs    
/dev/sda1        9cd6d4cd-4429-4af1-866d-7d1da991a222   ext4       VM
/dev/sda2        7585d4da-d743-4249-876b-f01b145b9850   ext4       psql
/dev/sdb1        c251b9bf-0122-43c7-8d76-328a8373b3d6   ext4       Root
/dev/sdb5        8d153819-dd3b-4f7f-846b-15c643eb4138   ext4       Var
/dev/sdb6        64c011da-4087-4445-9b2f-4bae074a97ee   ext4       Home
/dev/sdb7        86e596f6-6bbe-46c7-b81e-27548433d288   ext4       Misc
/dev/sdb8        115ea621-32f5-4a2e-a0bb-93f33355bd0e   swap       Swap
/dev/sdc1        4A17-D7A8                              vfat       UBUNTU 16_0
 
================================ Mount points: =================================
 
Device           Mount_Point              Type       Options
 
/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdc1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
 
 
=========================== sdb1/boot/grub/grub.cfg: ===========================
 
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
 
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi
 
if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi
 
export menuentry_id_option
 
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi
 
function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}
 
if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
else
  search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
fi
    font="/usr/share/grub/unicode.pf2"
fi
 
if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pl_PL
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=1
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=1
  fi
fi
### END /etc/grub.d/00_header ###
 
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
 
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    linux    /boot/vmlinuz-4.4.0-36-generic root=/dev/sdb1 ro  quiet splash $vt_handoff
}
submenu 'Opcje zaawansowane dla systemu Ubuntu' $menuentry_id_option 'gnulinux-advanced-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
    menuentry 'Ubuntu, za pomocą systemu Linux 4.4.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-36-generic-advanced-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
        else
          search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
        fi
        echo    'Wczytywanie systemu Linux 4.4.0-36-generic...'
        linux    /boot/vmlinuz-4.4.0-36-generic root=/dev/sdb1 ro  quiet splash $vt_handoff
    }
    menuentry 'Ubuntu, with Linux 4.4.0-36-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-36-generic-recovery-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
        recordfail
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
        else
          search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
        fi
        echo    'Wczytywanie systemu Linux 4.4.0-36-generic...'
        linux    /boot/vmlinuz-4.4.0-36-generic root=/dev/sdb1 ro recovery nomodeset  
    }
    menuentry 'Ubuntu, za pomocą systemu Linux 3.13.0-96-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-96-generic-advanced-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
        else
          search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
        fi
        echo    'Wczytywanie systemu Linux 3.13.0-96-generic...'
        linux    /boot/vmlinuz-3.13.0-96-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro  quiet splash $vt_handoff
        echo    'Wczytywanie początkowego dysku RAM...'
        initrd    /boot/initrd.img-3.13.0-96-generic
    }
    menuentry 'Ubuntu, with Linux 3.13.0-96-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-96-generic-recovery-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
        recordfail
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
        else
          search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
        fi
        echo    'Wczytywanie systemu Linux 3.13.0-96-generic...'
        linux    /boot/vmlinuz-3.13.0-96-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro recovery nomodeset  
        echo    'Wczytywanie początkowego dysku RAM...'
        initrd    /boot/initrd.img-3.13.0-96-generic
    }
    menuentry 'Ubuntu, za pomocą systemu Linux 3.13.0-77-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-77-generic-advanced-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
        else
          search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
        fi
        echo    'Wczytywanie systemu Linux 3.13.0-77-generic...'
        linux    /boot/vmlinuz-3.13.0-77-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro  quiet splash $vt_handoff
        echo    'Wczytywanie początkowego dysku RAM...'
        initrd    /boot/initrd.img-3.13.0-77-generic
    }
    menuentry 'Ubuntu, with Linux 3.13.0-77-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-77-generic-recovery-c251b9bf-0122-43c7-8d76-328a8373b3d6' {
        recordfail
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
        else
          search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
        fi
        echo    'Wczytywanie systemu Linux 3.13.0-77-generic...'
        linux    /boot/vmlinuz-3.13.0-77-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro recovery nomodeset  
        echo    'Wczytywanie początkowego dysku RAM...'
        initrd    /boot/initrd.img-3.13.0-77-generic
    }
}
 
### END /etc/grub.d/10_linux ###
 
### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry "Ubuntu, za pomocą systemu Linux 4.4.0-36-generic" --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    linux    /boot/vmlinuz-4.4.0-36-generic root=/dev/sdb1 ro   quiet splash vt.handoff=7
}
menuentry "Ubuntu, with Linux 4.4.0-36-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    echo    'Wczytywanie systemu Linux 4.4.0-36-generic...'
    linux    /boot/vmlinuz-4.4.0-36-generic root=/dev/sdb1 ro single  
}
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
submenu "Previous Linux versions"{
menuentry "Ubuntu, za pomocą systemu Linux 3.13.0-96-generic" --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    linux    /boot/vmlinuz-3.13.0-96-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-3.13.0-96-generic
}
menuentry "Ubuntu, with Linux 3.13.0-96-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    echo    'Wczytywanie systemu Linux 3.13.0-96-generic...'
    linux    /boot/vmlinuz-3.13.0-96-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro single  
    echo    'Wczytywanie początkowego dysku RAM...'
    initrd    /boot/initrd.img-3.13.0-96-generic
}
menuentry "Ubuntu, za pomocą systemu Linux 3.13.0-77-generic" --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    linux    /boot/vmlinuz-3.13.0-77-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-3.13.0-77-generic
}
menuentry "Ubuntu, with Linux 3.13.0-77-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    echo    'Wczytywanie systemu Linux 3.13.0-77-generic...'
    linux    /boot/vmlinuz-3.13.0-77-generic root=UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 ro single  
    echo    'Wczytywanie początkowego dysku RAM...'
    initrd    /boot/initrd.img-3.13.0-77-generic
}
}
### END /etc/grub.d/10_linux_proxy ###
 
### BEGIN /etc/grub.d/20_linux_xen ###
 
### END /etc/grub.d/20_linux_xen ###
 
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    knetbsd    /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  c251b9bf-0122-43c7-8d76-328a8373b3d6
    else
      search --no-floppy --fs-uuid --set=root c251b9bf-0122-43c7-8d76-328a8373b3d6
    fi
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
 
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
 
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
 
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
 
### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
 
=============================== sdb1/etc/fstab: ================================
 
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=c251b9bf-0122-43c7-8d76-328a8373b3d6 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=64c011da-4087-4445-9b2f-4bae074a97ee /home           ext4    defaults        0       2
# /var was on /dev/sda5 during installation
UUID=8d153819-dd3b-4f7f-846b-15c643eb4138 /var            ext4    defaults        0       2
 
UUID=86e596f6-6bbe-46c7-b81e-27548433d288 /media/misc            ext4    defaults        0 0
 
UUID=115ea621-32f5-4a2e-a0bb-93f33355bd0e none swap sw,pri=0  0 0
 
# psql
UUID=7585d4da-d743-4249-876b-f01b145b9850 /media/psql ext4 defaults 0 0
# VM
UUID=9cd6d4cd-4429-4af1-866d-7d1da991a222 /media/VM ext4 defaults 0 0
 
--------------------------------------------------------------------------------
 
====================== sdb1/boot/extlinux/extlinux.conf: =======================
 
--------------------------------------------------------------------------------
## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: extlinux-update
 
 
default l0
prompt 1
timeout 50
 
include themes/debian/theme.cfg
--------------------------------------------------------------------------------
 
=================== sdb1: Location of files loaded by Grub: ====================
 
           GiB - GB             File                                 Fragment(s)
 
 
================= sdb1: Location of files loaded by Syslinux: ==================
 
           GiB - GB             File                                 Fragment(s)
 
 
============== sdb1: Version of COM32(R) files used by Syslinux: ===============
 
 boot/extlinux/chain.c32            :  COM32R module (v4.xx)
 
=========================== sdc1/boot/grub/grub.cfg: ===========================
 
--------------------------------------------------------------------------------
 
if loadfont /boot/grub/font.pf2 ; then
    set gfxmode=auto
    insmod efi_gop
    insmod efi_uga
    insmod gfxterm
    terminal_output gfxterm
fi
 
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
 
menuentry "Try Ubuntu without installing" {
    set gfxpayload=keep
    linux    /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash ---
    initrd    /casper/initrd.lz
}
menuentry "Install Ubuntu" {
    set gfxpayload=keep
    linux    /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash ---
    initrd    /casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
    set gfxpayload=keep
    linux    /casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash oem-config/enable=true ---
    initrd    /casper/initrd.lz
}
menuentry "Check disc for defects" {
    set gfxpayload=keep
    linux    /casper/vmlinuz.efi  boot=casper integrity-check quiet splash ---
    initrd    /casper/initrd.lz
}
--------------------------------------------------------------------------------
 
============================== sdc1/syslinux.cfg: ==============================
 
--------------------------------------------------------------------------------
DEFAULT loadconfig
 
LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/
--------------------------------------------------------------------------------
 
=================== sdc1: Location of files loaded by Grub: ====================
 
           GiB - GB             File                                 Fragment(s)
 
 
================= sdc1: Location of files loaded by Syslinux: ==================
 
           GiB - GB             File                                 Fragment(s)
 

=============================== StdErr Messages: ===============================
 
cat: /tmp/BootInfo-AD8woXPN/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-AD8woXPN/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-AD8woXPN/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-AD8woXPN/Tmp_Log: No such file or directory 

Like "Julie Pelletier" noticed "/ was on /dev/sda1 during installation" but my root partition appears to be /dev/sdb1".

I am not a pro, and I would be grateful if someone told me how to use "mount" (or initramfs) in order to fix this. Answers in this post didn't help (I'm not even sure if I should use partition on sda or sdb in this line sudo mount /dev/sdax /mnt)

Blank page when trying to reach phpmyadmin https://askubuntu.com/questions/761847/blank-page-when-trying-to-reach-phpmyadmin

I try to setup phpmyadmin to use mysql on my Ubuntu 16.04 machine. But when I go on "localhost/phpmyadmin" I only see a blank page. I've tried some things like to include the conf, but it didnt change anything (How to solve the phpmyadmin not found issue after upgrading php and apache?).

My goal is to use owncloud. So I created a user root and a user owncloud with the passwords. I specified the the user root as the phpmyadmin user with the pasword and

sudo dpkg-reconfigure phpmyadmin

went well. But phpmyadmin doen't load. What am I doing wrong?

SOLUTION Some packets were missing for php 7:

sudo apt-get install php-mbstring php7.0-mbstring php-gettext
sudo service apache2 restart
Always boot to gui https://askubuntu.com/questions/336653/always-boot-to-gui

I've got an old that sits and does some of the grunt work in the house. I've recently got it running 12.04 from 10.x, and everything seems to be working brilliantly.

Unfortunately though, it only seems to boot to the GUI when a screen is attached, and drops to TUI when there isn't. Since I mostly log into it via RDP, I'd rather it booted to GUI regardless of whether it has it's own screen plugged in or not.

Is there a setting I can change somewhere to disable TUI boot?