boot – Setup encrypted partitions on 2 hard disks with Ubuntu 20.04

Using Ubuntu 20.04 how can I install a full encrypted operating system on 2 hard drives.

I have downloaded the ISO from the official Ubuntu website and I use from my Ubuntu 18.04 operating system the software usb creator in order to put the ISO on my USB key.

My setup is the following

  • 1 hard drive 1To for the /home (that should be encrypted)
  • 1 SSD 128Go for the / (that should be encrypted too)
  • motherboard ASUS B85M-G
  • processor Intel corei5-4430

I try several configurations with and without an uefi and/or a /boot partitions but I’ve got some errors at the end.

Moreover, I have 8Go of RAM and I don’t know if I should use a swap partition (and if I should encrypt this partition).

boot – Why will Windows XP not staart without a reboot?

I have a computer with only Windows XP installed. When I turn on the computer, I get this message:

Reboot and Select proper Boot device
or Insert Boot Media in selected Boot device and press a key

If I press CTRL+ALT+DEL, it reboots and then boots into Windows XP. I can’t find any way to directly go to Windows XP without first rebooting at this screen. How can I fix this?

boot – How to choose a mother board which is compatible with all the old components

So my system is quite old, around 9 years old, and recently I have been facing some weird issues that I can’t find solution to

1 : At times while I am working on my system, the screen completely freezes, no response, it does not restarts on its own, but if I force one there is just black screen and no booting

then I have to plug in and out my CPU and do power on and off several times before it finally boots and pops some “Your pc ran into a problem” and restarts

2:At times when I am working, it restarts on its own

3:At times when I wake up in the morning and try to switch it off, the fans dont start and there is just black screen, it starts after switching on and off, power cables and doing random trials

This is my mother board

I am guessing my motherboard maybe an issue becuase it even has some swollen capacitors, I dont know if thats the case correct me please if thats so.

**So all I wanted was to know what are the things i should consider to buy a new motherboard such that it is compatible with my old processor, ram and every other component**

boot loop – Nexus 7 (2012 Wifi) Custom kernel bootloop

I trying to build custom kernel for my Nexus 7 (2012 Wifi) device.
Changed few things builded successfull, no bootloop. But I enable this in menuconfig:
Device Drivers -> Network device support -> Wireless LAN -> Ralink driver support.
After flashing got bootloop.
How can i get some log about a problem?

boot – How to deal with errors=remount-ro?

Yesterday this message appeared on my screen while booting OS after powerfailure “due to low battery backup”

You are in emergency mode, After logging in type “journalctl -xb” to
view system logs, “systemctl reboot” to reboot, “systemctl default” or
“exit” to boot into default mode.
Press enter for maintenance (or press control-D to contnue):

Following helped me getting rid of emergency mode

fsck -y /dev/sda*

*First I used sda7 but boot was successful for only one time and again entered into emergency mode, then i used sda5 and sda7 one by one.

It worked for me but by applying command nano /etc/fstab or vi /etc/fstab, output is annoying as it says

/ file was on /dev/sda5 during installation ext4 errors=remount-ro 0 1

How to deal with errors=remount-ro ? I don’t know if it might harm my system.

boot – Getting attempt to read or write outside of disk “hd0” after install

After installing 20.04 I keep getting the error message attempt to read or write outside of disk “hd0” Entering rescue mode…

I have done a lot of reading on this and have tried all of the given solutions and none of them have worked. I have even loaded the Ubuntu LiveCd and run the Boot Rescue program and I still get the error.

The machine is a Dell R710 with a H700 Raid Controller with six 3TB HDDs in a Raid 50 configuration and I’m using all but ~500MB.

I also know that this is an Ubuntu install issue as I can load Windows 10 and have absolutely no errors. I have also tried installing 14.xx and I get the same error.

What am I missing???

boot – Ubuntu asked me to update but is not connected to the internet and hasn’t been used for weeks

I’m sorry if this sounds dumb. I’m new to linux and ubuntu. I like to play around with it sometimes. Just now i booted up ubuntu from an usb stick. I use a wired connection and ubuntu has airplane mode on every time it boots up. Last time i used this was 2 weeks ago.

The thing is, the cable is not yet connected and hasn’t been while booting up. Somehow I got the prompt asking me to update. So i fear now that this is some kind of malware. Can someone please help me out? Thanks a lot in advance.

java – Dúvida com relatório JasperReport e Spring Boot + Thymeleaf

Olá, quero gerar o relatório de alunos (uso BD mysql) JasperReports ao clicar em um botão, porem estou encontrando dificuldades pois é a primeira vez que faço.
Peguei um tutorial na internet e não obtive sucesso.

Clico no botão e não acontece nada.


public Alunos alunos;

public ModelAndView relatorioAlunosCadastrados() {
    ModelAndView mv = new ModelAndView("relatorio/alunosCadastrados");
    mv.addObject(new RelatorioAlunosResumidoDTO());
    return mv;

@RequestMapping(value = "gerarRelatorio", method= RequestMethod.GET)
public void  gerarRelatorio(HttpServletResponse response) throws Exception {
    List<Aluno> alunosList = alunos.findAll();

    JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(alunosList);

    InputStream jrxmlInput = this.getClass().getResourceAsStream("/relatorios/alunosCadastradosResumido.jrxml");
    JasperDesign design = JRXmlLoader.load(jrxmlInput);
    JasperReport jasperReport = JasperCompileManager.compileReport(design);
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,null, dataSource);

    JRPdfExporter pdfExporter = new JRPdfExporter();
    pdfExporter.setExporterInput(new SimpleExporterInput(jasperPrint));
    ByteArrayOutputStream pdfReportStream = new ByteArrayOutputStream();
    pdfExporter.setExporterOutput(new SimpleOutputStreamExporterOutput(pdfReportStream));

    // Configura a respota para o tipo PDF
    // Define que o arquivo pode ser visualizado no navegador e também nome final do arquivo
    // para fazer download do relatório troque 'inline' por 'attachment'
    response.setHeader("Content-Disposition", "inline; filename=relatorioalunoscadastrados.pdf");   

 // Faz a exportação do relatório para o HttpServletResponse
    OutputStream responseOutStream = response.getOutputStream();


VIEW – “relatorio/alunosCadastrados”

 <div class="page-header" style="margin-top: -30px;">
      <h3 class="page-title"> Relatório de Alunos Cadastrados </h3>
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="">Cadastrar Aluno</a></li>
          <li class="breadcrumb-item active" aria-current="page">Listar</li>

       <div class="card">
         <div class="card-body">                          

              <button type="submit" class="btn btn-success mb-2"  th:href="@{${page.Context.request.contextPath}/gerarRelatorio}" name="action">
                    <i class="mdi mdi-send icon-md"></i> Emitir


partitioning – Speedup boot of Ubuntu Mate on iMac (late 2012)

I’ve installed Ubuntu Mate 20.04 on iMac (late 2012). After certain tuning, everything works perfectly, the only annoying point so far is the long booting time, say, before the Mate logo appears. Before, I used on this iMac Linux Mint 19.1 XFCE with fast booting process (but many other things were not perfect for me). Interestingly, that I first tried Ubuntu Mate by installing it as a second system; there was some unclear (for me) problem, and Grub (that came with Mint) didn’t see Mate’s partition, and to do not do this manually I installed rEFInd (and it worked). The point is that rEFind provided faster booting of Mate than I currently have by having Mate the only system on iMac. I can try to install rEFind again, of course, but it looks a bit weird. I guess that Mate spends some time on looking for the partition of something like this (sorry, I am not very experienced). Can I ‘help’ Mate by writing something explicit to its bootloader? The result of fdisk is as follows:

Device       Start        End    Sectors  Size Type
/dev/sda1     2048       4095       2048    1M BIOS boot
/dev/sda2     4096    1054719    1050624  513M EFI System
/dev/sda3  1054720 1953523711 1952468992  931G Linux filesystem

Best wishes,


dual boot – Ubuntu 20.04 very slow

I am Windows user for quite a long time and wanted to try Ubuntu. With no experience of using any other OS than Windows, I started searching about Linux and found that Ubuntu is by far the most popular distro. Hence, my next search was how to install it alongside my Windows 10. After following step by step guide, I managed to install Ubuntu 20.04 using USB bootable disk on my Lenovo Legion Y520 laptop. It is very capable laptop at least for Ubuntu, having Intel Core i5-7300hq, 16GB RAM, Nvidia GTX 1050 4GB, 1TB HDD, I later installed ADATA 256GB NVME M.2 SSD and installed Windows on it. The first problem I face while installing Ubuntu was that I didn’t had an option to select my NVME SSD, the only option available was my HDD. Since I didn’t had other option I went ahead with HDD installation. The Installation went smooth though very slow, at least as compared to a Windows 10 installation. But I gave it a benefit of doubt since my Windows 10 is installed on NVME and this Ubuntu installation is done on mechanical HDD. I then changed my regional settings to US and it asked me to restart the PC. From here onwards I started hating Ubuntu simply because it took around 5 minutes to restart. I thought that may be it is first time that is why it is taking time and therefore I decided to shutdown the PC so that I will power ON it again to see the difference. Ubuntu refuse to power off and stuck at stopping disk. The had to hold power button to switch that off and immediately came here to ask you guys if I have done anything wrong which is causing Ubuntu to behave unusually.