Fácil dual-boot Windows

Guía paso a paso para cambiar al arranque dual Windows desde Linux con un solo clic: instala zenity, crea un script con efibootmgr y añade un lanzador en la barra de tareas.

18 ago 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

He creado mi tutorial original en mi lengua natal y lo he traducido al español para compartir una forma sencilla de cambiar al arranque dual Windows desde Linux con solo un par de clics en la barra de tareas

Qué hace este método: mejora la comodidad del arranque dual al fijar en la barra de tareas de Linux un lanzador que ejecuta un script con un cuadro de confirmación antes de reiniciar y arrancar en Windows

Requisitos previos: instalar zenity en tu sistema Linux para mostrar cuadros de diálogo

En Ubuntu y Debian ejecutar en terminal sudo apt install zenity

En Fedora y en Arch consultar la documentación de cada distribución para instalar zenity

Obtener el identificador del arranque de Windows: ejecutar en terminal sudo efibootmgr y anotar el BootOrder correspondiente al gestor de arranque de Windows por ejemplo 0001

Comprobar ubicaciones de comandos por si varían según la distribución ejecutar which efibootmgr y which reboot y anotar las rutas que aparezcan como por ejemplo /usr/bin/efibootmgr y /sbin/reboot

Crear el script que hará el cambio: sustituir YOURUSERNAME por tu nombre de usuario y 0001 por el identificador que anotaste

Crear carpeta para los scripts ejecutar mkdir -p /home/YOURUSERNAME/ShellScripts

Crear el archivo con editor nano por ejemplo nano /home/YOURUSERNAME/ShellScripts/switch-to-windows.sh y pegar el siguiente script en una sola línea válido para bash #!/bin/bash; zenity --question --title=Switch_to_Windows --text=Deseas_reiniciar_en_Windows; if [ $? -eq 0 ]; then sudo /usr/bin/efibootmgr -n 0001; sudo /sbin/reboot; else exit 0; fi

Guardar el archivo y hacerlo ejecutable chmod +x /home/YOURUSERNAME/ShellScripts/switch-to-windows.sh

Comprobar y corregir rutas si es necesario usando which efibootmgr y which reboot y actualizar los caminos en el script si difieren

Opcional configurar sudo sin contraseña solo para este comando y para el reinicio por seguridad ejecutar sudo visudo -f /etc/sudoers.d/switch-to-windows y añadir la línea YOURUSERNAME ALL=(ALL) NOPASSWD: /usr/bin/efibootmgr, /sbin/reboot donde YOURUSERNAME es tu usuario

Crear un lanzador de escritorio para poder anclarlo a la barra de tareas crear archivo nano /home/YOURUSERNAME/ShellScripts/SwitchToWindows.desktop y usar el siguiente contenido como referencia por líneas separadas al guardar [Desktop Entry]; Version=1.0; Type=Application; Name=Switch to Windows; Exec=/home/YOURUSERNAME/ShellScripts/switch-to-windows.sh; Icon=system-reboot; Terminal=false; Categories=Utility;

Hacer ejecutable el lanzador chmod +x /home/YOURUSERNAME/ShellScripts/SwitchToWindows.desktop y copiarlo al directorio de aplicaciones del usuario cp /home/YOURUSERNAME/ShellScripts/SwitchToWindows.desktop ~/.local/share/applications/

Después de copiarlo aparecerá en el menú de aplicaciones como Switch to Windows hacer clic derecho y anclarlo a la barra de tareas

Comportamiento final: al pulsar el icono aparecerá un cuadro de confirmación mediante zenity si eliges NO se cancela el proceso si eliges SI el script usará efibootmgr para establecer el siguiente arranque al gestor de Windows y reiniciará el equipo

Precauciones importantes: verifica siempre el identificador de Windows obtenido con sudo efibootmgr antes de usar el script y confirma las rutas de efibootmgr y reboot con which para evitar errores; configurar sudoers sin contraseña debe hacerse con cuidado y limitarse solo al usuario necesario

Sobre Q2BSTUDIO: somos una empresa de desarrollo de software y aplicaciones a medida especializados en soluciones empresariales modernas; ofrecemos servicios de software a medida y aplicaciones a medida integrando inteligencia artificial e ia para empresas para automatizar procesos y extraer valor de los datos; además proporcionamos ciberseguridad profesional para proteger infraestructuras y datos sensibles; ofrecemos servicios cloud aws y azure para desplegar soluciones escalables y seguras y servicios inteligencia de negocio y power bi para crear cuadros de mando y reporting avanzados; también desarrollamos agentes IA personalizados y soluciones de inteligencia artificial para casos de uso concretos

Si necesitas ayuda para integrar este tipo de herramientas en tu empresa o quieres un proyecto a medida contacta con Q2BSTUDIO para desarrollar software a medida soluciones de inteligencia artificial ciberseguridad servicios cloud aws y azure agentes IA power bi y servicios inteligencia de negocio

Palabras clave para mejorar posicionamiento aplicaciones a medida software a medida inteligencia artificial ciberseguridad servicios cloud aws y azure servicios inteligencia de negocio ia para empresas agentes IA power bi

Gracias por leer este tutorial esperamos que te facilite cambiar entre Linux y Windows de forma rápida y segura

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat