Trick for booting RemixOS from Clover EFI - Remix OS for PC

Just leaving this note here for anyone who is trying to triple-boot OSX/Windows/RemixOS. There are guides for doing the OSX install, and they vary depending on what flavor you are using, so I won't get into that part (the guides are helpful). The part I couldn't get decent guidance on, was that after RemixOS was installed to a hard-disk partition, I'd get a boot menu that let me choose between Windows and RemixOS (but not OSX), while when Clover was installed, I could boot into Windows or OSX but not RemixOS.
After looking at the source code for Clover, I saw that the part that was scanning for EFI boot partitions didn't include checks for Android partitions (the code for them was actually there, but commented out unless Clover was built with specific symbols defined). However, the checks for several linux flavors were compiled into grub. What worked for me was to mount my EFI partition, copy the RemixOS folder inside of the EFI folder, and rename the copy to debian. When I rebooted into Clover, I was presented with a choice of booting into EFI for Debian, and when I selected that, I got the RemixOS boot menu that let me choose between Windows and RemixOS.
How to mount the EFI partition - from OSX, use Clover Configurator to mount and open the EFI partition. Or, from Windows:
mountvol Z: /S
and then you can run a cmd shell as administrator and switch to Z:.

Related

[Q] How to read/write ext3 filesystem image in Ubuntu??

I developed a cramfs rom for the np7 after user dochoppy found root for the nextbook premium 7 tablet, but he then converted to ext3 which because its packed with features will be more popular. So I am trying to edit his ext3 rom in Ubuntu 11.10 and here is what I do:
1. Copy and paste system.img to desktop
2. Create a folder called system on desktop
3. In command prompt:
cd ~/Desktop
Sudo mount -t ext3 -o loop system.img system
(Asks for pw)
4. Doc said something about only being able to edit as root, so after some Googling I find out how to create a program that grants root.
5. (Open "run as" program) then I type "nautilus /home"
(Asks for pw)
6. Navigate to mounted system and I have read/write privileges (but only in this window)
HERE IS THE PROBLEM!!!
7. View the system mount properties, and it says I have 14.2 mb free space on device
8. Delete files throughout the system folder to make room (but when I refresh properties, free space increase doesn't show)
9. Try to add my own files after deleting some others, ans rather than using the increased space, it just fills the fourteen megs before telling me "device is out ofmemory "
What am I doing wrong, why is the system not physically making the proper system increase and decreases.
ognimnella said:
8. Delete files throughout the system folder to make room (but when I refresh properties, free space increase doesn't show)
Click to expand...
Click to collapse
If you use nautilus, there are chances that your files get just moved to Trash.
Try empting the trash, or remove them from command line (with sudo).
You have to be superuser (ie root) to be able to use mount in Ubuntu. Type 'sudo -' in the terminal again, enter your usernames password. (Default root password is your usernames pwd) then you can mount the image, edit it, etc.
When you open the terminal, type id . It'll show you your username, and uid. After you sudo, type id again. It'll show you're root with uid 0
Sent from my HTC EVO 3D using XDA App

[Q] What is the partition table for stock TF201?

Hi all,
I'm been able to mount and chroot to sdcard with the lastest Gentoo stage3-armv7a and portage.
So, now i can compile my programs on TF201, awersome!
but...
using linux from chroot sdcard have it's advantages ( no kernel configuration, no drivers , etc..) but it is quite slow... expecially python scripts ( which gentoo packages system is based on ).
now, I think "resize the 32G partition to 25G, and create a ext4 fs for gentoo. then modify 'initramfs' for asking what OS start."
it could be nice, because i haven't to configure a new kernel, i still use te NVIDIA STOCK Kernel (with all it's optimization for that device ) but on a different OS.
and now the problem...
Code:
[email protected]:/ # fdisk /dev/block/mmcblk0
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.
The number of cylinders for this disk is set to 969984.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): q
so, how can i modify TF201 partition table?
sorry for my bad english.
thanks in advance.
-- tux_mind
I think that the possible solutions are these:
resize the 27G partition to 24GB, create a 3GB ext4 partition and copy in all gentoo files.
copy gentoo files to a directory inside the 27GB partition.
then modify init.rc as follow:
mount the ext4 partition on /newroot, mount {proc,sys,dev,tmp} , make dev from sys (how can i do this ?) and chroot into /newroot.
mount the 27GB partition on /garbage, mount /garbage/gentoo on /newroot, mount{proc,sys,dev,tmp} , make dev from sys ( how can i do this ?) and chroot into /newroot.
if I write a bad init.rc, how i can restore the previous one?
or how i can reflash the STOCK firmware?
thanks again.

[DEV][Tools] simg2img and make_ext4fs binaries for mac OS X

Not really a whole lot to describe here. simg2img and make_ext4fs are both linux binaries that are used to unpack / mount / repack system.img from a stock tar.md5 rom. Quite useful.
I get curious as to how much development stuff I can do with OS X from time to time, as, though they are not twins by any means, linux and darwin are definitely cousins. Obviously the simg2img and make_ext4fs binaries in their normal state won't work on any darwin system (os x), however, they ARE unix binaries, and darwin is well... unix
So I downloaded the source code and compiled natively on OS X using xcode / gcc. When compile is done (didn't take long) dropped in /bin and.. viola! Works perfectly.
For those who want a tutorial on how to use these binaries, check here.
To mount sys.raw:
install either macports or homebrew. Then:
Macports: $ sudo port install ext4fuse
Homebrew: $ brew install ext4fuse
After which, cd to the directory you created sys.raw using simg2img.
$ mkdir sys
then, mount with:
$ ext4fuse sys.raw sys
and viola! it's now mounted and you can do what you will with /system
Download links:
simg2img: download
make_ext4fs: download
Homebrew: OS X package manager
just added instructions for mounting sys.raw
To all who do anything development related on Mac OS X / Darwin; let me know if there's any other linux binaries you'd like ported, I feel like doing some more cross-compiling but I can't think of a project.
So awesome
This is awesome. Awesome, awesome, awesome. I just wish there was a better collection of tools because I tried everything (on my Mac), with every single other OS available, just to open a stock Galaxy Note 4 image.
Just one thing though ...
I mounted 'sys' and I don't know what happened but suddenly it unmounted and now the 'sys' folder has disappeared from view ... though I can still see it if I "ls" in its parent directory.
So I tried to 'mkdir sys' again, it says it can't. It also says that "'sys' is taken" if I try to recreate the folder ... I can create a different folder with a different name, but 'sys' is a weird hidden directory now that I can only see in the terminal/shell.
...
Guess I'll reboot.
Rebooting solved the problem and stopped whatever mounting process had been started. But it keeps happening and I can't figure out a way to kill the mount/unmount without restarting my whole Mac ... hmmm ...
Hi there,
great tool for us on OS X, however when I try to build the android image from mounted folder I get this:
can't set android permissions - built without android support
any solution?

[GUIDE]Triple Booting Remix OS, Linux and Chrome OS

The trick is to install Chrome OS first, shrink the Chrome OS main partition, and install Linux and Remix in their own partitions.
Download Chrome OS from here and install it as directed. It will destroy everything else on the disk, and make a large partition for data storage, and another 11 partitions for whoknows what.
Boot Linux with a live USB stick or CD. Shrink the first, large partition using parted. I started out with a 450GB partition that I shrunk to 180. Make 5 new partitions using fdisk or whatever you like for partitioning. I made a 250 MB partition for Linux boot, a 120GB partition for Linux /, a 120GB partition for Linux /home, an 8GB partition for Linux swap, and a 30GB partition for Remix. Use your own judgment.
Install Linux in the Linux partitions. I use Gentoo, but you can use whatever you like.
Boot up linux.
Install Remix OS in the last partition:
Download the zip file from this thread. Unzip the file; it contains an installer for Windoze(<somethingorother>.exe), and an .iso file. Make a temporary directory
Code:
mkdir /mnt/tmp
and mount the iso in it:
Code:
mount -o loop <name_of_iso>.iso /mnt/tmp
Format the Remix partition, mount it, and copy the files in the iso to the Remix partition (in my case it is /dev/sda17):
Code:
mkfs.ext4 /dev/sda17
mkdir /mnt/remix
mount -t auto /dev/sda17 /mnt/remix
cd /mnt/tmp
find . -xdev -depth -print | cpio -puvdm /mnt/remix
Make a grub menu entry for Remix OS in /etc/grub.d/40_custom:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "REMIXOS Resident Mode" --class android-x86 {
insmod part_gpt
search --file --no-floppy --set=root /system.img
set root=(hd0,17)
linux /kernel initrd=/initrd.img quiet root=/dev/ram0 androidboot.hardware=remix_x86
androidboot.selinux=permissive quiet SRC= DATA=/ CREATE_DATA_IMG=0
## VGA=791
video=uvesa DPI=96 UVESA_MODE=1280x800
initrd /initrd.img
}
You may need a different VGA= or MODE= depending on your monitor.
Make a data directory. For some reason it doesn't get created automatically:
Code:
mkdir /mnt/remix/data
Assuming grub is installed, make the grub menu and finish up.
Code:
mount /boot
grub2-mkconfig -o /boot/grub/grub.cfg
umount /boot
umount /mnt/tmp
umount /mnt/remix
rmdir /mnt/remix
When you reboot, you will see two entries for Chrome OS, generally listed as "Unknown Linux Distribution". Either one will work to boot Chrome.
Follow the directions in the Remix thread listed above on how to enable the Google Play store on Remix.
Took me a lot of trial and error. Hopefully it will be easier for you.
what do you mean it destroy everything on disk
deepakhope said:
what do you mean it destroy everything on disk
Click to expand...
Click to collapse
If you run the installer that comes with it, it will wipe out anything that was on the disk before. There's no way to install it and leave what was there before untouched. That's why you need to install Chrome OS first.
pixbuf said:
If you run the installer that comes with it, it will wipe out anything that was on the disk before. There's no way to install it and leave what was there before untouched. That's why you need to install Chrome OS first.
Click to expand...
Click to collapse
That's what held me off trying ChromeOS; can you at least select to install to an external drive with it?
Just a couple points from OP;
1. You probably should be saying CloudReady (open-source version of ChromiumOS) rather than saying ChromeOS; as that is a hardware-specific closed source OS.
2. There's a bit of redundancy in your grub:
Code:
menuentry "REMIXOS Resident Mode" --class android-x86 {
insmod part_gpt
[color=red][b]search --file --no-floppy --set=root /system.img
set root=(hd0,17)[/b][/color]
linux /kernel initrd=/initrd.img quiet root=/dev/ram0 androidboot.hardware=remix_x86
androidboot.selinux=permissive quiet SRC= DATA=/ CREATE_DATA_IMG=0
}
Those two lines are doing the same thing - removing the first one might result in a faster boot (probably non-noticable); removing the second should make the whole entry partition no. independent.
How could I add windows 10 to the mix here?
Institute chromium, followed by Linux and then windows and finally restore grub?

Question Trying to delete Linux

so I have tried multiple different Linux types. and I want to get rid of the most recent one. (Linux Mint) I can delete the partition but my bios says its still there. the next problem I am having is that when I boot into windows recovery mode and click the option "choose a device" I have 3 devices. one is ubuntu which boots into Linux mint. the 2 others are POP OS as one of them failed and the other did successfully install. I want to remove the ubuntu device from my bios and the three devices that are in windows recovery. I have Linux mint reinstalled to make sure that I start from square one. I also want to be able to do this without touching windows (reinstalling or anything like that).
You can try this tool to customise your boot menu:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer,
if it is grub bootloader that you're using.
MocnePifko said:
You can try this tool to customise your boot menu:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer,
if it is grub bootloader that you're using.
Click to expand...
Click to collapse
i dont want to keep linux. i want it off my entire system. everything linux gone along with the grub line so that it doesnt show up in the bios and windows recovery mode. but i dont know how to remove the grub line. just the linux partition.
You can try this but take note that you're doing it at your own risk and I'm not responsible for any damage you may cause.
1. Run a cmd.exe process with administrator privileges
2. Run diskpart
3. Type: list disk then sel disk X where X is the drive your boot files reside on
4. Type list vol to see all partitions (volumes) on the disk (the EFI volume will be formatted in FAT, others will be NTFS)
5. Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)
6. For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter
7. Type exit to leave disk part
Now, you can't actually acces this drive through file explorer but you can browse it's content from the ‘Browse’ button from Task Manager -> ‘Run New Task’ . Not sure if it'll let you delete anything but then you can use this:
1. In the elevated cmd prompt, type: Z: and hit enter, where Z was the drive letter you created.
2 .Type dir to list directories on this mounted EFI partition
If you are in the right place, you should see a directory called EFI directory
3. Type cd EFI and then dir to list the child directories inside EFI
4. Type rmdir /S mint to delete the mint boot directory and repeat with all the distros
Do NOT touch those: 'Boot' and 'Microsoft'.
Try Grub2Win or other option like that.

Categories

Resources