Comments (10)
I want to write a string (the value of a variable) into an existing file (NTFS or FAT).
from grub.
now you can use (proc) as /dev/zero.
disk size is 2TB (UINT32_MAX).
from grub.
Thanks!
When booting WinPE ISOs that have been made using WinBuilder, they look for an INI file in the root of all drives.
I have added some code to my map.sh and now Gandalf WinPE boots correctly using map (no yellow triangle on Desktop and apps work).
My first partition has all three .ini files
WinBuilder INI files.zip
loopback -d loop;
loopback loop "${grubfm_file}";
set installiso="${grubfm_path}";
tr --set=installiso "/" "\\";
set "iso1=[IsoInfo]\x0d\x0aIsoName=${installiso}\x0d\x0a"
if [ -f (loop)/CdUsb.Y -o -f (loop)/Win10PE.cd -o -f (loop)/Win8PE.cd ] ; then
echo Info: WinBuilder ISO detected!
if [ -f (hd0,msdos1)/Win10PESE.ini ] ; then dd --if (proc) --of=(hd0,msdos1)/Win10PESE.ini ; dd -s "$iso1" --of=(hd0,msdos1)/Win10PESE.ini ; fi
if [ -f (hd0,msdos1)/Win8PESE.ini ] ; then dd --if (proc) --of=(hd0,msdos1)/Win8PESE.ini ; dd -s "$iso1" --of=(hd0,msdos1)/Win8PESE.ini ; fi
if [ -f (hd0,msdos1)/Win7PESE.ini ] ; then dd --if (proc) --of=(hd0,msdos1)/Win7PESE.ini ; dd -s "$iso1" --of=(hd0,msdos1)/Win7PESE.ini ; fi
#grubfm_hex (hd0,msdos1)/Win7PESE.ini
unset iso1
fi
from grub.
P.S. dd seems very slow when using (proc) ???
from grub.
P.S. dd seems very slow when using (proc) ???
If you are trying to dd a file, grub2 will convert file to blocklists.
from grub.
yes, as in example code above.
from grub.
If (hd0,1) is fat, why not use fatfs create file and write?
set installiso="${grubfm_path}";
tr --set=installiso "/" "\\";
set "iso1=[IsoInfo]\x0d\x0aIsoName=${installiso}\x0d\x0a";
mount (hd0,1) 1;
touch 1:/Win10PESE.ini;
write_file 1:/Win10PESE.ini "${iso1}";
from grub.
Because the files are already in partition 1 as part of easy2boot. agFM is an optional extra.
from grub.
As long as (hd0,1) is FAT, you could use write_file
rather than dd
.
from grub.
It is usually NTFS
from grub.
Related Issues (20)
- 截屏模块 和 某些命令 的问题。 HOT 12
- Request: Disable menu 'c' and 'e' hotkeys HOT 6
- put nointegritychecks to OSLOADER HOT 1
- add an option to load bootvhd.dll (i386-pc/ntboot)
- Load SeaBIOS/TianoCore HOT 1
- Question: dd status=progress? HOT 8
- getkey key codes for Ctrl+Shift+F HOT 20
- 为什么ntboot不支持光盘? HOT 1
- Ignore floppies
- 在Ubuntu18.04 x86_64中编译aarch64 HOT 1
- menuentry --help-msg buggy HOT 10
- Query: Are variables in a theme .txt file supported? HOT 2
- NTBOOT 没有启动动画 HOT 8
- wimboot BIOS fails for WinPE WIMs larger than 890MB HOT 10
- how to build HOT 1
- set fallback=1 it not work? HOT 1
- GRUB does not create menu entries
- Request adding support for zstd compressed squashfs files.
- What changes can be upstreamed? HOT 13
- Wimboot.mod in UEFI mode loads only first image in wim file when index is not 1. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grub.