Getting new hardware - can I just move the disk?

Ralf Mardorf kde.lists at yahoo.com
Tue Oct 12 12:12:47 UTC 2021


On Tue, 12 Oct 2021 13:10:45 +0200, Bo Berglund wrote:
>~$ df -h
>
>Why does not the USB on sdc show up here?

Hi,

read the output of "df --help" and "lsblk --help". It's displayed by
the output of "lsblk", because "lsblk" lists "devices". It isn''t shown
by the output of "df", since "df" shows "mounted items" only, but you
didn't mount your USB stick.

Below you can see the output I get, if a bootable and persistent
xubuntu-20.04.1-desktop-amd64.iso on an USB stick made with Ventoy is
mountend or unmounted.

The output of "ventoy" shows the link to the Ventoy homepage.

[rocketmouse at archlinux ~]$ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,MODEL /dev/sdg
NAME   FSTYPE  SIZE MOUNTPOINT     MODEL
sdg           29.3G                Ultra Line
├─sdg1 ext4     16G /mnt/v1.ventoy 
├─sdg2 vfat     32M /mnt/VTOYEFI   
└─sdg3 vfat   13.3G /mnt/V1FAT32   
[rocketmouse at archlinux ~]$ ls -hl /mnt/v1.ventoy
drwxr-xr-x root root 4.0 KB Wed Jan  6 13:36:00 2021  ventoy
.rw-r--r-- root root 1.6 GB Fri Jul 31 18:51:37 2020  xubuntu-20.04.1-desktop-amd64.iso
.rw-r--r-- root root 6.3 GB Thu Jan  7 16:43:13 2021  xubuntu-20.04.1-desktop-pers1.dat
[rocketmouse at archlinux ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             7.8G     0  7.8G   0% /dev
run             7.8G  1.5M  7.8G   1% /run
/dev/sdc1       793G  481G  272G  64% /
tmpfs           7.8G  192K  7.8G   1% /dev/shm
tmpfs           7.8G   12K  7.8G   1% /tmp
tmpfs           1.6G  100K  1.6G   1% /run/user/1000
/dev/sdg1        16G  7.9G  7.0G  54% /mnt/v1.ventoy
/dev/sdg2        32M   24M  8.3M  74% /mnt/VTOYEFI
/dev/sdg3        14G   24K   14G   1% /mnt/V1FAT32
[rocketmouse at archlinux ~]$ sudo umount /dev/sdg1; sudo umount /dev/sdg2; sudo umount /dev/sdg3
[sudo] password for rocketmouse: 
[rocketmouse at archlinux ~]$ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,MODEL /dev/sdg
NAME   FSTYPE  SIZE MOUNTPOINT MODEL
sdg           29.3G            Ultra Line
├─sdg1 ext4     16G            
├─sdg2 vfat     32M            
└─sdg3 vfat   13.3G            
[rocketmouse at archlinux ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             7.8G     0  7.8G   0% /dev
run             7.8G  1.5M  7.8G   1% /run
/dev/sdc1       793G  481G  272G  64% /
tmpfs           7.8G  192K  7.8G   1% /dev/shm
tmpfs           7.8G   12K  7.8G   1% /tmp
tmpfs           1.6G  100K  1.6G   1% /run/user/1000
[rocketmouse at archlinux ~]$ sudo ventoy -l /dev/sdg

**********************************************
      Ventoy: 1.0.53  x86_64
      longpanda admin at ventoy.net
      https://www.ventoy.net
**********************************************

Ventoy Version in Disk: 1.0.51
Disk Partition Style  : MBR
Secure Boot Support   : NO

[rocketmouse at archlinux ~]$ df --help | head -1; lsblk --help | head -3
Usage: df [OPTION]... [FILE]...

Usage:
 lsblk [options] [<device> ...]

Regards,
Ralf




More information about the ubuntu-users mailing list