LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 02-08-2019, 04:34 PM   #16
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,572

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499

If I run the command below on any Linux computer from a terminal, I get the result shown below.

Code:
$ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD" 
bash: -d: command not found
If I run the command correctly, I get the result shown below which is expected as it is EFI.

Quote:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
EFI boot on HDD
Anyhow, moot point as post 6 clearly shows a Legacy/MBR install. If you ran the command below which you show in your post above, you left out part of the command, the 2nd option.

Code:
barry@barry-To-be-filled-by-O-E-M ~ $ [ -d /sys/firmware/efi ] && echo "EFI boot on HDD"
I'm not sure what you are trying to accomplish. Your original post indicates you want advice on re-installing windows and you asked whether that would create any problems. Why are you re-installing Grub? Did you original Mint not boot? Did your windows not boot? Your post refers to moving files/folders from windows so it would appear you have/had a functioning windows OS? Did you now re-install windows?
 
Old 02-08-2019, 08:06 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bscho View Post
I cannot see the grub there all it seems to do is allow me to select Windows or Linux.

Do you know where I can find my existing grub for me to save it?
it will not show you a grub, but your OSes pick one, there should be a list of optional boot "formats" for a lack of a better way to put it. if you see one that says your disto and the partition you have it installed on pick that one and hit enter.
 
Old 02-09-2019, 02:21 AM   #18
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by yancek View Post
I'm not sure what you are trying to accomplish. Your original post indicates you want advice on re-installing windows and you asked whether that would create any problems. Why are you re-installing Grub? Did you original Mint not boot? Did your windows not boot? Your post refers to moving files/folders from windows so it would appear you have/had a functioning windows OS? Did you now re-install windows?
This problem always is happening with my customers. Installing Windows does not see Linux but installing Linux makes a new grub and you can dual boot.

The latest case is a man who has Windows XP and wants to install Windows 10 but save his programs. So my advice is to install Linux Mint 19.1 which I gave him on a yumi stick with Windows 10 and Mint 19.1 and gparted.

I suggest he then copies all his data and programs over the Linux desktop from the Window to a folder in Mint.
Then with gparted format the NTFS partition of the Windows XP then install Windows 10 from the Yumi.
Then of course he can only boot into Windows so rather than installing a second Mint in order to find the first mint and copy the files over to the new Windows 10.
So he uses super grub 2 from the yumi to boot to the Linux.

Now the problem is how to install the grub that will have Linux and Windows on.

The question is can he just do a grub update and everything is back

Bear in mind I suggested to reformat the larger NTFS Windows XP and not the smaller one thinking that would still contain the grub.

What do you think?
 
Old 02-09-2019, 07:25 AM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,572

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Quote:
This problem always is happening with my customers. Installing Windows does not see Linux
That is my experience also but with windows 10 (not sure about earlier versions), immediately after the EULA page, there is an option to select regular/normal install or Custom install. If you select Custom install, it will show the drives with the windows nomenclature. In my situation, it was labelled drive 0 partition 3. Format the primary partition as ntfs and mark it as active for the install.

Quote:
I suggest he then copies all his data and programs over the Linux desktop from the Window to a folder in Mint.
I would think it would be better to first create an ntfs partition a little larger than the data you want to copy rather than copy it to a Linux filesystem.

Quote:
Then of course he can only boot into Windows so rather than installing a second Mint in order to find the first mint and copy the files over to the new Windows 10.
If you create a separate ntfs partition prior to install on which to copy the data from the old xp, windows will recognize that partition and you won't need to bother with copying from Mint. If you want that data all on the same partition as the windows OS, you can simply copy it there after the windows install.

If you are able to boot the old Mint using SuperGrubDisk, the instructions posted above to install it to /dev/sda (if that is the correct drive) and then doing a sudo update-grub should create a new Grub boot menu listing both systems. If you don't run update-grub, a new grub.cfg file will not be created and it will be using the old one which probably had an entry for xp and won't boot windows 10.

Quote:
Bear in mind I suggested to reformat the larger NTFS Windows XP and not the smaller one thinking that would still contain the grub
Grub files should not be on an ntfs partition. Given the size of the partition shown in your earlier post and below, it appears to be a windows boot partition. Partition 3 should be the OS partition, 130GB in size.

Quote:
2 247GB 248GB 524MB primary ntfs boot
 
Old 02-09-2019, 08:20 AM   #20
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
post hast, as @yancek stated, I'd get a big external or internal 2.5" used as external, and copy, move the entire windows (mostly users home) onto it, then sift through it later. spiting the Linux OS this is the best way because of situations just like this. you find yourself wanting to install a 3rd Linux, rather than just formatting the same one and installing a fresh mint in its place, if it is separated, then what you have in your home is safe because all that is needed is to add the mount point to it, and tell the installer not to formate it.

Windows install has a expert mode as stated, use that to point it to which partitions you want it installed on, there installer is little difference then using a gui Linux installer, it has the same options, delete, create partitions, format which partitions, mount points you tell it to mount to, etc...

I give windows a chunk of partition however xGB big you want yours, very min is 30GB w/o updates or much room left to install much of anything, an app or two, then tell it to use that one, and let it slice it up however it sees fit for its restore and hibernate partitions.

this is if you can now access your windows partitions, you can even use a usb live Linux OS to do all of this moving your windows data somewhere safe then wipe your hdd keeping your home partition in Linux if you want to. then re-establish your hdd to how you need it to be, windows install first, next Linux, done. Main issue is having an extra hdd big enough to store your data. or evaulate what you can lose because you can get it back, ie things you've downloaded off of someone elses sight, dropbox or some other sort of back up keep my important stuff somewhere else system too is a good idea to look into.

Last edited by BW-userx; 02-09-2019 at 08:25 AM.
 
  


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 mint 18.2 amd64 onto a dual boot windows 7 / mint 17 amd32 has lost windows 7 rhubarbdog Linux Mint 13 12-02-2017 07:34 AM
how to install Mint 18 over Mint 17 on dual boot with Windows 7 Gwynny Linux - Laptop and Netbook 3 05-14-2017 12:23 AM
[SOLVED] virtualbox installs pcbsd again and again and again straffetoebak Linux - Virtualization and Cloud 4 11-21-2014 07:14 PM
Dualbooting again, again, again... Procrastinator Linux - General 4 10-28-2004 11:04 AM
Need help installing Mandrake (again, again, again...) DicedMalt Mandriva 6 08-26-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 10:06 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