USB pen drive not mounting. /dev/sda1 not present!
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
USB pen drive not mounting. /dev/sda1 not present!
I am trying to mount my pen drive however, I have run into a problem - I don't have a /dev/sda1. It was there (I mounted my girlfirend's pen drive about 3 weeks ago using it), but now it isn't. I guess I could have messed something up when I recomplied.
Important things loaded as modules, I have are:
In fstab, I have:
/dev/sda1 /mnt/usb auto noauto,user 0 0
When I try mounting any of the sr or sg devices, I'm told that it isn't a block device! Same goes for the /dev/scsi stuff. /dev/sr0 is my writable CD drive.
root@archimedes hamish # mount -t vfat /dev/sg1 /mnt/usb/
mount: /dev/sg1 is not a block device
Here is my messages when I insert the pen drive:
root@archimedes hamish # tail /var/log/messages
Jul 1 09:58:51 archimedes [<c011ead7>] sys_gettimeofday+0x27/0xb0
Jul 1 09:58:51 archimedes [<c010917b>] syscall_call+0x7/0xb
Jul 1 09:58:51 archimedes
Jul 1 09:58:51 archimedes usb 1-1: new full speed USB device using address 5
Jul 1 09:58:51 archimedes scsi4 : SCSI emulation for USB Mass Storage devices
Jul 1 09:58:51 archimedes Vendor: Kingston Model: DataTraveler 2.0 Rev: 4.10
Jul 1 09:58:51 archimedes Type: Direct-Access ANSI SCSI revision: 02
Jul 1 09:58:51 archimedes Attached scsi generic sg1 at scsi4, channel 0, id 0, lun 0, type 0
Jul 1 09:58:51 archimedes WARNING: USB Mass Storage data integrity not assured
Jul 1 09:58:51 archimedes USB Mass Storage device found at 5
This says that /dev/sg1 is the device! But I'm told that it isn't a block device!
I have tested the drive in another linux and it worked fine.
I know this sounds weird, but try mounting it as /dev/sda, if you do not have an sda drive. On my other computer, I DO have an sda drive, and in that case the usb key should be mounted as sdb. More keys would be mounted as sdc, sdd, etc. This is probably because of the way SCSI works.
Thanks for the help, however, the problem is that I don't actually have a /dev/sda file at all! This is really bugging me.
I have the same problem when I started using my cd-writer. That is, unless the modules doe scsi emulation wwere loaded, the /dev/cdrom device didn't exist. I feel that this is the same problem I'm having here! However, I can't figure it out. All the modules are loaded!
USB memory keys are mass storage devices, so they don't come with partitions. This means when a USB key is mounted in Linux, it's mounted as a scsi device under /dev/sda, /dev/sdb etc. The actual device number depends on how your particular system is configured.
I've only been able to mount USB keys as /dev/sdb on my laptop. I've never been able to specify a partition (e.g. /dev/sdb1), but that makes sense since the USB key doesn't have any partitions on it.
Check out this How-To: http://www.systemsaligned.com/learn/howto/hwtusbkey. The How-To should help you to mount your USB memory key using autofs (instead of defining it in the fstab file, where removable devices really shouldn't be anyway). There are also useful links at the end of the How-To.
Distribution: Several (Gentoo, Red Hat/Fedora, HP-UX, Helix)
Originally Posted by joshisarang
anybody help to how can i mount pendrive in fedora 10
These days it is fairly trivial usually. Most people use KDE or Gnome Desktops, and the file browsing programs (konqueror and nautilus?) have some mechanism for seeing the available USB storage devices, mounting and unmounting them, etc. You can still mount them from the command line (as root) and they would be /dev/sdXn (where X is some letter like a,b,c,d and n is the partition, or maybe if it has no partition table the device /dev/sdX could be mounted).
Now if your pendrive has NTFS on it (do they ever have that?) then you probably need to make sure you have FUSE configured in the kernel and you have ntfs-3g (I think that's the name) installed in order to be able to mount it and have any useful write access. If it has FAT32 you will need to have the software package for vfat installed. (idk what it's called in FC)
If you're looking to put your root filesystem on such a drive, you usually need to create a partition table and set up an initrd image and all that, and I'm not sure how you do that on FC any more (maybe mkinitrd, but check the documentation for FC to be sure about how). You're probably not trying to do this anyway, but I figured I'd throw the info in anyway since, like I said, the mounting of a pendrive is usually really simple with HAL and everything being so commonly used.
Anyway, you shouldn't have any trouble as long as the pendrive is recognized. Most of them are picked up by the generic usb-storage driver, and most cameras and other devices like that are too. If you can't find the device listed in the file browser with your other removable media stuff, take a look at the output of the dmesg command right after you plug it in, and it should give you some clue as to what's going on.