openbmc / jsnbd

Apache License 2.0
5 stars 3 forks source link

Unable to Mount HDD ( HDISK / .ima / .img) Images, failed getting error "can't read superblock". #2

Closed tejas-patil20 closed 3 years ago

tejas-patil20 commented 4 years ago

Hi, Built the openbmc image and able to redirect the CD (.ISO) images successfully and also mounting on the Linux Ubuntu 16.04 Host. But in the same way if i try for HD (.IMG / .IMA) images then image will get redirected succesfully on Host, but will not get mounted. If I try to mount manually with mount /dev/sdc /mnt command then will get following error.

*mount /dev/sdc /mnt/* mount: /dev/sdc: can't read superblock**

And found the dmesg as below. *dmesg [2092553.865770] usb 1-4.4: new high-speed USB device number 57 using xhci_hcd [2092553.966341] usb 1-4.4: New USB device found, idVendor=1d6b, idProduct=0104 [2092553.966343] usb 1-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [2092553.966344] usb 1-4.4: Product: Virtual Media Device [2092553.966344] usb 1-4.4: Manufacturer: OpenBMC [2092553.972856] usb-storage 1-4.4:1.0: USB Mass Storage device detected [2092553.972914] scsi host6: usb-storage 1-4.4:1.0 [2092554.982629] scsi 6:0:0:0: Direct-Access Linux File-Stor Gadget 0502 PQ: 0 ANSI: 2 [2092554.983593] sd 6:0:0:0: Attached scsi generic sg2 type 0 [2092554.983685] sd 6:0:0:0: Power-on or device reset occurred [2092554.984072] sd 6:0:0:0: [sdc] 2880 1024-byte logical blocks: (2.95 MB/2.81 MiB) [2092554.984263] sd 6:0:0:0: [sdc] Write Protect is on [2092554.984267] sd 6:0:0:0: [sdc] Mode Sense: 0f 00 80 00 [2092554.984423] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [2092554.986310] sdc: [2092554.987714] sd 6:0:0:0: [sdc] Attached SCSI removable disk [2092576.652477] FAT-fs (sdc): logical sector size too small for device (logical sector size = 512)

Can anyone help me out for this one ????