Moving from sdb1 to sda1

How can I safely move data from sdb1 to sda1?

Can you be a little bit more specific on what you are trying to to achieve.

Move everything that is on sdb1 to sda1 currently empty and then format sdb1

Everything is on sdb1

means you solved it in meantime?

No how do I move it all over onto the new hard drive?

Well you could clone your drive using a tool like Gparted or you simply mount both drives using drive manager and copy all files using cp -p /old/loaction/* /new/location/

Yup…If I ever need to do a full drive to drive migration

I get a live CD called ventoy

copy the partitionmagic iso to it (along with any other iso I would like to boot)

Boot into the live cd, then ghost it over, this way both drives are not mounted, are not reading/writing anything (just make sure you do a fsck on the source drive to make sure there isn’t anything awry)

Safest way to move data without loss or corruption

Thank you and then how do I get dietpi to use that location instead as that is where dietpi files are stored.

still recommended way is to clone your drive. Once done, we could check on how to mount the drive correctly.

Both drives are already mounted in dietpi

but I guess you would need to clone the drives before hand as first step. Cloning will sure your data are consistent.

Anyway, let’s have a look to your drive configuration

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
cat /etc/fstab

Can I use move dietpi user data in drive manager?

does you have your userdata directory located on the disk only? or anything else? and pls try to answer my questions I raised before?

root@Burgess-Server:~# lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
sda               931.5G  0 disk
     ext4         931.5G  0 part /mnt/Inter 8e9950e7-3f22-4243-8f1f-71c27d72d799 a996e635-1af2-4b5a-85d8-256e7c2b958a
sdb                 2.7T  0 disk
     ext4           2.7T  0 part /mnt/WDExt 82fff9eb-410c-4a4c-8ab8-c93c3d5d8557 29fded8e-390f-474c-bf35-6000a3b88593
│                  29.8G  0 disk
│    vfat   boot    256M  0 part /boot      9730496b-01                          5DE4-665C
     ext4   rootfs
                   29.5G  0 part /          9730496b-02                          7295bbc3-bbc2-4267-9fa0-099e10ef5bf0

root@Burgess-Server:~# cat /etc/fstab
# You can use "dietpi-drive_manager" to setup mounts.
# NB: It overwrites and re-creates physical drive mount entries on use.

tmpfs /tmp tmpfs size=1938M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid,mode=1777

# MISC: ecryptfs, vboxsf (VirtualBox shared folder), gluster, bind mounts


PARTUUID=9730496b-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=9730496b-01 /boot vfat noatime,lazytime,rw 0 2
UUID=29fded8e-390f-474c-bf35-6000a3b88593 /mnt/WDExternal ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
UUID=a996e635-1af2-4b5a-85d8-256e7c2b958a /mnt/InternalSSD ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount

I’m guessing you’re storing dietpi user data only on the first disk correct? If yes, you should be able to use drive manager to move data over to the new disk.

Yes and is that where Apache files are also stored?

Not sure what you mean by Apache files. But web server root directory is /var/www/ and should be located on your SD card.

I thought that all files were in the hard drive?

Again, which files you are looking for?