Request for probing some devices' types
Hello,
In the next Slint installer in 'auto' mode I plan to format the root partitions with a f2fs file system for these drives types in addition to USB sticks:
I own neither eMMC nor USB adapter for SD cards, so you could help to find how to detect these configurations posting the output of this command: Code:
lsblk -pPo name,rm,rota,hotplug,tran,disc-gran,type,subsystems,size,vendor,model|grep 'TYPE="disk"' Thanks in advance, |
Hello,
Here’s the result for a micro-SD card in a USB card reader (“EMTEC USB2.0 23-in-1 CardReader”): Code:
NAME="/dev/sdc" RM="1" ROTA="1" HOTPLUG="1" TRAN="usb" DISC-GRAN="0B" TYPE="disk" SUBSYSTEMS="block:scsi:usb:pci" SIZE="7.5G" VENDOR="Generic " MODEL="USB_SD_Reader" Code:
NAME="/dev/mmcblk0" RM="0" ROTA="0" HOTPLUG="1" TRAN="" DISC-GRAN="4M" TYPE="disk" SUBSYSTEMS="block:mmc:mmc_host:platform:pci" SIZE="7.5G" VENDOR="" MODEL="" |
Here is the info for the SD card from my camera in a usb card reader -
Code:
|
Code:
NAME="/dev/sda" RM="0" ROTA="1" HOTPLUG="1" TRAN="usb" DISC-GRAN="0B" TYPE="disk" SUBSYSTEMS="block:scsi:usb:platform" SIZE="3.7T" VENDOR="WD " MODEL="Elements 25A3 " |
Code:
NAME="/dev/sda" RM="0" ROTA="1" HOTPLUG="0" TRAN="sata" DISC-GRAN="0B" TYPE="disk" SUBSYSTEMS="block:scsi:pci" SIZE="596.2G" VENDOR="ATA " MODEL="WDC WD6400AAKS-2" |
Code:
root@darkstar:~# lsblk -pPo name,rm,rota,hotplug,tran,disc-gran,type,subsystems,size,vendor,model|grep 'TYPE="disk"' The Slackware is installed in a 64GB Sandisk Ultra SD-card, which contains two partitions: the first is an UEFI ESP of 400MB and the second is a 59GB partition with F2FS filesystem and it hosts the system. The SD-card in its adapter slot is not recognized directly by the Slackware, even the BIOS and Windows 10 see it correctly, that's why I put it in a no-name USB 3.0 SD-card adapter, where gives speeds around 80MB write and 100MB/s read. The USB 3.0 adapter with its SD-card is recognized as: /dev/sda The eMMC have 64GB and contains the Windows 10 Pro shipped with the computer, and it is recognized as: /dev/mmcblk0 You can ignore the devices "/dev/zramX" as they are obviously ZRAM devices used for /tmp and swap. As a side note, I would like to mention that F2FS is not compatible with LILO, and how my "Linux on SD-card" is intended to work with both UEFI with no CSM and classic BIOS, I'we reused the UEFI ESP partition as kernel and initrd loaded by LILO, and also put there the boot map, with this config option in /etc/lilo.conf : Code:
map = /boot/efi/boot.map |
Code:
NAME="/dev/sdc" RM="1" ROTA="1" HOTPLUG="1" TRAN="usb" DISC-GRAN="0B" TYPE="disk" SUBSYSTEMS="block" SIZE="1,9G" VENDOR="Generic-" MODEL="SD/MMC " |
Thanks to all who responded so far.
First, a reminder of the fields names meanings, from "lsblk --help":
Will I advise users not to install an an USB stick will depend on tests I will make using an f2fs vs an ext4 file system for the root partition. If you made performance tests ext4 vs f2fs with an eMMC, please report your findings. [1] I am puzzled as USB stick have ROTA=1. It looks like this field come from /sys/devices/*/queue/rotational [2] I am puzzled that eMMC have HOTPLUG=1 [3] This answers the question: does the device supports discards (no if 0 else yes). This could be used to distinguish hard disks from SSD, but I plan to use ext4 for SSD anyway. [4] Part for partition is considered as a device type as disk. [5] It seems that a subsystem here means a bus listed in "ls /sys/bus" cf. this document, as for udev. Answers are still welcome, including comments on these assumptions and tentative conclusions. |
All times are GMT -5. The time now is 05:06 PM. |