Code Monkey home page Code Monkey logo

wubiuefi-edit-folder's Introduction

wubiuefi-edit-folder

You can change WUBI installed folder name (C:\ubuntu) to others (e.g: C:\ubuntu_2004)

First, run the below script on 'Ubuntu'

$ wget https://github.com/yomun/wubiuefi-edit-folder/raw/master/wubi-edit-folder-name.sh
$ sudo bash wubi-edit-folder-name.sh

*** If you want to use others folder name, please change the script
*** NEW_FOLDER_NAME="ubuntu_2004"

--------------------- Windows ---------------------

Reboot Machine, goto Windows

  1. Change the folder name from C:\ubuntu to C:\ubuntu_2004

  2. Copy C:\winboot\* (5 files, generated by above script) & replace to C:\ubuntu_2004\winboot\*
    C:\wubildr & C:\wubildr.mbr also want to change..

--------------------- Ubuntu 17.10 ---------------------

Reboot Machine, goto GRUB 2

  1. Choose 'ubuntu' & press 'e' (Edit Mode)
    change the path from /ubuntu/disks/root.disk to /ubuntu_2004/disks/root.disk (2 places)

    loopback loop0 /ubuntu_2004/disks/root.disk
    set root=(loop0)
    linux /boot/vmlinuz-4.13.9-041309-generic root=UUID=123ABC loop=/ubuntu_2004/disks/root.disk ...
    initrd /boot/initrd.img-4.13.9-041309-generic

    ctrl+x, run it..

  2. Change the path from /ubuntu/ to /ubuntu_2004/ at /etc/fstab
    $ sudo gedit /etc/fstab

    /host/ubuntu_2004/disks/root.disk / ext4 loop,errors=remount-ro 0 1
    /host/ubuntu_2004/disks/swap.disk none swap loop,sw 0 0

  3. Update Grub 2
    $ sudo update-grub

wubiuefi-edit-folder's People

Contributors

yomun avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.