[SOLVED]Grub recognize Windows 7 as Windows Vista

Hi all.
I just installed Arch on my Thinkpad T420, Everything is ok except Grub recognize Windows 7 as Windows Vista.
I have Windows 7 installed on SSD, on another drive I have 2 NTFS partitions and 1 ext4 partition on which Arch is installed, grub is installed to SSD, both system can boot without problem.
I installed Mint before, it recognizes Windows 7 with no problem.
Can I fix this? I googled this and I think this problem should have been fixed long ago, don't know why the grub os-prober think I have Vista installed, I never installed Vista before.
Last edited by smilinger (2014-12-10 12:57:05)

I think I figured out why. After some digging I found the code in /usr/lib/os-probes/mounted/20microsoft that has a tiny bug.
The problem is the grep options, maybe in other distributions binary files are treated as text by default or something, but apparently in Archlinux it's not, so any OS that's higher than Vista will be recognized as Vista.
Anyway, I pasted the patch here, it's easy to fix.
--- 20microsoft.old 2014-11-04 23:53:28.000000000 +0800
+++ 20microsoft 2014-12-13 21:39:27.471912583 +0800
@@ -31,19 +31,19 @@
for boot in $(item_in_dir boot "$2"); do
bcd=$(item_in_dir bcd "$2/$boot")
if [ -n "$bcd" ]; then
- if grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
+ if grep -aqs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then
long="Windows 8 (loader)"
- elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
+ elif grep -aqs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
long="Windows 7 (loader)"
- elif grep -qs "W.i.n.d.o.w.s. .V.i.s.t.a" "$2/$boot/$bcd"; then
+ elif grep -aqs "W.i.n.d.o.w.s. .V.i.s.t.a" "$2/$boot/$bcd"; then
long="Windows Vista (loader)"
- elif grep -qs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8. .R.2." "$2/$boot/$bcd"; then
+ elif grep -aqs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8. .R.2." "$2/$boot/$bcd"; then
long="Windows Server 2008 R2 (loader)"
- elif grep -qs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8." "$2/$boot/$bcd"; then
+ elif grep -aqs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8." "$2/$boot/$bcd"; then
long="Windows Server 2008 (loader)"
- elif grep -qs "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
+ elif grep -aqs "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
long="Windows Recovery Environment (loader)"
- elif grep -qs "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
+ elif grep -aqs "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
long="Windows Recovery Environment (loader)"
else
long="Windows Vista (loader)"
Last edited by smilinger (2014-12-13 13:55:04)

Similar Messages

  • Macbook Pro won't recognize windows vista dvd

    Hi everyone,
    I just bought Leopard and a new copy of Windows Vista Home Premium to install on my Macbook Pro. Leopard installed fine. Had some issues partitioning (had to get the right size b/c of unmovable files). Anyway, i made a 27gb partition to install my Vista. However, when I put my install dvd into the drive, it spins, makes a funny noise, then asks for the install dvd. After it spins the dvd some more, it spits it out. It doesn't seem to recognize the install dvd. I've put the Vista dvd into my PC and it runs fine. I would greatly appreciate any and all suggestions.
    Thank you.

    I have exactly the same issue as you with mac not recognising the Vista Home Premium DVD either in Bootcamp or in the Finder. The applecare people were completely clueless and the guys at the "Genius" bar in the apple store were less than impressive and were insisting that it was a faulty DVD. Since i had tested it on various PCs and it worked fine, i knew it wasn't that. After 30 minutes of arguing they finally agreed to replace my DVD drive which unfortunately didn't help either. I have now ordered alternative media from Microsoft in the form of CDs for the cost of postage and will try that when they arrive and let you know. This is a problem that i'm seeing in various forums all over the place and is clearly some bizzare issue with Mac software or hardware which Apple refuses to acknowledge exists. P.S, don't bother re-creating the DVD as i tried copying the image to a USB drive on a PC and then burning it onto a blank DVD via the Mac. Although this allows the finder to mount the new DVD, Bootcamp still won't recognise the disc as a valid installer disc. More soon...

  • Windows vista ultimate 64 bit PDF export error

    Hi there, I'm using diadem 11.0 and  i have a big problem with my new os.
    When i try to export a report in pdf i get a print error in the status of the "diadem pdf export" printer.
    Any idea or solution for fix this problem ?
    Solved!
    Go to Solution.

    Thanks for the support Brad, i have tried to download and install diadem 11.1 but  it didn't solve the problem.
    After that i've tried to search in the amyuni forum for a solution and i found out this (it solved my problem)
    Windows Vista:
    Make sure that you are logged in as Windows administrator.
    Click the Windows button and click Printers.
    Right-click the Diadem pdf Export and select Properties
    Click the Ports tab, then click the Add Port button.
    Note: If the Ports tab is greyed out, right-click the Diadem Pdf Export icon and select Run as admin.
    Select Local Port and click the New Port button.
    Enter PDF1 for the new port name and click OK. Close the Printer Ports window.
    Put a checkmark in the box next to the PDF1 port if it is not already checked.
    Click on the Advanced tab.
    Select the Spool print documents radio button to make the options below it clickable.
    Clear (uncheck) the box labeled Enable advanced printing features by clicking it.
    Select the Print directly to printer radio button to make the options below not clickable.
    Click the Apply button, then click OK.
    Important: In order for the changes to take effect, you must restart your computer.
    Reboot your computer and then try to print, email, or create a pdf from Diadem.
    Regards,
    Ierman Gert

  • Macbook installing window vista

    Hi everyone,
    I am new to Mac and just got a new Macbook, so I decide I will install a Window Vista on it so I can have something as a backup if I can't get used to Mac OS. However, when I install the Window using bootcamp, I forgot with partition is the one with Mac OS on and I choose the one that say "74.9 GB[Bootcamp]" and install the window Vista.
    The problem is, after the comouter was restart, it can only recognize Window Vista and there is no way that I can choose the Mac OS. Did I choose the wrong partition to format or it is normal?
    And the worst problem is I couldn't reload the Mac OS on the computer again, the computer won't read the disc nor can I go to the BIOS setup manuel to boot from the installation disc.
    Please kindly reply, thanks a lot.

    bluesquirrel1984 wrote:
    Hi everyone,
    I am new to Mac and just got a new Macbook, so I decide I will install a Window Vista on it so I can have something as a backup if I can't get used to Mac OS. However, when I install the Window using bootcamp, I forgot with partition is the one with Mac OS on and I choose the one that say "74.9 GB[Bootcamp]" and install the window Vista.
    The problem is, after the comouter was restart, it can only recognize Window Vista
    Might want to sign on to MS and d'load the release candidate for Windows 7, it's open public beta and good until 3/2/2010 that's month/day/year. Very nice OS and should run great on your Mac.
    pancenter-

  • Windows Vista recognizes iPod but not iPad...

    Windows Vista (with latest service pack; 32-bit) will not recognize my iPad. It was able to before and my last iPad backup in my iTunes is dated back to March. However, now, when I plug my iPad in, it does not recognize it and does not even show up on the disc drives. I have gone through the numerous methoeds that Apple (and others) suggested including reinstalling iTunes, reinstalling the Apple Mobile Device Drivers, restarting my computer using msconfig, etc.
    To test out whether it was an Apple driver on my computer or not, I inserted my Gen 6 iPod Classic and it recognized it with no problem. If you know how to solve this, please let me know.
    Thank You,
    Tulga
    Misc. info:
    iPad - Version 4.2.1 (Need to connect to iTunes to update)
    iTunes - Version 10.4.1.10
    Windows Vista 32-bit
    iPod - Version 2.0.1 PC

    Pad not Connecting to iTunes - System Requirements
    If you've ever synced an iPod or iPhone, then you will know about these. The computer you're syncing to must have iTunes version 9.1 or later, must support USB 2.0, and the Operating System must be Mac OS X (10.5.8 or later), Windows XP (with Service Pack 3), Windows Vista, or Windows 7.
    iPad not Connecting to iTunes - Charge your iPad
    If your iPad has a low or dead battery, then it won’t show up in iTunes until it has a little bit of a charge. Charge the iPad for 10 minutes or so, then try to connect it again to see whether iPad not detected by iTunes.
    iPad not Connecting to iTunes - Restart your iPad
    To restart the iPad, hold the Sleep/Wake button until the red slider appears, then slide your finger on the slider to turn it off. Turn it back on by holding the Sleep/Wake button until the Apple logo appears.
    iPad not Connecting to iTunes - Restart your computer
    Restarting your computer can resolve any software/hardware issues that might be keeping your iPad from showing up in iTunes, and is always worth a shot.
    iPad not Connecting to iTunes - Reinstall iTunes
    If all else fails, try removing iTunes and reinstalling it to solve the problem of iPad not detected by iTunes.
    After the problem of iPad not connecting to iTunes solved out, you can do the iPad Transfer with iTunes, or you can also try the ipad to comp transfer easily and freely.
    for more visit http:/www.ipadtomactransfer.org/ipad-tips/ipad-not-connecting-to-itunes.html

  • Windows vista Ultimate does not recognize ipod

    Hello,
    I have Windows Vista Ultimate and whe I plug my 30GB 5G Ipod it asks for the driver. It does not appear nor on explorer nor itunes.
    I have itunes 7.1.5 installed.
    i did try reseting the ipod but still the same problem.
    I did try my Ipod on an XP computer and it works.
    have anyone solved this compatibility problem or knows how to solve it?

    perhaps try MarkTaylor46's technique from the following post:
    http://discussions.apple.com/thread.jspa?threadID=892874&tstart=15

  • TA24326 My HP desktop running Windows Vista 32-bit no longer recognizes my iPhone 4 when I connect it. How do I correct this?

    My HP desktop running Windows Vista 32-bit no longer recognizes my iPhone 4 when I connect it. How do I correct this?

    Device not recognized in iTunes

  • Windows vista/iTunes doesnt recognize ipodtouch

    Hi,
    I just bought a new ipod touch, and treid connecting it to my pc. the first time i plugged it in windows vista said something about new hardware recongized and installing drivers, i waited till it was done and then checked iTunes. My ipod was not visible there, then i checked window explorer and it wasnt visible there either. I turned on my ipod and it just shows a picture of a cable and plug and then an arrow pointing at itunes. So far I've uninstalled and reinstalled itunes, turned the ipod on and off, checked my device manager (which doesnt show the ipod touch either) for any issues with the usb ports. I have no clue whats wrong with it! I'm going to try and plug it into a different pc to see if that one will recognize it, but I raelly need it to work on my own pc. Any suggestions are really welcome!
    cheers,
    Conrad.
    (Edit: Add hard resetting the ipod to things I've treid and didnt work list)
    Message was edited by: Conrad_86

    Hey Conrad,
    Make sure you're plugging the iPod touch directly into the PC and not into a hub, monitor, or keyboard.
    What security software is running on the PC? Try disabling it or reconfiguring it.
    These two articles will provides tips that may resolve the issue.
    http://support.apple.com/kb/HT1852
    http://support.apple.com/kb/TS1363
    Jason
    Message was edited by: Jason L

  • My pc windows vista home system and Windows Vista Ultimate both service pack 2 and itunes do not recognize the ipod touch 4g, ios 5

    my pc windows vista home system and wndows vista ultimate boht service pack 2 and itunes do not recognize or do not see the ipod touch 4g ios 5. why'??'

    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    We'd better check on that, kris. If you enable iTunes in your Windows firewall, does that help with your connection? See the following document for instructions:
    How to enable iTunes in the Windows XP Firewall
    EDIT: Drat ... gave you the link to the wrong document. Try this one instead for your Vista:
    How to enable iTunes in the Windows Vista and Windows 7 Firewall
    Message was edited by: b noir

  • Hi, my Ipod Schuffle (4 gen) dissapears from windows vista right after I execute Itunes, I've change the drive letter, erase temps in App data file, verified USB drivers, etc... Can someone guide on how to solve this?

    Hi, my Ipod Schuffle (4 gen) dissapears from windows vista right after I execute Itunes, I've change the drive letter, erase temps in App data file, verified USB drivers, etc... Can someone guide on how to solve this?

    If you want the shuffle to be always visible in Windows (outside of iTunes), you need to Enable disk use.
    Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, select the Summary tab.  You should see a checkbox that says Enable disk use.  Check it and click Apply.
    NOTE:  If disk use is enabled, you have to Eject the shuffle in iTunes, BEFORE you physically disconnect it.  If disk use is NOT enabled, you can disconnect the shuffle at any time, as long as iTunes is not doing something with it at that moment (such as syncing); the shuffle's light will then be blinking (to indicate DO NOT DISCONNECT).
    So, unless you want to use the shuffle like a USB flash drive (carry random files on it), you may want to NOT Enable disk use.

  • Windows Vista Won't Recognize Internet Networks

    I just installed Windows Vista Home Basic on my MacBook Pro with Boot Camp. I have Road Runner wireless internet and my Mac side recognizes and connects all the time, but my Windows side doesn't recognize it or any other network. What's the problem and how can I fix it?
    Thanks,
    Sam

    Uninstalled and reinstalled the new update. I even ran the setup as admin, but no dice. And there's no Java settings in the control panel either.

  • Windows Vista doesn't recognize Mac Pro RAM

    I have installed Windows Vista Business on my Mac Pro using Boot Camp, and have found some anomalies that seem strange. It is basically working well (for Windows....).
    1. I installed this on a 500Gb HD on my Mac Pro. This machine is a fully configured box doing video editing, with extensive AV files. It has all four drive bays filled, 3 of them with 1Tb drives, the thrid with a single 500Gb drive. I was a bit surprised to find that Boot Camp won't allow partitioning of its OSX installed boot HD beyond a Mac Partition and the Boot Camp paritition, or a secondary entire HD dedicated to Windows. This is not very practical with these large drives, since even though HD storage is fairly cheap, I don't want to give Microsoft more than maybe 100gb on a drive. All of the other HDs are partitioned for multiple parititions, which I need to preserve. The OSX boot drive has 3 OSX partitions already installed. Any ideas on how to do this better? Yes, I know I can use Parallels or VMWare, and do, but find that native Boot Camp Windows is better.
    2. Windows Vista is running on a dedicated HD in Boot Camp on this machine (to all appearances running fine), but doesn't recognize more than 2Gb of RAM on my machine which is configured with 10Gb of RAM which is recognized appropriately in OSX. What am I missing?
    I would appreciate any help on a partitioning scheme that works to support multiple partitions on these large drives, and a reason that only 2Gb out of 10Gb of RAM is recognized by Windows Vista Business in Boot Camp.
    Thanks!!!

    Thanks for your response.
    I am running in Boot Camp, which runs in native mode without emulation. The advantage is that if you are going to run Windows, which is my goal, it doesn't have the overhead of OSX. Indeed, most Mac machines are among the fastest Windows machines available for equivalent hardware when running Windows in native mode. There are a few more arcane advantages to running natively, particularly in terms of connecting to external devices. There is no background RAM overhead when run natively.
    Thanks....

  • ITunes Will Not Recognize My CD/DVD Drive In My Windows Vista PC.

    All,
    I was forced to migrate to a new PC for work. It is running Windows Vista Enterprise. Since receiving the PC, iTunes will not recognize my CD/DVD Drive. I receive the following error message:
    "Warning, The registry settings used by the iTunes drivers for importing and burning CD's and DVD's are missing....." etc.
    I have completed the following troubleshooting steps with no success:
    1. Deleted upper and lower filters in the registry per the Microsoft fix from their web site.
    2. Completely uninstalled and reinstalled iTunes/Quicktime/Etc.
    3. Uninstalled and reinstalled the CD/DVD Drive
    4. Verified that other programs recognize and can burn to my CD/DVD drive. I have Windows Media Player and Roxio Creator Basic installed.
    5. Verified that Windows Vista recognizes my CD/DVD drive.
    6. Installed the GEAR driver recommended on the Apple Support page for this issue.
    All of my music in is iTunes and I prefer to burn my CD's via iTunes. I have read that several people are having this issue.
    Does anyone have a solution? There has to be a fix out there somewhere.
    I can downgrade to XP but it will take an "Act Of Congress" for my corporate IT group to send me the XP downgrade CD.
    Any solutions or recommendations are great appreciated.

    All,
    I was forced to migrate to a new PC for work. It is running Windows Vista Enterprise. Since receiving the PC, iTunes will not recognize my CD/DVD Drive. I receive the following error message:
    "Warning, The registry settings used by the iTunes drivers for importing and burning CD's and DVD's are missing....." etc.
    I have completed the following troubleshooting steps with no success:
    1. Deleted upper and lower filters in the registry per the Microsoft fix from their web site.
    2. Completely uninstalled and reinstalled iTunes/Quicktime/Etc.
    3. Uninstalled and reinstalled the CD/DVD Drive
    4. Verified that other programs recognize and can burn to my CD/DVD drive. I have Windows Media Player and Roxio Creator Basic installed.
    5. Verified that Windows Vista recognizes my CD/DVD drive.
    6. Installed the GEAR driver recommended on the Apple Support page for this issue.
    All of my music in is iTunes and I prefer to burn my CD's via iTunes. I have read that several people are having this issue.
    Does anyone have a solution? There has to be a fix out there somewhere.
    I can downgrade to XP but it will take an "Act Of Congress" for my corporate IT group to send me the XP downgrade CD.
    Any solutions or recommendations are great appreciated.

  • For the last 3 or 4 versions of iTunes, and continuing in 11.05, the site recognizes that I have a 64 bit OS (Windows Vista) and downloads the 64 bit version of setup.

    For the last 3 or 4 versions of iTunes, and continuing in 11.05, the site recognizes that I have a 64 bit OS (Windows Vista) and downloads the 64 bit version of setup. Setup installs iTunes in the 32 bit application directory (Program Files x86) - it's not all that unusual to run a 32 bit app under a 64 bit OS - BUT whenever I connect any of my iPhones, I get an error message that say I cannot use the iPhone because the 64 bit version of iTunes is not installed.  The message then tells me to de-install iTunes and to install the 64 bit version.
    Like I say, the 64 bit Setup version is selected for me, and it runs error-free, but I seem to have no control or ability to force the installation of a 64 bit iTunes app.  And all the iPhones are inoperative with the 32 bit version I have.  I have another PC, which I have held at an earlier iTunes release. Although it's a notebook, it's identical in every other way (OS & installed utilities and apps) to the desktop that has developed the problem, and my iPhones work fine with it, although iTunes on it is at the earlier release, and I have no intention of upgrading that version until I understand and have corrected the problem.
    Any ideas or suggustions?
    Thanks.

    This iPhone cannot be used because the required software is not installed. Run the the iTunes installer to remove iTunes, then install the 64 bit version of iTunes.
    That usually indicates that your Apple Mobile Device Support has not installed. That's also what is being shown by the diagnostics (the driver is there but the application isn't).
    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • Adobe Reader 10.1.3 does not recognize the windows vista installed printer

    I am using the latest version of Adobe Reader. When I print I get a message box that says you must install a printer driver. I have a printer installed in Windows Vista Home Premium that works ok with all other programs.  Any ideas?

    All updates applied to ver 10.1.10.  Same problem - does not recognize the network printer.  When I first installed this version and the Software License Agreement displayed it allowed me to access the printer dialog and print the form. When I open a pdf document after this it does not recognize that there isa printer installed.  Any ideas??? This is getting vdery frustating.  The only good news is that foxit works.

Maybe you are looking for

  • Installation Woes on Solaris 10

    I have looked thru all the issues posted so far and I have worked past those, my issue occurs during the installation of the Oracle JVM: The installation is at 36% when I hit this error: ORA-00604: error occured at recursive SQL level 1 ORA-04031: un

  • Flash Ad External API  not working in IE7

    I'm using the Flash AS 2.0 External API to call a Javascript function in a page that adds an item to a shopping list when a Flash Ad is clicked. This is working in FireFox 2 , Safari, and IE6, but does not work in IE7. I tested the Flash Ad locally i

  • Include a field in the table maintenance generator

    Hi All, There is a Z table with MATNR and another numeric field and the table maintenance generator exists for the table. The requirement is to include another field for MAKTX ( Material description) in the table maintenance generator with input disa

  • Adf tree don't refresh

    Hi people, I have this code <af:inputText value="#{bindings.string.inputValue}" columns="#{bindings.string.hints.displayWidth}" maximumLength="#{bindings.string.hints.precision}" simple="true" styleClass="search-colab"> <f:validator binding="#{bindin

  • Need some help with region position

    Hi, I need som help with regions position.... Background: I have 2 regions, I will call them reg1, reg2 and reg3. reg1 = Page Template Body (2. items below region content), column 1, search region. reg2 = Page Template Body (2. items below region con