LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help mounting a rom usb drive (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-mounting-a-rom-usb-drive-4175718193/)

hananelroe 10-27-2022 05:44 AM

need help mounting a rom usb drive
 
I have a read-only usb drive that contains a software key, it's listed as sr0:
Code:

$ lsblk
NAME          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINTS
sda            8:0    0 223.6G  0 disk 
├─sda1          8:1    0  256M  0 part  /media/hananelroe/305955D3775E8F4B
├─sda2          8:2    0    2G  0 part 
└─sda3          8:3    0 221.3G  0 part  /mnt/lfs
sr0            11:0    1  15.2G  0 rom 
nvme0n1      259:0    0 476.9G  0 disk 
├─nvme0n1p1  259:1    0  498M  0 part  /boot/efi
├─nvme0n1p2  259:2    0    4G  0 part  /recovery
├─nvme0n1p3  259:3    0 468.4G  0 part  /
└─nvme0n1p4  259:4    0    4G  0 part 
  └─cryptswap 253:0    0    4G  0 crypt [SWAP]

when I try to:
Code:

sudo mount /dev/sr0 Desktop/respona/
it responds with:
Code:

mount: /home/hananelroe/Desktop/respona: wrong fs type, bad option, bad superblock on /dev/sr0, missing codepage or helper program, or other error.
does anyone know what can I do to mount it?

TenTenths 10-27-2022 05:53 AM

Try finding out what the file system is and specifying that with mount -t

hananelroe 10-27-2022 06:26 AM

Quote:

Originally Posted by TenTenths (Post 6388929)
Try finding out what the file system is and specifying that with mount -t

I looked at it on a windows machine and it told me the USB has CDFS file system. but when I try to mount with it it says:
Code:

mount: /home/hananelroe/Desktop/respona: unknown filesystem type 'CDFS'.

TenTenths 10-27-2022 06:52 AM

On your windows machine does it show up as a USB drive or does it show up as a CD-ROM? Can you copy the files you need from it via Windows?

hananelroe 10-27-2022 07:01 AM

SOLUTION:

after some googling, I found this command:
Code:

sudo mount -t iso9660 -o ro /dev/sr0 /media/data/cd
it did the job


All times are GMT -5. The time now is 05:09 PM.