Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using scientific linux 6 .
I needed to use a USB flash memory but I am unable to open the flash folder .
Also plugging the flash into the cpu doen't open a folder to start the flash .
How can I use the flash ?
Can some body help ?
thanks all
When you plug the flash drive into your system, check your system log to determine if the drive is seen by your system at all. You likely have to manually mount the file system to use it, and in order to do that you'll need to know what device it has been discovered as. Typically if you type "dmesg" you'll get a dump of your system log, so I do that before and after inserting a drive. This way I see the log before I put the drive in, and then I see the updates after I put the drive in. You should see that the drive was detected as something like /dev/sdb, /dev/sdc, /dev/sdd, one of those letters or a further along letter in the alphabet, but probably not sda. And then you mount that drive based on the information you know about the file system on that drive.
Yes, the trailing lines of dmesg show if usb drive has been detected and allotted which block device as said in above post. And if you have a partition in it then the block device for that partition would also be shown along.
Do you have a filesystem in it like FAT, NTFS, EXT2 and ...?
When you plug the flash drive into your system, check your system log to determine if the drive is seen by your system at all. You likely have to manually mount the file system to use it, and in order to do that you'll need to know what device it has been discovered as. Typically if you type "dmesg" you'll get a dump of your system log, so I do that before and after inserting a drive. This way I see the log before I put the drive in, and then I see the updates after I put the drive in. You should see that the drive was detected as something like /dev/sdb, /dev/sdc, /dev/sdd, one of those letters or a further along letter in the alphabet, but probably not sda. And then you mount that drive based on the information you know about the file system on that drive.
the difference between before and after is this part :
[
usb 3-8: new high speed USB device number 16 using xhci_hcd
usb 3-8: new USB device found, idvendor= 0951, id product=1613
usb 3-8: New USB device strings: Mfr=1. Product=2, SerialNumber=3
usb 3-8: ProductT101
usb 3-8: Manf .
usb 3-8: serial
usb 3-8: configuration #1 chosen from one choice
sci17: SCI emulation for USB Mass storage devices
usb-storage: device found at 16
usb-storage:waiting for device to settle before scanning
usb-storage: device scan complete
sci 17:0:0:0 Direct_Access
sd 17:0:0:0: Attached scsi generic sg4 type 0
sd 17:0:0:0: [sdd] 1566720 512-byte logical blocks
sd 17:0:0:0: [sdd] Write protect is off
sd 17:0:0:0: [sdd] Mode Sense : 23 00 00 00
sd 17:0:0:0: [sdd] Assuming drive cache : write through
sd 17:0:0:0: [sdd] Assuming drive cache : write through
sdd: sddl
sd 17:0:0:0: [sdd] Assuming drive cache : write through
sd 17:0:0:0: [sdd] Attached SCSI removable disk
]
So , What command line shall I write to mount the drive and be able to use the flash ?
Thanks for your help
Yes, the trailing lines of dmesg show if usb drive has been detected and allotted which block device as said in above post. And if you have a partition in it then the block device for that partition would also be shown along.
Do you have a filesystem in it like FAT, NTFS, EXT2 and ...?
How can I find the File system type ?
I attached the part added in the log file after inserting the drive .
What do you think I shall do then ?
thanks for your help
Each time the usb drive is plugged the block file may be different. In this case it is 'sdd' or '/dev/sdd'. If the device has a partition then it would be listed like 'sdd1' or 'sdd2' ...
Reasons if only 'sdd' and not 'sdd1' is no partition present or luks device or a LVM device or no valid data or other causes.
If it shows 'sdd1' then to mount you have to run:
Code:
mount /dev/sdd1 /mnt
Otherwise you have to partition with 'fdisk' or 'parted' or some other tool.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units= cylinders of 16065* 512
Sector size
I/O size (....
Disk identifier : 0x0eb40eb4
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units= cylinders of 16065* 512
Sector size
I/O size (....
Disk identifier : 0x0eb40eb4
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units= cylinders of 16065* 512
Sector size
I/O size (....
Disk identifier : 0x000a5077
Device Boot Start End Blocks Id Sys
/dev/sdc1 * 1 64 512000 83 linux
partition 1 doesn't end on cylinder boundary
/dev/sdc2 64 121602 976248832 8e linux LVM
Disk /dev/mapper/vg_master-lv_root: 53.7 GB
255 heads, 63 sectors/track, 6527 cylinders
Units= cylinders of 16065* 512
Sector size
I/O size (....
Disk identifier : 0x00000000
Disk /dev/mapper/vg_master-lv_swap: 16.9 GB
255 heads, 63 sectors/track, 6527 cylinders
Units= cylinders of 16065* 512
Sector size
I/O size (....
Disk identifier : 0x00000000
Disk /dev/md126: 1000.2 GB
2 heads, 4 sectors/track, 244187136 cylinders
Units= cylinders of 16065* 512
Sector size
I/O size (....
Disk identifier : 0x0eb40eb4
Disk /dev/mapper/vg_master-lv_home: 929.1 GB
255 heads, 63 sectors/track, 6527 cylinders
Units= cylinders of 16065* 512
Sector size
I/O size (....
Disk identifier : 0x00000000
Disk /dev/sde: 8021 MB
5 heads, 32 sectors/track, 97920 cylinders
Units= cylinders of 160* 512
Sector size
I/O size (....
Disk identifier : 0x00000000
Device Boot Start End Blocks Id Sys
/dev/sde1 * 51 97920 7829568 b W95 FAT32
Still can't know what commands to use to mount the usb ?
Can somebody help ?
thanks
Each time the usb drive is plugged the block file may be different. In this case it is 'sdd' or '/dev/sdd'. If the device has a partition then it would be listed like 'sdd1' or 'sdd2' ...
Reasons if only 'sdd' and not 'sdd1' is no partition present or luks device or a LVM device or no valid data or other causes.
If it shows 'sdd1' then to mount you have to run:
Code:
mount /dev/sdd1 /mnt
Otherwise you have to partition with 'fdisk' or 'parted' or some other tool.
And then make a filesystem on the partition/s.
I posted the output of using fdisk -l
Still can't recognize what is the name of my device ?
sorry for my misunderstanding and many thanks for your help
I would recommend you have a directory such as /mnt owned by root and then issue a mount command such as:
Code:
$ sudo mount -t vfat /dev/sdd1 /mnt
And this will stand to mount that disk under the /mnt directory. To later un-mount it you would issue something like:
Code:
$ sudo umount /mnt
well , I wrote the above command line ,
# mount -t vfat /dev/sdd1 /mnt
and then opened the /mnt directory but it was empty
how can I open the flash drive now ?
well , I wrote the above command line ,
# mount -t vfat /dev/sdd1 /mnt
and then opened the /mnt directory but it was empty
how can I open the flash drive now ?
After the point where you issued that command, you can then re-issue just "mount" and that will show you a list of what is mounted versus not. The presumption is that you'll see something similar to:
Code:
/dev/sdd1 on /mnt type vfat (bunch of other stuff)
If you do not, then the mount command did not succeed. If you do see that it is mounted on /mnt and when you perform an "ls" command there's nothing shown in /mnt, then it may be that the USB drive is empty. Do you know that there are any files on that USB drive? Note you can also use the "df" command to ascertain how much data is on a particular drive and partition:
Code:
df /dev/sdd
df /dev/sdd1
You can also use the "du" command to determine how large the information is on a given mounted drive:
Code:
du -S /dev/sdd1
If that shows as zero, then there are simply no files there. The first thing to do is verify that the mount succeeded. I'm assuming there was no error report after the mount command?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.