Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I install a new dietpi on the old dietpi system? #6983

Closed
xczh opened this issue Mar 23, 2024 · 7 comments
Closed

Can I install a new dietpi on the old dietpi system? #6983

xczh opened this issue Mar 23, 2024 · 7 comments

Comments

@xczh
Copy link

xczh commented Mar 23, 2024

I am currently using the dietpi v6 system, which is too old to automatically update. I plan to install the v9 system, but I don't have an SD card writer. Currently, I'm able to access the existing dietpi v6 system through SSH. Can I use SSH to flash the v9 system image? For example, using dd.

Thanks a lot :)

@Joulinar
Copy link
Collaborator

Yes you can use dd to write the image

@xczh
Copy link
Author

xczh commented Mar 23, 2024

Yes you can use dd to write the image

Thank you for your reply 😄

Can you give an example? Will using dd on a running dietpi system cause malfunctions?

root@DietPi:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        59G  1.8G   55G   4% /
devtmpfs        455M     0  455M   0% /dev
tmpfs           488M     0  488M   0% /dev/shm
tmpfs           488M   13M  475M   3% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           488M     0  488M   0% /sys/fs/cgroup
tmpfs            50M     0   50M   0% /var/log
tmpfs           1.0G  4.0K  1.0G   1% /tmp
/dev/mmcblk0p1  253M   47M  206M  19% /boot

It seems that the SD card device is /dev/mmcblk0.

@Joulinar
Copy link
Collaborator

You can't write to the very same SD card. It would require a 2nd one or a USB pen stick if your system supports booting from USB.

@xczh
Copy link
Author

xczh commented Mar 23, 2024

Understood. I'm using Raspberry. There is no separate SD card reader left. It seems that we have come up with other ways.

@xczh xczh closed this as completed Mar 23, 2024
@Joulinar
Copy link
Collaborator

Theoretically we could try to update current system. Depending on RPi model, you could use USB stick

@MichaIng
Copy link
Owner

You can also run the dietpi-installer on a running DietPi system, which will end up in a fresh system will all data purged. But there is a branch you can still use to update. I'll provide you with the information in some minutes.

@MichaIng
Copy link
Owner

MichaIng commented Mar 23, 2024

See here: #6963 (comment)

Otherwise the installer: https://dietpi.com/docs/hardware/#script-execution
But it does not work on Buster anymore, in case your system is still Buster. In this case it would be also possible to use an older version of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants