LinuxQuestions.org
Review your favorite Linux distribution.
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 02-08-2021, 06:31 AM   #1
arranskye
Member
 
Registered: Apr 2013
Location: Nottingham GB
Distribution: Ubuntu, Puppy, Zorin
Posts: 115

Rep: Reputation: Disabled
Grub see windows as sdb1 file system see it as sdb2


Started this new thread as the previous shambles was too convoluted. In the end decided to resinstall Ubunto 20.04 LTS never though to check windows disks. Windows previously sdb 1 and sdb2
The situation now is

windows in Grub sdb2 windows in file system sdb1

sudo blkid | grep UUID=

/dev/sdb1: LABEL="System Reserved" UUID="0AAA3702AA36EA39" TYPE="ntfs" PARTUUID="3767dd0a-01"


/dev/sdb2: UUID="EEF03A41F03A0FF7" TYPE="ntfs" PARTUUID="3767dd0a-02"

update Grub

sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.8.0-41-generic
Found initrd image: /boot/initrd.img-5.8.0-41-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 10 on /dev/sdb2
done

Can this be fixed by Fstab, text edit,remounts or live windows or Ubuntu disks
If not should I reinstall windows or ubuntu which would be most effective and easy/fast to correct

Thank you
 
Old 02-08-2021, 07:12 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by arranskye View Post
sudo blkid | grep UUID=

/dev/sdb1: LABEL="System Reserved" UUID="0AAA3702AA36EA39" TYPE="ntfs" PARTUUID="3767dd0a-01"
That's the reserved partition where Windows stores its bootloader.
Quote:
Originally Posted by arranskye View Post
/dev/sdb2: UUID="EEF03A41F03A0FF7" TYPE="ntfs" PARTUUID="3767dd0a-02"
And that's the partition holding the actual OS.
Quote:
Originally Posted by arranskye View Post
Found Windows 10 on /dev/sdb2
Because that's indeed where it is.
Quote:
Originally Posted by arranskye View Post
Can this be fixed by Fstab, text edit,remounts or live windows or Ubuntu disks
What exactly do you need to fix? Are you unable to boot Windows via GRUB?
 
Old 02-08-2021, 07:46 AM   #3
arranskye
Member
 
Registered: Apr 2013
Location: Nottingham GB
Distribution: Ubuntu, Puppy, Zorin
Posts: 115

Original Poster
Rep: Reputation: Disabled
yes thats the problem. Windows is not recognised by grub.

sdb1

0AAA3702AA36EA39

NTFS/exFAT/HPFS (Bootable)

NTFS mounted at/media/margaret/System Reserved its sdb2 in grub so grub keeps looking for sdb2 when media reserved is sdb1

Thank you for responding. Can it be fixed please.
 
Old 02-08-2021, 08:02 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Looking at your problem description it looks like this:

You turn the power on, and Grub emits a message "I do not recognize Windows, sincerely yours, Grub".

May I suggest you do some troubleshooting? The first task ought to be getting a meaningful error message.
 
Old 02-08-2021, 08:13 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
In the end decided to resinstall Ubunto 20.04 LTS
A reinstall that went sidways?
post the output of
Code:
sudo parted -l
cat /sys/firmware/efi

Last edited by colorpurple21859; 02-08-2021 at 08:15 AM.
 
Old 02-08-2021, 08:20 AM   #6
arranskye
Member
 
Registered: Apr 2013
Location: Nottingham GB
Distribution: Ubuntu, Puppy, Zorin
Posts: 115

Original Poster
Rep: Reputation: Disabled
Thank you for responding This is the output1 1049kB 90.0GB 90.0GB primary ext4 boot
2 90.0GB 117GB 27.0GB extended
5 90.0GB 97.0GB 6999MB logical linux-swap(v1)
6 97.0GB 117GB 20.0GB logical ext4


Model: ATA TOSHIBA DT01ACA0 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ntfs boot
2 525MB 185GB 185GB primary ntfs
3 185GB 186GB 495MB primary ntfs msftres
4 186GB 186GB 537MB extended lba
5 186GB 186GB 537MB logical fat32


margaret@galaxy:~$ cat /sys/firmware/efi
cat: /sys/firmware/efi: No such file or directory
 
Old 02-08-2021, 08:25 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
post the output of
Code:
cat /etc/fstab
 
Old 02-08-2021, 08:37 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
OK, this is last time I chime in here, but nothing in this thread makes sense to me so far.
Boot process is as following:

Power up, BIOS loads bootloader (Grub)
Grub represents boot menu, user chooses Windows
Grub starts Windows bootloader
Windows bootloader loads Windows

For my limited intelligence it is paramount to narrow it down and identify which step fails, otherwise I couldn't even start fixing it.
Besides, last time I used Windows (2003) it did not boot from secondary drive, it had to be tricked into thinking it is primary drive, there even was a Grub option for this. Not true nowadays?
 
Old 02-08-2021, 09:06 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
post the ouput of
Code:
sudo grep 'windows' --after-context=10 /boot/grub/grub.cfg
 
Old 02-08-2021, 09:36 AM   #10
arranskye
Member
 
Registered: Apr 2013
Location: Nottingham GB
Distribution: Ubuntu, Puppy, Zorin
Posts: 115

Original Poster
Rep: Reputation: Disabled
Thank you both very much. Emmerson The OS system does not boot up it goes to black screen. I then open the bios and click on the ubuntu SSD drive from the boot order section. The grub memu then appears.
Out put as requested

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda1 during installation
UUID=879c701a-e87f-4086-bcb6-4773682b3aed / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=a500aeed-c850-4c49-9bfb-e83070b64ef2 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=e05efded-36c7-4c80-8be0-b704f2b10ad0 none swap sw 0 0
 
Old 02-08-2021, 09:41 AM   #11
arranskye
Member
 
Registered: Apr 2013
Location: Nottingham GB
Distribution: Ubuntu, Puppy, Zorin
Posts: 115

Original Poster
Rep: Reputation: Disabled
output menuentry 'Windows 10 (on /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-chain-EEF03A41F03A0FF7' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 EEF03A41F03A0FF7
else
search --no-floppy --fs-uuid --set=root EEF03A41F03A0FF7
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}

Thank you really appreciate your help
 
Old 02-08-2021, 10:25 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
didn't get enough of the windows menuentry I was looking for
change to
Code:
sudo grep 'windows' --after-context=15 /boot/grub/grub.cfg
 
Old 02-08-2021, 11:01 AM   #13
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by arranskye View Post
margaret@galaxy:~$ cat /sys/firmware/efi
cat: /sys/firmware/efi: No such file or directory
This tells me Ubuntu was installed in MBR mode and the windows may have been installed in uefi mode.

BTW, your posts of command output will be much more readable if you post it with code tags.
When posting, the Go Advanced button at the bottom will gave you more options at the top. Then you can use the # symbol to add code tags around the highlighted text or press the # button first and paste the text between the two tags that appear.

Last edited by computersavvy; 02-08-2021 at 11:54 AM.
 
Old 02-08-2021, 11:14 AM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
This tells me your windows is installed in UEFI mode and the Ubuntu was installed in MBR mode.
What makes you say that, the windows drive disk type is msdos not gpt. Windows installs in legacy mode on msdos type disk
 
Old 02-08-2021, 11:43 AM   #15
arranskye
Member
 
Registered: Apr 2013
Location: Nottingham GB
Distribution: Ubuntu, Puppy, Zorin
Posts: 115

Original Poster
Rep: Reputation: Disabled
CP output as requested


enuentry 'Windows 10 (on /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-chain-EEF03A41F03A0FF7' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 EEF03A41F03A0FF7
else
search --no-floppy --fs-uuid --set=root EEF03A41F03A0FF7
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
 
  


Reply

Tags
boot issues, disk diagnostics, disks not found



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
[SOLVED] Slackware14.2 on sda, Slackware -current on sdb: LILO in mbr(sda) and sdb2. How to remove lilo from sdb2 san2ban Slackware 11 07-04-2020 12:30 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Error mounting /dev/sdb2, wrong fs type, bad option, bad superblock on /dev/sdb2 ashangel Linux - Kernel 3 08-06-2012 03:41 AM
cant boot sdb2 (win7); sdb is usb 3.0 externel drive; grub is on sda; ununun Linux - General 11 01-02-2012 01:27 PM
sdb2 instead of sda2 is set in grub after every system-update on Debian skipidar Linux - Software 2 10-02-2009 08:41 AM

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

All times are GMT -5. The time now is 05:47 AM.

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