# Regular Meeting (2021.12.13)
* Issue about make root image
* root-permission is necessary
* I prefet to buiild project *without root-permission* (as far as I know, most open-src also does this)
* Fix makefile
* [last week](https://hackmd.io/@BelleII-CDC-Trig-NTU-DeWei/SJDpIj2dF) problem has been fixed and verified
* Focus on root-image issue to fix makefile (this week start)
## Issue about make root image
[Refer to here](https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842473/Build+and+Modify+a+Rootfs?responseToken=048b5f851ea0ac9863fc345d045e25f4b&view=blog)
### Regular step to create image(SD)
```bash=
# Create a `block`
dd if=/dev/zero of=ramdisk.image bs=1024 count=8192
# Define(Create) the filesystem from the `block`
mke2fs -F ramdisk.image -L "ramdisk" -b 1024 -m 0
tune2fs ramdisk.image -i 0
chmod a+rwx ramdisk.image
#Mount ramdisk and copy content of busybox to ramdisk
mount -f ramdisk.image /mnt
cp ./busybox_out/* /mnt
unmount /mnt
```
and
```bash=
> $ mount ./ramdisk.image /dev/shm/test
mount: /dev/shm/test: mount failed: Operation not permitted.
```
for handle this issue:
* User-mode(non-root-permission) mount
* Unfortunately, can't (since security issue)
* Divide
Similar example: (linux-kernel..etc. GNU/Unix project)
```bash=
# can build with user mode
make
# request root permission
make install
# install is independent commend,
# when execute make install, OS will reply:
# > please enter root password
```
###### tags: `Regular Meeting` `DeWei`