sebanc / brunch

Boot ChromeOS on x86_64 PC - Supports Intel CPU/GPU from 8th gen or AMD Ryzen
GNU General Public License v3.0
3.69k stars 393 forks source link

How to set the size in MB ? #1507

Closed 1457384613gh closed 2 years ago

1457384613gh commented 2 years ago

sudo bash chromeos-install.sh -src chromeos_filename.bin -dst ~/tmpmount/chromeos.img -s size The size is in GB. If the size I want to set is 61,036 MB=59.60547 GB , how could I input?

darethehair commented 2 years ago

Not answering your question directly, but in my case I typically just want to 'fill' a partition, so rather than trying to figure out what size this is, I just try values that are too large/high. The utility will tell you this, and then I just keep trying -- using 1gb smaller each time -- until it works/fits.

tejasraman commented 2 years ago

Type 59.60547

1457384613gh commented 2 years ago

How about MB?

If GB,some number is too long to type, even is recurring decimal.

Screenshot_2022-04-19-10-07-19-816_com.miui.calculator.jpg

tejasraman commented 2 years ago

I could try to modify the script… On Apr 18, 2022, 8:10 PM -0600, Chauncy♋ @.***>, wrote:

How about MB? If GB,some number is too long to type, even is recurring decimal. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

tejasraman commented 2 years ago

or not

Tejas Raman (he/him/his)

Contact me at @. @./0?redirect=mailto%3Atejasraman%40icloud.com&recipient=cmVwbHkrQVhEWUtEQ0laQzM0S1NPREhFMkRKUk9BTk5HSlRFVkJOSEhFTzc1NUZRQHJlcGx5LmdpdGh1Yi5jb20%3D) My website: tejasraman.36bit.com @.***/1?redirect=https%3A%2F%2Ftejasraman.36bit.com&recipient=cmVwbHkrQVhEWUtEQ0laQzM0S1NPREhFMkRKUk9BTk5HSlRFVkJOSEhFTzc1NUZRQHJlcGx5LmdpdGh1Yi5jb20%3D)

On Apr 19 2022, at 7:18 am, Tejas Raman @.***> wrote:

I could try to modify the script…

On Apr 18, 2022, 8:10 PM -0600, Chauncy♋ @.***>, wrote:

How about MB? If GB,some number is too long to type, even is recurring decimal.

— Reply to this email directly, view it on GitHub @./2?redirect=https%3A%2F%2Fgithub.com%2Fsebanc%2Fbrunch%2Fissues%2F1507%23issuecomment-1101922354&recipient=cmVwbHkrQVhEWUtEQ0laQzM0S1NPREhFMkRKUk9BTk5HSlRFVkJOSEhFTzc1NUZRQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe @./3?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXDYKDAIZZTSFSEGEXXUWVTVFYIZTANCNFSM5TCK6N7A&recipient=cmVwbHkrQVhEWUtEQ0laQzM0S1NPREhFMkRKUk9BTk5HSlRFVkJOSEhFTzc1NUZRQHJlcGx5LmdpdGh1Yi5jb20%3D). You are receiving this because you commented.

1457384613gh commented 2 years ago

What?

tejasraman commented 2 years ago

The script takes GB directly, so there is no workaround to this. Setting the partition size is the best way I can think of because about 1.2GB of space is taken by Brunch system files

Set the partition size to 59.60547 and the brunch size to 49 (for system partitions)

1457384613gh commented 2 years ago

But the size of the partition is 122,070 MiB≈128 GB. I want a chromeos.img of around 64 GB≈61,034 MiB, and the remain is 61,036 MiB≈64GB.

So I should sudo bash … 61,034 MiB

1457384613gh commented 2 years ago

Just only MiB, could you? Type a number without unit is of MiB. If users type a number with $GiB following, it will ×1024 automatically.

$GiB GiB='×1024'

Make sudo bash … 64$GiB=sudo bash … 65536

Could you?

tejasraman commented 2 years ago

What is the remaining for? (is it for chromeOS?)

1457384613gh commented 2 years ago

What? The link for you is following. https://github.com/sebanc/brunch/issues/1507

tejasraman commented 2 years ago

What?

I was using email to respond

1457384613gh commented 2 years ago

What is the remaining for? (is it for chromeOS?)

For installing Android x86_64 with gearlock and MagiskSU.

Apks needing SU and several kinds of modules could be installed in it.

tejasraman commented 2 years ago

I've used Magisk before, believe me.

Make 2 partitions. This is an answer.

1457384613gh commented 2 years ago

I have another idea with inspiration from Android x86_64.

Dual boot

Don't re-size the img file when installing ChromeOS with brunch.

Just turn the bin file into img file and rename without re-sizing.

Make a new folder named state following the x.img file and x-grub.txt file.

Edit grub and so on to mount the folder named state in place of the last partition named state into img disk.

If so, ChromeOS could make full use of all the space of the ext4 partition.

ext4: /xxx/x.img ext4: /xxx/x-grub.txt ext4: /xxx/state (a folder) mount /xxx/state in place of stage partition into img disk.

tejasraman commented 2 years ago

No... .bin does not = .img. Brunch patches it to work too You should try Bliss OS , not Android x86

1457384613gh commented 2 years ago

OK,patch without re-sizing.

I want to mount a folder as stage out of img disk.

Would you?

tejasraman commented 2 years ago

The thing is, in Brunch dualboot, no system partitions are made - they are all inside the IMG file. It would be best to leave the .60547 GB unused and just create your partition with the 59.60547 and the img with 59 GB.

Set up the partition, and then remove all the reserved space so the IMG will fit: Use sudo tune2fs -m 0 /dev/sdXY on Linux(I know you have Linux from #1438 - thanks for using EXT4 and not NTFS now)to free up reserved space before installing the img to the partition.

tejasraman commented 2 years ago

The last version of android-x86 is 9.0. Bliss OS has android 11 and 12 already.

1457384613gh commented 2 years ago

I'm sorry but how about Downloads?

ext4: /xxx/x.img /xxx/x-grub.txt /xxx/Downloads (a folder)

Mount /xxx/Downloads as Downloads into img.

Or link Downloads to Downloads.

tejasraman commented 2 years ago

The img contains all the partitions like the custom ROOTC and system reserved - you can't just create some weird custom IMG file with only the plain recovery image, as that needs files extracted and put in the right places.

1457384613gh commented 2 years ago

OK, I get it. How about f2fs? It's faster friendlier to flash than ext4. Could img disk be put into f2fs and then be booted into f2fs? But stage partition into img is ext4. Like patch, like ROOT-C to be put in place of ROOT-C, how about stage partition as f2fs in place of stage partition as ext4 in img disk?

Would you put stage partition as f2fs into img disk as a patch?

tejasraman commented 2 years ago

You could copy the img to an f2fs partition (or try), as the grub entry has no partition specified. Do you have an ssd though? F2fs isn't much use if not

tejasraman commented 2 years ago

There's no guarantee it will work

1457384613gh commented 2 years ago

Thank you very much for your early reply and how earnest you are!

tejasraman commented 2 years ago

Thanks! (you said that in the volteer r95-6-7 post too)

1457384613gh commented 2 years ago

What do you thank me for? Just a bug around NTFS.

I think that I can help you less than you can help me.

You're making me feel at home.

tejasraman commented 2 years ago

Thanks...

tejasraman commented 2 years ago

Did it work? Did you manage to get chromeOS installed?

1457384613gh commented 2 years ago

I haven't try, yet. I just have a 75GB chromeos.img into ext4 for stable use.

tejasraman commented 2 years ago

Ok... you have approx. 53 GB for the Bliss OS/android-x86...

tejasraman commented 2 years ago

Ok... I love the concept of using a jpg file. Would this open in something other than office 2021?

tejasraman commented 2 years ago

FYI I have WPS and Office365 for Mac

tejasraman commented 2 years ago

How many OSes do you have? I see opencore, fedora, brunch, windows 11, some misc. ventoy based USB, and maybe more?

1457384613gh commented 2 years ago

FYI I have WPS and Office365 for Mac

Maybe,but I haven't try. I cannot promise the resolution of the banner exported is right. Office 365 could be tried. I will make BannerEditor.psd for Photoshop to edit, because many users using Mac have Adobe Zii.

tejasraman commented 2 years ago

I mean how many do you have installed. Did you fix your chrome problem? On Apr 21, 2022, 8:28 PM -0600, Chauncy♋ @.***>, wrote:

I haven't counted. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

1457384613gh commented 2 years ago

I‘m sorry but they are only icons. All I have installed is a few. image

Brunch works very well image

tejasraman commented 2 years ago

Great... did android x86/bliss is work?

1457384613gh commented 2 years ago

Great... did android x86/bliss is work?

Yeah, they can work well, too. If bliss, the folder named android containing grubx64.efi of bliss should be renamed blissos for its icon. So should prime os, Phoenix OS, DarkMatter.

tejasraman commented 2 years ago

Did they work for you? Remember the original issue? On Apr 21, 2022, 9:23 PM -0600, Chauncy♋ @.***>, wrote:

Great... did android x86/bliss is work? Yeah, they can work well, too. If bliss, the folder containing grubx64.efi of bliss should be renamed blissos for its icon. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

1457384613gh commented 2 years ago

Did they work for you? Remember the original issue?

I haven't tried to type a decimal, yet.

1457384613gh commented 2 years ago

But I still think MiB is better than GiB, which is called GB though not real GB. image

tejasraman commented 2 years ago

Don’t grow a decimal, type a whole number = to the size of the partition. Now, is the issue resolved? I will try your refind theme at some point - my computer relies on refind as I have 4 OSes (Pop, Win11, Arch, ChromeOS) and I don’t like grub. On Apr 21, 2022, 9:27 PM -0600, Chauncy♋ @.***>, wrote:

Did they work for you? Remember the original issue? I haven't tried to type a decimal. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

tejasraman commented 2 years ago

GB = gigabyte GiB = gibibyte

I 1 GB = 0.93 GiB On Apr 21, 2022, 9:31 PM -0600, Chauncy♋ @.***>, wrote:

But I still think MiB is better than GiB, which called GB though. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

1457384613gh commented 2 years ago

OK, thank you for your coming experience. And what I really want is to make a chromeos.img with size of real GB not GiB, so I want to use MiB to turn GiB into around GB. If sudo bash ... 75, I get a chromeos.img of 75GiB not 75GB.

tejasraman commented 2 years ago

69 GiB = 75 GB (approx) On Apr 21, 2022, 9:42 PM -0600, Chauncy♋ @.***>, wrote:

Ok, thank you for your coming experience. And what I really want is make a chromeos.img with size of real GB not GiB, so I want to use MiB to turn GiB into around GB. If sudo bash ... 75, I get a chromeos.img of 75GiB not 75GB. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

tejasraman commented 2 years ago
  1. Agency FB isn't preinststalled on anything
  2. French Script MT is only installed when Office 365 Windows is installed
tejasraman commented 2 years ago

Try 69 gib for brunch

1457384613gh commented 2 years ago

Select fonts whichever you would like.

Thank you for the number though the margin of error is more than 0.25%.

tejasraman commented 2 years ago

Its ok to have some space On Apr 22, 2022, 7:35 AM -0600, Chauncy♋ @.***>, wrote:

Select fonts whichever you would like. Thank you for the number though the margin of error is more than 0.25%. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>