On 3/1/22 14:58, Samuel Sieb wrote:
On 3/1/22 05:05, Robert Moskowitz wrote:
Well, did not try that.  Put in another SD card that already has an image on it.  I can mount it and read it.  Unmount and take the device out of the SD slot, /dev/mmcblk0 still showing when I 'ls /dev' .

Are you able to read and write to an SD card that has a normal filesystem on it?

So I *THINK* I want to get the system to realize that there is NO /dev/mmcblk0 (normal situation) when the notebook's SD slot is empty.

It doesn't work like that.  The SD card reader is always there, so the device exists.  It's like how you always have /dev/sr0 even if you don't have a disc inserted.

I have nothing in the SD slot right now (oh, this is a Lenovol x140e).  'ls /dev/' does NOT list a mmcblk0.

I insert a mSD card in an SD adapter (don't have any full size SD cards handy) and messages show:

Mar  1 17:05:20 lx140e kernel: mmc0: cannot verify signal voltage switch
Mar  1 17:05:20 lx140e kernel: mmc0: new ultra high speed SDR50 SDHC card at address 0007
Mar  1 17:05:20 lx140e kernel: mmcblk0: mmc0:0007 SD8GB 7.42 GiB (ro)
Mar  1 17:05:20 lx140e kernel: mmcblk0: p1 p2 p3 p4

And lsblk shows:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 465.8G  0 disk
├─sda1        8:1    0     1G  0 part /boot
├─sda2        8:2    0    70G  0 part /
├─sda3        8:3    0    16G  0 part [SWAP]
├─sda4        8:4    0     1K  0 part
└─sda5        8:5    0 378.8G  0 part /home
mmcblk0     179:0    0   7.4G  1 disk
├─mmcblk0p1 179:1    0    29M  1 part
├─mmcblk0p2 179:2    0   488M  1 part
├─mmcblk0p3 179:3    0   488M  1 part
└─mmcblk0p4 179:4    0   2.8G  1 part
zram0       252:0    0     8G  0 disk [SWAP]

ls /dev/ lists mmcblk0 as well now.

Pull the SD and I see:

Mar  1 17:06:54 lx140e kernel: mmc0: card 0007 removed
Mar  1 17:06:54 lx140e systemd-homed[727]: block device /sys/devices/pci0000:00/0000:00:02.5/0000:04:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0007/block/mmcblk0/mmcblk0p2 has been removed. Mar  1 17:06:55 lx140e systemd-homed[727]: block device /sys/devices/pci0000:00/0000:00:02.5/0000:04:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0007/block/mmcblk0/mmcblk0p1 has been removed. Mar  1 17:06:55 lx140e systemd-homed[727]: block device /sys/devices/pci0000:00/0000:00:02.5/0000:04:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0007/block/mmcblk0/mmcblk0p4 has been removed. Mar  1 17:06:55 lx140e systemd-homed[727]: block device /sys/devices/pci0000:00/0000:00:02.5/0000:04:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0007/block/mmcblk0/mmcblk0p3 has been removed. Mar  1 17:06:55 lx140e systemd-homed[727]: block device /sys/devices/pci0000:00/0000:00:02.5/0000:04:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0007/block/mmcblk0 has been removed.


_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to