LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2018, 05:36 PM   #1
Wojak
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Rep: Reputation: Disabled
Problem with installing Linux


Hello, members of the community.
The problem is that: after loading from a flash drive on which the Linux image of Magnaro 17.1.2 (xcfe) is written, I see the following message on the screen:

Error: unknown filesystem.
grub rescue>


I looked for a solution to this problem on the Internet and suggested type ls and set. I saw the following:

ls
(hd0) (hd1) (hd2)


set
prefix=(hd0)/boot/grub
root=(hd0)

Then I should enter the following:

set root=(hd0)
set prefix=(hd0)/boot/grub
grub rescue>insmod normal
grub rescue>normal


This must repair GRUB

But after insmod normal console showed "error: unknown file system"

Apparently, this event is caused by the fact that before that I reinstalled my Windows 10 and formatted all the disks.

I would like to understand what the problem is and how to solve it. Ready to answer your questions.
 
Old 01-22-2018, 07:53 AM   #2
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Rep: Reputation: 37
Hi Wojak,

usually, if you download an ISO image and want to "burn" it on an USB flash drive, you should first look at the website of distro maintainer for informations on how to do that. If you do it right, the system installer should boot from the flash drive without any settings in the bootloader.

Please see https://wiki.manjaro.org/index.php?t...rn_an_ISO_File and if you're using Windows, https://wiki.manjaro.org/index.php?t...ick_in_Windows
 
1 members found this post helpful.
Old 01-22-2018, 08:01 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Wojak View Post
Hello, members of the community.
The problem is that: after loading from a flash drive on which the Linux image of Magnaro 17.1.2 (xcfe) is written, I see the following message on the screen:

Error: unknown filesystem.
grub rescue>


I looked for a solution to this problem on the Internet and suggested type ls and set. I saw the following:

ls
(hd0) (hd1) (hd2)


set
prefix=(hd0)/boot/grub
root=(hd0)

Then I should enter the following:

set root=(hd0)
set prefix=(hd0)/boot/grub
grub rescue>insmod normal
grub rescue>normal


This must repair GRUB

But after insmod normal console showed "error: unknown file system"

Apparently, this event is caused by the fact that before that I reinstalled my Windows 10 and formatted all the disks. I would like to understand what the problem is and how to solve it. Ready to answer your questions.
I bolded a line in what you posted for emphasis. If you installed Manjaro FIRST, and THEN installed Windows (and formatted your disks (!!) ), it's not surprising you're having problems. You formatted your disks...and GRUB doesn't know about Windows at this point, and there is no Linux left, since you formatted your disks.

Best course of action for you would be to totally format your disks, and delete ALL the partitions on them, and do a fresh Windows 10 load FIRST. Then follow any of the many dual-booting guides:
http://linuxbsdos.com/2016/11/07/how...uefi-firmware/
 
1 members found this post helpful.
Old 01-22-2018, 08:13 AM   #4
Wojak
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
I bolded a line in what you posted for emphasis. If you installed Manjaro FIRST, and THEN installed Windows (and formatted your disks (!!) ), it's not surprising you're having problems. You formatted your disks...and GRUB doesn't know about Windows at this point, and there is no Linux left, since you formatted your disks.

Best course of action for you would be to totally format your disks, and delete ALL the partitions on them, and do a fresh Windows 10 load FIRST. Then follow any of the many dual-booting guides:
http://linuxbsdos.com/2016/11/07/how...uefi-firmware/
No, I firstly reinstalled Win10 and then tried to load Manjaro.

Quote:
usually, if you download an ISO image and want to "burn" it on an USB flash drive, you should first look at the website of distro maintainer for informations on how to do that. If you do it right, the system installer should boot from the flash drive without any settings in the bootloader.
No, I am sure that problem is not in burning the USB flash drive. It can be approved by the fact that I have managed with installation of another distro - Linux Mint.

Anyway, thanks to slacksam and TB0ne for participating.

Last edited by Wojak; 01-22-2018 at 08:17 AM.
 
Old 01-22-2018, 09:41 AM   #5
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi Wojak,

I second slacksam's comment - you should be able to boot a distro installation USB regardless of the state of any operating systems or file systems present on the hard disk(s) of the computer you are using to boot.

I would recreate the boot medium, paying particular attention to matching the firmware technology of your computer (BIOS vs. UEFI).

Let us know how you make out !

Cheers.
 
1 members found this post helpful.
Old 01-22-2018, 10:24 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Define "load" Manjaro. Are you trying to boot the flash drive to install Manjaro or have you installed and are trying to boot it. From your post, I expect it is the former? Also, you only posted partial info from the ls command run at the Grub rescue, it should show partitions on drives not just drives which your output shows three. The set root line you posted is also incorrect as it is pointing only to a drive and needs to point to a partition. The same goes for the set prefix command trying to point to /boot/grub, only have the drive and not the partition. If you can boot any Linux (Mint?) from an installed system or Live medium, do that and run this command and post the output: parted -l(Lower CAse Letter L in command) Need to be run as root.

This should also tell use if it is EFI or not. Your information is too minimal to get help.
 
2 members found this post helpful.
Old 01-22-2018, 06:45 PM   #7
Wojak
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Define "load" Manjaro. Are you trying to boot the flash drive to install Manjaro or have you installed and are trying to boot it. From your post, I expect it is the former? Also, you only posted partial info from the ls command run at the Grub rescue, it should show partitions on drives not just drives which your output shows three. The set root line you posted is also incorrect as it is pointing only to a drive and needs to point to a partition. The same goes for the set prefix command trying to point to /boot/grub, only have the drive and not the partition. If you can boot any Linux (Mint?) from an installed system or Live medium, do that and run this command and post the output: parted -l(Lower CAse Letter L in command) Need to be run as root.

This should also tell use if it is EFI or not. Your information is too minimal to get help.
Excuse me, where must I enter parted -l?

Under "load", I mean launching the GRUB boot loader from a flash drive, in which the distribution image is recorded.

Well, I`ll try to describe the situation again. I reinstalled Windows 10, formatting all the disks. Then I decided to put Linux Maniaro as the second system. After I ran the installation image of Manjaro from the flash drive, I saw a message on the screen:

Error: unknown filesystem.
grub rescue>

Some guides in Internet advised to enter ls and set in order to see partition and location of root.

ls
(hd0) (hd1) (hd2)


set
prefix=(hd0)/boot/grub
root=(hd0)

These messages were exactly as I noted. This is default partition in Windows 10. Then, following by advices, I entered this:

set root=(hd0)
set prefix=(hd0)/boot/grub
grub rescue>insmod normal
grub rescue>normal


This was supposed to lead to the restoration of GRUB, right? But after insmod normal console showed "error: unknown file system".

I try to do it again and write about results.
 
Old 01-22-2018, 07:26 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Under "load", I mean launching the GRUB boot loader from a flash drive, in which the distribution image is recorded.
I'm not sure why you are trying to launch Grub from the flash drive as you say in the next paragraph that you "ran the installation image of Manjaro from the flash drive". So did you run the manjaro installation flash drive and complete the installation? Are you unable to boot the flash drive with manjaro? I don't use Manjaro but I would be surprised if it used Grub on the installation flash drive.

You would run the command as root: parted -l from a terminal on any Linux system. I don't know if you can boot your Manjaro flash drive.

The output you posted of the ls command shows that you have three physical hard drives with NO partitions on any of them. Did you modify that output?
Windows 10 usually is installed UEFI/GPT, that's pre-installed. Since you installed it maybe you did an MBR install, did you?

The 'set root' line you posted point to a hard drive not a partition which won't work. Examples below, the first would be an MBR boot entry for a system on the first partition of the first drive. The second would be the and entry for a GPT partition on the first partition of the second drive. Notice that partitions are noted in the commands, not just the drive. Most important next step is to identify if you are booting UEFI or not and post the total output of the ls command.

Quote:
set root=(hd0,msdos1)
set root='hd2,gpt1'
With the correct set root line, you should then be able to enter the path to the kernel or the EFI file needed to boot, depends on which you are using.
 
Old 01-22-2018, 08:11 PM   #9
Wojak
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
The output you posted of the ls command shows that you have three physical hard drives with NO partitions on any of them. Did you modify that output?
Windows 10 usually is installed UEFI/GPT, that's pre-installed. Since you installed it maybe you did an MBR install, did you?

The 'set root' line you posted point to a hard drive not a partition which won't work. Examples below, the first would be an MBR boot entry for a system on the first partition of the first drive. The second would be the and entry for a GPT partition on the first partition of the second drive. Notice that partitions are noted in the commands, not just the drive. Most important next step is to identify if you are booting UEFI or not and post the total output of the ls command.

With the correct set root line, you should then be able to enter the path to the kernel or the EFI file needed to boot, depends on which you are using.
Sorry, i was wrong in some moments. This is what console shows
https://imgur.com/a/CjCwa
 
Old 01-23-2018, 12:26 AM   #10
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Rep: Reputation: 37
Quote:
Originally Posted by Wojak View Post
No, I am sure that problem is not in burning the USB flash drive. It can be approved by the fact that I have managed with installation of another distro - Linux Mint.
Hi Wojak,

the procedure how to put the ISO image onto an USB flash drive may differ from distribution to distribution. So if you managed to make a Linux Mint USB flash that works, doesn't immediately mean that you can create it the same way for Manjaro Linux. That's why I told you to follow the distribution specific documentation.
 
Old 01-23-2018, 02:59 AM   #11
Wojak
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
I suspect the problem is in what file system Windows 10 use. According to diskmgmt.msc all partitions are created based on GPT system. But I have BIOS on my notebook and BIOS must use MBR structure. How to determine it? Anyway, I tried to burn USB flash drive for both MBR and GPT and result was equal as I described before. I did in Rufus, by the way.

UPD: If it`s necessary, BIOS regime is UEFI in my Win 10 (though it has interface of BIOS)

If somebody want help me personally, this is my mail: c7r73uic@gmail.com

Last edited by Wojak; 01-23-2018 at 03:46 AM.
 
Old 01-23-2018, 02:25 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Windows 10 doesn't install on a GPT system unless you use UEFI and you need to install both systems UEFI or you will have problems booting. Most any Linux system can be installed EFI and GPT, just need to create a BIOS boot partition but that doesn't happen with windows AFAIK.

If you have windows 10 UEFI, you should see a Microsoft folder under EFI. If you have manjaro UEFI, you should see a manjaro folder under EFI. If you don't have those files, it won't boot EFI so check to see what you have there.
 
Old 01-23-2018, 03:18 PM   #13
Wojak
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Windows 10 doesn't install on a GPT system unless you use UEFI and you need to install both systems UEFI or you will have problems booting. Most any Linux system can be installed EFI and GPT, just need to create a BIOS boot partition but that doesn't happen with windows AFAIK.

If you have windows 10 UEFI, you should see a Microsoft folder under EFI. If you have manjaro UEFI, you should see a manjaro folder under EFI. If you don't have those files, it won't boot EFI so check to see what you have there.
You may close this thread, I can`t solve the problem after all.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing problem xp after installing linux paruhang Linux - Newbie 2 10-20-2011 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration