Ubuntu HowTo: Install Ubuntu and Windows in different drives of same computer

Original Source Link

Some backstory (TLDR: skip to next paragraph). I am a novice linux user, but have been using Ubuntu for quite a while now for my daily tasks. My current laptop of 10 years gave up and now its CPU is always on 80-85% usage on start up. It lags a lot and I am not able to run anything smoothly. Also it randomly restarts. Tried reinstalling Ubuntu, same problem. I think there is some problem in the CPU. We have an “extended family computer”(not mine and it runs windows 10 PRO) which has an M.2 SSD slot free. My plan is to use that one for some months, till I buy a new PC.

What I want to achieve

  1. Install Ubuntu in the M.2 SSD without modifying anything on the computer.
  2. The PC should by default boot into Windows, like it does always.(I am not the owner of that PC). This is mandatory as I don’t want GRUB to take over.
  3. When I want to use the said computer, I will go to BIOS menu and select the SSD to boot from it. So that I will only use my ubuntu installation.
  4. Virtual Machine is not an option as I do not want to boot into windows at all.

Not sure if this is helpful, but these are the system specs;

CPU – i5 7400

Mobo – ASUS B250

RAM – 8 GB

Most tutorials I find, replaces the default boot loader, which i do not want. So asking here for help.

Thank you for your time.

It sounds like that you know how to install Ubuntu in a separate SSD? If not read this answer.

You can skip Grub entirely by moving it bellow Windows boot manager in Firmware settings. You will find this in boot sequence. Good luck.

Tagged : /

Ubuntu HowTo: PC does not boot into Windows, but Ubuntu still works well; how to recover?

Original Source Link

I installed 7 operating systems in my PC. All worked very well. (Ubuntu 11, Ubuntu 14, EduBoss, Redhat6, Nodezero, Windows 8, Win 7). I frequently used Windows 8 and Ubuntu 14 last 6-7 months, I enjoy all operating system but one day after CHKDSK perform by Win7 my PC was unable to start with windows boot. If I try to start windows PC restarts very fast and shows nothing to any options just restart.

All other Linux O.S. work but no any other Win boot is working.
As per my knowledge I guesses that problem occurred by file corruption or by CHKDSK operation by Windows.

Can I repair Windows boot option by Linux? (without win bootable disk)

  • Architect i386
  • 2 Gb ram
  • Intel quad core
  • OS. First I installed windows and then Linux.

One of the methods using Linux is to use fsck.msdos command which is found majorly in most of the Linux Distributions. While you’ve not mentioned that is there any error shown by Windows and, it is not mentioned too whether it is possible to boot into Safe Mode by pressing and holding Shift and tapping F8 repeatedly. Based on the dearth of information here, I advise booting into Linux, open the Terminal, and type:

  • sudo fsck.msdos /dev/XYZ where XYZ is the partition where Windows is installed(say sda1).

There are many parameters available which can be accessed by typing fsck.msdos -h but the basic command should be able to correct your Windows.

If that went well, you will want to check whether Linux is able to detect Windows loader now or not. Besides, you need to generate a new GRUB configuration file too. I’m assuming the Linux you’re booted into is running Grub 2.0. To Probe the Boot Loader, type the command:

  • sudo os-probe, it shall give you an output like this:

/dev/sda1:Windows 7 (loader):Windows:chain

If you receive any such output, you can go ahead for building new Grub configuration file. In Terminal, type:

  • sudo grub-mkconfig -o /boot/grub/grub.cfg, if your grub.cfg is at some other location then replace the path in the command with your file location.
  • Type sudo grub-install /dev/sda where sda is my primary HDD having Windows and Linux installed.

Reboot, and choose Windows in Grub Menu. it should boot. If it doesn’t we can try other methods but your question demands only Linux-specific solution.

Have you try Boot-Repair tool? It seems that your boot files were messed up by CHKDSK.

1> use win7 disk
2> start up repair
3> chkdsk >>>> restart
after restart win boot louder start but GRUB not.
to fix that USE “BOOT-repair” disk and “fsck.msdos” commands.
both answers are very helpful together.

Tagged : / / / /

Ubuntu HowTo: can’t mount any partitions from Live USB on HP Laptop

Original Source Link

I’ve installed Ubuntu 20.04 on a disk partition in a new HP laptop, but are unable to boot into it.
I found that there are issues with dual booting on HP machines using UEFI and some successful workarounds (https://ubuntuforums.org/showthread.php?t=2392797).

My problem is that when booting from an Ubuntu live USB, I’m unable to mount any of the partitions on the hard drive.

GParted throws this warning when started:
GParted warning – space unused

And all partitions cannot be mounted, with variations of Unable to detect file system! or
Unable to read the contents of this file system!
. GParted – partitions list

This is what appears in the description of the Linux partition:

The device /dev/nvme0n1p3 doesn't exist

Failed to open '/dev/nvme0n1p3'.

The device /dev/nvme0n1p3 doesn't exist

Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for ntfs file system support:  ntfs-3g / ntfsprogs.

This problem was happening also before the installation, but it seems to have gone through without error.

As mentioned in comments the SSD partition attempting to mount is a Windows partition. For that to work you need ntfs-3g package installed. To successfully install packages to a Live USB it needs to be a persistent Live USB:

Tagged : / /

Ubuntu HowTo: i had installed Ubuntu 20.04 LTS with / 10 GB, swap 16 GB, and /home 81 GB now fol error occurs (Low Disk Space on Filesystem Root)

Original Source Link

I had low disk space on “Filesystem root” Error in Ubuntu 20.04 LTS, please help me in resizing the / partition and note that I am new to Linux. My system is dual boot with for Linux partitions:

  • / – 10 GB
  • /home – 81 GB
  • /swap – 16 GB
Tagged : / /

Ubuntu HowTo: Microphone doesn’t work in Ubuntu 18.04 LTS fresh install

Original Source Link

I have lenovo ideapad 330s with ubuntu 18.04 LTS . The microphone is not working . I have checked by overriding the pin 0x13 . The speaker is fine but during a skpe or facebook call . the other person is not able to hear me.

Tagged : / / / /

Ubuntu HowTo: Nvidia graphic driver 1650 is not recognized

Original Source Link

I recently bought Lenovo Legion Y540 i7 9th gen and Nvidia GTX 1650 Laptop.
I decided to dual boot it with ubuntu 18.04.

The steps I followed were:
1. Creating a bootable pen drive for ubuntu 18.04
2. I forgot the secure boot step actually.
3. in the grub I pressed e and added nouveau.modeset=0
4.then continued installation.
5. I had created a 200 GB partition in the hard drive.
6. gave 70 GB root and 130 GB home

For additional driver I added 435 Nvidia proprietary driver Software and Updates.
However, Device info shows LLVMPIPE 9.0 256Mb
so the graphic card is not recognized, I even tried nvidia-smi in the terminal
which gives the result that driver should installed first though I have already installed it

prime-select query' only shows Nvidia and no version

I need help figuring this out, how can I solve this issue?

I personally solved this after 1 week by install third party software during installation.

This way my nvidia was automatically detected and installed properly. Actual Kernel isn’t supporting every Nvidia model.
I have Nvidia GTX 1050 for notebooks. I am using power saving mode / INTEL /, of course can be switched in Nvidia x server settings.

enter image description here

Tagged : / / /

Ubuntu HowTo: dual boot ubuntu and windows 10 on ubuntu mashine

Original Source Link

I have recently bought a new SSD for my laptop. Now, I want to create a dual boot system with ubuntu and windows 10. A lot of post recommend installing windows first and afterwards ubuntu.

My current laptop is running ubuntu. Therefore, I have to ..

  • install windows on the new SSD first
  • (somehow) transfer my laptops ubuntu on to the new SSD as dual boot

Is there a way to create an installable image of my current ubuntu system, which can be installed in dual boot on my new SSD ?

My current idea is to:

  • replace the old SSD with the new SSD
  • install windows 10
  • install a fresh ubuntu
  • use rsync to load a back of my current system
Tagged : / / /

Ubuntu HowTo: After Dual Boot installation I cant boot to ubuntu 16.04

Original Source Link

So I created a usb to install the ubuntu, and everything about the installation went perfect but here is the thing, at the end it said to restart my pc and it booted on windows 10. No Grub2 menu, nothing, I just cant boot to ubuntu.

After some restarts, I press the ESC button, then F9 and finally I could see the ubuntu as an option and but in them but I dont like that method. I tried EasyBCD but no luck, re-installed the ubuntu also no luck.

I’ve also tried legacy bot on/of and secure boot on/off. Is there any way to make the purple grub appear when I power my pc?

Pc info: Windows 10 64bit, Hp pavilion-n211sv, 6GB Ram and some i7

PS: right now I have deleted again that ubuntu partition to try some other usb maker to see if it will help

  1. Make sure that you are installing in the same boot mode. (UEFI/Legacy BIOS).
  2. Make sure that Ubuntu is 1st (or above Windows Boot Manager) in boot sequence in firmware settings.

Try running boot repair on the ubuntu live installation.
It should repair grub. Also, try changing to Legacy BIOS if you are using UEFI or the other way around.

Tagged : / / / /

Ubuntu HowTo: How to use YUMI to create a USB with persistence?

Original Source Link

I’ve made a multiboot USB using YUMI. I chose Ubuntu and Kali Linux.
The USB loads great with Kali and with Ubuntu, but Ubuntu always only gives me option to “try” and “install” and nothing as save when restarted in “try” mode.

I’ve heard about adding “persistence” somewhere but I’m such a beginner that I can’t fully understand what to do.

I use Windows to create the multiboot.

When you make a live USB, it’s often in read-only mode. It means that you cannot change anything to your live USB.

When I say “live USB”: I talk for USB stick, and USB disks, for CD, obviously it depends if they are R (read-only, able to be written only once) or RW.

You didn’t tell us what kind of USB media you had. Stick, disk, CD?

For this problem, they invented the “persistence” mode.
It’s a space that you add to your USB, at the same time you create it, and this space will be used to save changes made on it.

This question has been answered several times already here:

Here you have an answer from Alex (I didn’t try), but be careful with editing partition with Gparted or other tool, when you don’t want to blank them:
https://superuser.com/questions/916857/adding-persistence-to-multiboot-usb-made-with-yumi

Alex suggests to create a partition labeled with the keyword “persistence” (refer to its answer for more details or here), it works with Kali, but I don’t know if it works with Ubuntu. It’s a way to add persistence to Kali, and not being limited by the amount of mb you want to add.

For Ubuntu, a user answered concerning an USB created with Unetbootin, but it should also works with YUMI, as it’s not related to the software:
Can I convert a live Ubuntu USB to one with persistent memory?

You’ll have to read the explanation, but in short:

Add a new ext4 partition for persistence. Label the ext4 partition "casper-rw".

https://www.linuxquestions.org/questions/linux-general-1/yumi-multiboot-linux-persistence-persistent-question-948902/

https://www.dpreview.com/forums/post/60918647

I won’t use Yumi for persistence, unless you want to make the steps mentioned in the link I’ve pasted. I think you can use Sardu, but I don’t know if the persistence mode works well with all the ISO. You told us that you want a multiboot, Ubuntu & Kali, so maybe someones tried?

For use from Windows, Multisystem is good to manage the persistence mode, as it allows you to do so in a very easy way, from the moment you create the USB medium, but the problem is that you can have only one persistent storage for all the ISO you added.
I don’t know why, and if it can be hacked in some way, I would be curious to know!

There is also MultibootUSB that supports persistence mode, according to its presentation page.

Tagged : / /

Ubuntu HowTo: Can’t install windows 10 alongside ubuntu

Original Source Link

I have two storage in My laptop – 500gb ssd and 2tb harddrive, and I have ubuntu having 256gb in that 500gb ssd, I tried to install windows 10 on other half of ssd like 250ish gb…..and it’s not working……while installation of w10 it is saying that the partitions are formatted as NTFS and tells to format as fat32 even though I had already formatted in fat32 in gparted and also in cmd diskpart doesn’t show any partitions just that 500gb and 1tb thats all…..need helpenter image description here

Tagged : / / / /