New drive not mounted after reboot

I move my dietpi_userdata to new drive. I mount it in dietpi-drive-manage. Set move dietpi_userdata to that new drive. It move all my data and today morning when I wake up everything was OK. I reboot my miniPC and drive was not mounted. I rebot few times, disconnect two other usb drives but dietpi still cannot find that drive.

System:    Kernel: 5.10.0-19-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 Console: tty 0 
           Distro: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Mini-pc System: HP product: HP EliteDesk 800 G3 DM 65W v: N/A serial: <filter> 
           Mobo: HP model: 829A v: KBC Version 06.29 serial: <filter> UEFI [Legacy]: HP v: P21 Ver. 02.38 
           date: 04/21/2021 
CPU:       Info: Quad Core model: Intel Core i5-7500 bits: 64 type: MCP arch: Kaby Lake rev: 9 
           L2 cache: 6 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 27199 
           Speed: 3703 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 3703 2: 3756 3: 3782 4: 3701 
Graphics:  Device-1: Intel HD Graphics 630 vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 
           Display: server: 1.20.11 driver: loaded: i915 note: n/a (using device driver) tty: 110x30 
           Message: Advanced graphics data unavailable in console. Try -G --display 
Audio:     Device-1: Intel 200 Series PCH HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Sound Server: ALSA v: k5.10.0-19-amd64 
Network:   Device-1: Intel Ethernet I219-LM vendor: Hewlett-Packard driver: e1000e v: kernel port: efa0 
           bus ID: 00:1f.6 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           IF-ID-1: tailscale0 state: unknown speed: -1 duplex: full mac: N/A 
Drives:    Local Storage: total: 7.51 TiB used: 27.4 GiB (0.4%) 
           ID-1: /dev/sda vendor: SanDisk model: SD8SB8U-256G-1006 size: 238.47 GiB temp: 38 C 
           ID-2: /dev/sdb type: USB vendor: Seagate model: ST8000VX004-2M1101 size: 7.28 TiB 
Partition: ID-1: / size: 234.72 GiB used: 27.4 GiB (11.7%) fs: ext4 dev: /dev/sda1 
Swap:      ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) file: /var/swap 
Sensors:   System Temperatures: cpu: 44.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 132 Uptime: 1m Memory: 7.65 GiB used: 688.5 MiB (8.8%) Init: systemd runlevel: 5 
           Compilers: gcc: 10.2.1 Packages: 1142 Shell: Bash v: 5.1.4 inxi: 3.3.01 

When I connect that drive once again to my laptop and open gparted I see state unknown, like it will be not formated, without any partition.


can you share following three information

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
cat /etc/fstab
dmesg -l err,crit,alert,emerg

Hi, I have connected drive to my archlinux laptop because I think I will need to copy all data from dietpi-sync folder on second Seagate drive.

NAME        FSTYPE LABEL      SIZE RO TYPE MOUNTPOINT                                          PARTUUID                             UUID
sda                           5,5T  0 disk                                                                                          
└─sda1      ext4              5,5T  0 part /run/media/emi/53e894de-6174-4b2e-9258-3508270674a9 f4552d44-5283-416e-962c-df9c316e418c 53e894de-6174-4b2e-9258-3508270674a9
sdb                           7,3T  0 disk                                                                                          
zram0                         7,1G  0 disk [SWAP]                                                                                   
nvme0n1                     476,9G  0 disk                                                                                          
├─nvme0n1p1 vfat   NO_LABEL   300M  0 part /boot/efi                                           de42afa5-9046-a448-ae54-207cd4a9b0ed BB21-9F2B
├─nvme0n1p2 btrfs           467,8G  0 part /var/tmp                                            474ea985-dfbf-934e-a4a6-f6298796be55 417f187a-a42b-44a5-b6b3-c27517119ed0
└─nvme0n1p3 swap   swap       8,8G  0 part [SWAP]                                              5c77cc53-9d38-c749-92d6-8ef0e62a4016 8f7c97f0-2758-4001-95b0-57f15fb14228

That sda is my Seagate backup drive and that sdb is my new drive for dietpi_userdata.

I will connect now to my dietpi miniPC.

OK, now on dietpi:

dietpi@DietPi:~$ lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
sda                 238,5G  0 disk                                                 
└─sda1 ext4         238,5G  0 part /          0641d005-01                          2e9d8509-a765-48ba-ba71-4110f21ef219
sdb                   7,3T  0 disk  
dietpi@DietPi:~$ cat /etc/fstab 
# You can use "dietpi-drive_manager" to setup mounts.
# NB: It overwrites and re-creates physical drive mount entries on use.
// /mnt/samba cifs cred=/var/lib/dietpi/dietpi-drive_manager/mnt-samba.cred,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0770,dir_mode=0770,vers=2.0,nofail,noauto,x-systemd.automount
tmpfs /tmp tmpfs size=4940M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid,mode=1777
# MISC: ecryptfs, vboxsf, glusterfs, mergerfs, bind, Btrfs subvolume
/var/swap none swap sw
UUID=2e9d8509-a765-48ba-ba71-4110f21ef219 / ext4 noatime,lazytime,rw 0 1
dietpi@DietPi:~$ sudo dmesg -l err,crit,alert,emerg

sdb doesn’t seems to contain any disk/partition information. Looks like empty.

Yes, but it was OK. I don’t know how it’s possible because I format it and move all dietpi_userdata there.

  1. Can You tell me if I format that drive again and set dietpi_userdata. Then copy all folders from dietpi-sync?
  2. How to format that drive from dietpi? Or switch it to my laptop?


you can use drive manager to format HDD using ext4 and to move user data folder

which folder dietpi-sync is synchronizing?

I make partition and try dietpi-drive manager but it failed:

It’s repairing now:

Dietpi-sync is synchronizing dietpi_userdata.

@Joulinar I format and mount succesfully.
Now when I want in dietpi-drive-manager move dietpi_usedata there I see errors:

[ INFO ] DietPi-Set_userdata |  - From : 
[ INFO ] DietPi-Set_userdata |  - To   : /mnt/Skyhawk/dietpi_userdata
[ INFO ] DietPi-Set_userdata | Please wait...
[FAILED] DietPi-Set_userdata | Please provide a source () and target (/mnt/Skyhawk/dietpi_userdata) directory for input.
[FAILED] DietPi-Set_userdata | Exited with error

the drive has some corruption. You should try to get this fixed first before trying to move data.

Drive looks OK when I “check and repair”

Can You tell me how can I set dietpi_userdata there?

first things first.

format your drive using ext4, mount the drive somewhere, reboot your system and try to access the drive on CLI. If all this is working we could continue.

Yes, I do that now it looks everything works OK.
Just don’t have dietpi_userdata on system.

our preferred option is to use drive manager to move user data folder.

I know but now there’s no source and i have error.

you need the source drive mounted and working to move user data using drive manager.

On my source drive where I have dietpi_userdata before there’s nothing left. Just docker-data and empty mnt folders.

@Joulinar I connect that old drive but still cannot move dietpi_userdata because there’s no source? What can I do with that? Reinstall system or is there a way to set dietpi_userdata folder manually?

Ok, I mount in different name as I before mounting and now it looks like it see dietpi_userdata there:

lrwxrwxrwx  1 root   root     28 11-25 05:05 dietpi_userdata -> /mnt/skyhawk/dietpi_userdata
drwxrwxr-x  2 dietpi dietpi 4096 2020-08-06  ftp_client
drwxrwxr-x  2 dietpi dietpi 4096 2020-08-06  nfs_client
drwxrwx---  2 dietpi dietpi    0 11-13 20:37 samba
drwxrwxrwx 11 dietpi dietpi 4096 11-06 18:25 Seagate
drwxr-xr-x  3 root   root   4096 11-25 11:16 skyhawk
drwxr-xr-x  2 root   root   4096 09-15 19:26 syncthing
drwxr-xr-x  4 dietpi dietpi 4096 09-16 19:52 Toshiba

but there’s no folder on that skyhawk drive:

dietpi@DietPi:~$ ls /mnt/skyhawk/

How to copy data from backup drive [dietpi-sync - it syncs dietpi_userdata from old drive]?
Do I have to mkdir /mnt/skyhawk/dietpi_userdata or some symlink?

where is the original user data located? On which drive?

Can you share as well

ls -la /mnt