Home > OS >  U disk mount and unloading problems in Linux ARM, the great god, please help resolve
U disk mount and unloading problems in Linux ARM, the great god, please help resolve

Time:11-05

Pull out U disk print information
/MNT/usbdisk # 2-1: usb disconnect usb device number 2
Usbdisk remove!

Insert U disk to print information
Usb storage - 2-1 to 1. 0: usb Mass storage device detected
SCSI host1: usb storage - 2-1 to 1. 0
SCSI 1:0:0:0: Direct - Access General UDisk PQ: 5.00 0 ANSI: 2
Sd 1:0:0:0: (sda) 15730688, 512 - byte logical blocks: (8.05 GB/7.50 GiB)
Sd 1:0:0:0: Attached SCSI generic sg0 type 0
Sd 1:0:0:0: (sda) Write Protect is off
Sd 1:0:0:0: (sda) No Caching mode page found
Sd 1:0:0:0: (sda) Assuming drive cache: write through
Sda:
Sd 1:0:0:0: (sda) Attached SCSI removable disk

But I again/MNT/U disk is mounted in the usbdisk failure;

Mdev. Add the code in the conf
# support U - Disk
Sd [a-z] [0-9] 0-0 draw 666 @/etc/hotplug/usb/udisk_insert
Sd [a-z] 0-0 at 666 $/etc/hotplug/usb/udisk_remove

The/etc/hotplug/usb/udisk_insert code in the

#!/bin/sh
Echo "usbdisk insert! \ n "& gt;/dev/console
If [-e "/dev/$MDEV"]. Then
The mkdir -p/MNT/usbdisk/$MDEV
# mount -o utf8=true/dev/$MDEV/MNT/usbdisk/$MDEV
Mount/dev/$MDEV/MNT/usbdisk/$MDEV
Fi
In the/etc/hotplug/usb/udisk_remove code
#!/bin/sh
Echo "usbdisk remove!">/dev/console
Umount - l/MNT/usbdisk/sd *
Rm - rf/MNT/usbdisk/sd *

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
In the/dev/sda sda1 file

But I again/MNT/U disk is mounted in the usbdisk failure; Didn't see sda1 file

Great god help where we see




CodePudding user response:

Manual can mount and discharge, not automatically

CodePudding user response:

If [-d "/dev/$MDEV"]. Then

Try - d

CodePudding user response:

Could be U disk file system is not compatible, under Linux, use fdisk, MKFS tool format/dev/sda1, try again
  • Related