(solved) dietpi-drive_manager Transfer RootFS not working in Odroid C2 Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
yandritos
Posts: 2
Joined: Mon Sep 13, 2021 6:22 pm

(solved) dietpi-drive_manager Transfer RootFS not working in Odroid C2

Post by yandritos »

Hi guys,

I am new on dietpi and this is the first time I write.
I am trying to have the OS and boot from my USB HDD thanks to this option "transfer RootFS" on my Odroid C2 but something is failing I assume in the script.

I am using the last version of DietPI:
-FILE: DietPi_OdroidC2-ARMv8-Buster.img
-DATE: Sun Jul 12 22:28:22 CEST 2020

Anytime I execute this option from the "dietpi-drive_manager" all ends with this status (no matter which USB drive I use, what partition mode "drive or partition"):

Code: Select all

DietPi-Drive_Manager ├───────────────────────────┐
│  - Command: sed -i s##root=UUID=24d16755-9c44-4541-b2ea-0fa717ad2bec#g       │
│ /boot/boot.ini                                                               │
│  - Exit code: 1                                                              │
│  - DietPi version: v7.5.2 (MichaIng/master) | HW_MODEL: 12 | HW_ARCH: 3 |    │
│ DISTRO: 5                                                                    │
│  - Image creator: DietPi Core Team                                           │
│  - Pre-image: Meveric                                                        │
│  - Error log:                                                                │
│ sed: -e expression #1, char 0: no previous regular expression
*Note, I always use ext4 which I think is mandatory. Does it ring a bell to someone?

Thanks in advance!


Full execution trace:

Code: Select all

dietpi-drive_manager
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p2 > /
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p1 > /boot
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/sda1 > /mnt/usb_1
[  OK  ] DietPi-Drive_Manager | mv .fstab /etc/fstab
[  OK  ] DietPi-Drive_Manager | systemctl daemon-reload
[  OK  ] DietPi-Drive_Manager | sync
dumpe2fs 1.44.5 (15-Dec-2018)
[  OK  ] DietPi-Drive_Manager | umount /mnt/usb_1
[  OK  ] DietPi-Drive_Manager | systemctl stop mnt-usb_1.automount
[  OK  ] DietPi-Drive_Manager | rmdir /mnt/usb_1
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p2 > /
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p1 > /boot
[ INFO ] DietPi-Drive_Manager |  - Detected unmounted drive: /dev/sda1
[  OK  ] DietPi-Drive_Manager | mv .fstab /etc/fstab
[  OK  ] DietPi-Drive_Manager | systemctl daemon-reload
[  OK  ] DietPi-Drive_Manager | sync
[ INFO ] DietPi-Drive_Manager | Writing zeros to partition /dev/sda1
[  OK  ] DietPi-Drive_Manager | dd if=/dev/zero of=/dev/sda1 bs=4K count=1337
[  OK  ] DietPi-Drive_Manager | mkfs.ext4 -F -m 0 /dev/sda1
resize2fs 1.44.5 (15-Dec-2018)
The filesystem is already 122096385 (4k) blocks long.  Nothing to do!

[  OK  ] DietPi-Drive_Manager | sync
[  OK  ] DietPi-Drive_Manager | Created ext4 filesystem: /dev/sda1
[  OK  ] DietPi-Drive_Manager | mkdir -p /mnt/24d16755-9c44-4541-b2ea-0fa717ad2bec
[  OK  ] DietPi-Drive_Manager | mount /dev/sda1 /mnt/24d16755-9c44-4541-b2ea-0fa717ad2bec
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p2 > /
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p1 > /boot
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/sda1 > /mnt/24d16755-9c44-4541-b2ea-0fa717ad2bec
[  OK  ] DietPi-Drive_Manager | mv .fstab /etc/fstab
[  OK  ] DietPi-Drive_Manager | systemctl daemon-reload
[  OK  ] DietPi-Drive_Manager | sync
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : plexmediaserver
[ INFO ] DietPi-Drive_Manager | Checking for required APT packages: rsync
[  OK  ] DietPi-Drive_Manager | All required APT packages are already installed.
[ SUB1 ] DietPi-Set_swapfile > Applying 0 /var/swap
[ INFO ] DietPi-Set_swapfile | Disabling and deleting all existing swap files
[  OK  ] DietPi-Set_swapfile | swapoff -a
[  OK  ] DietPi-Set_swapfile | Desired setting in /boot/dietpi.txt was already set: AUTO_SETUP_SWAPFILE_SIZE=0
[  OK  ] DietPi-Set_swapfile | Desired setting in /boot/dietpi.txt was already set: AUTO_SETUP_SWAPFILE_LOCATION=/var/swap
[ INFO ] DietPi-Set_swapfile | Setting /tmp tmpfs size: 863 MiB
[  OK  ] DietPi-Set_swapfile | mount -o remount /tmp
[  OK  ] DietPi-Drive_Manager | cp -a /etc/fstab /etc/fstab_new
[  OK  ] DietPi-Drive_Manager | sed -i \@[[:blank:]]/mnt/24d16755-9c44-4541-b2ea-0fa717ad2bec[[:blank:]]@d /etc/fstab_new
[  OK  ] DietPi-Drive_Manager | sed -i \@UUID=[^[:blank:]]*[[:blank:]]\+/[[:blank:]]@cUUID=24d16755-9c44-4541-b2ea-0fa717ad2bec / ext4 noatime,lazytime,rw 0 1 /etc/fstab_new
[  OK  ] DietPi-Drive_Manager | mkdir -p /tmp/tmp_rootfs
[  OK  ] DietPi-Drive_Manager | mount /dev/mmcblk0p2 /tmp/tmp_rootfs
[  OK  ] DietPi-Drive_Manager | rsync -aHv --delete /tmp/tmp_rootfs/ /mnt/24d16755-9c44-4541-b2ea-0fa717ad2bec/
[  OK  ] DietPi-Drive_Manager | mv /etc/fstab_new /mnt/24d16755-9c44-4541-b2ea-0fa717ad2bec/etc/fstab
[FAILED] DietPi-Drive_Manager | sed -i s##root=UUID=24d16755-9c44-4541-b2ea-0fa717ad2bec#g /boot/boot.ini
Last edited by yandritos on Mon Sep 13, 2021 10:19 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: dietpi-drive_manager Transfer RootFS not working in Odroid C2

Post by Joulinar »

Pls don't post the issue twice. Posting on our forum and on GitHub, will not speed up thinks. It will just block resources to manage 2 different platforms. Thx for understanding.

Related GitHub post https://github.com/MichaIng/DietPi/issues/4733

Pls continue on GitHub with this issue.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
yandritos
Posts: 2
Joined: Mon Sep 13, 2021 6:22 pm

Re: dietpi-drive_manager Transfer RootFS not working in Odroid C2

Post by yandritos »

Hi Joulinar,

You are fully right, sorry for the inconveniences. I first wrote this post and then I saw in the FAQ it was better to use github .
I just saw the answer in github, thanks for your help.

Have a nice day!
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: (solved) dietpi-drive_manager Transfer RootFS not working in Odroid C2

Post by Joulinar »

just for completeness, a fix will be provided on next release https://github.com/MichaIng/DietPi/issu ... -918504223
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply