Find the answer to your Linux question:
Results 1 to 5 of 5
I have tried to mount usb flash disk that already formated in windows files system, with this command "mount /dev/sda1 /mnt/usbflash vfat noauto,users,rw,umask=0 0 0" but I can't access the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    1

    how to mount usb flash disk ?


    I have tried to mount usb flash disk that already formated in windows files system, with this command
    "mount /dev/sda1 /mnt/usbflash vfat noauto,users,rw,umask=0 0 0"
    but I can't access the mounting device, the response is
    " can't mount - not valid block device"
    Can anybody help me ?

    Thanks
    Dodi

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,744
    Hi and Welcome !

    Plug-in USB disk and execute this
    Code:
    su -
    fdisk -l
    Check which device name ( /dev/sda1 or b1 ) has been assigned to USB disk.
    Use that name in mount command.
    Code:
    mount -t vfat /dev/sdxy /mnt/usbflash -o defaults,umask=0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    14
    Hi!

    I have the same problem, but your solution doesn't work for me. Here's what I got when I tried to mount it:
    Code:
    [root@localhost ~]# mkdir /mnt/usbflash
    [root@localhost ~]# mount -t vfat /dev/sdb /mnt/usbflash -o defaults,umask=0
    mount: /dev/sdb is not a valid block device
    [root@localhost ~]#
    I wrote "sdb" because that's what I got the first time when I tried to mount it while in GUI. When I "fdisk", I don't even get sdb:
    Code:
    [root@localhost ~]# fdisk -l
    
    Disk /dev/sda: 16.1 GB, 16106127360 bytes
    255 heads, 63 sectors/track, 1958 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          13      104391   83  Linux
    /dev/sda2              14        1958    15623212+  8e  Linux LVM
    
    Disk /dev/dm-0: 15.3 GB, 15334375424 bytes
    255 heads, 63 sectors/track, 1864 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
    Disk /dev/dm-0 doesn't contain a valid partition table
    
    Disk /dev/dm-1: 603 MB, 603979776 bytes
    255 heads, 63 sectors/track, 73 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
    Disk /dev/dm-1 doesn't contain a valid partition table
    [root@localhost ~]#
    Here's something else I've read on some topic which may come handy for anyone who can help me:
    Code:
    [root@localhost archie.leach]# tail -s 3 -f /var/log/messages
    Jan 29 12:00:24 localhost kernel: sd 4:0:0:1: [sdb] Attached SCSI removable disk
    Jan 29 12:00:24 localhost kernel: sd 4:0:0:1: Attached scsi generic sg4 type 0
    Jan 29 12:00:24 localhost kernel: usb 2-1: reset high speed USB device using ehci_hcd and address 3
    Jan 29 12:00:55 localhost kernel: usb 2-1: reset high speed USB device using ehci_hcd and address 3
    Jan 29 12:01:32 localhost last message repeated 4 times
    Jan 29 12:01:32 localhost kernel: sr 4:0:0:0: scsi: Device offlined - not ready after error recovery
    Jan 29 12:01:32 localhost kernel: sr 4:0:0:0: rejecting I/O to offline device
    Jan 29 12:02:02 localhost kernel: usb 2-1: reset high speed USB device using ehci_hcd and address 3
    Jan 29 12:02:40 localhost last message repeated 4 times
    Jan 29 12:02:40 localhost kernel: sd 4:0:0:1: scsi: Device offlined - not ready after error recovery
    I run Fedora 7 on Virtual Machine Workstation 6.
    If anyone can help, thanx!

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2007
    Posts
    39
    Quote Originally Posted by mottif View Post
    I have tried to mount usb flash disk that already formated in windows files system, with this command
    "mount /dev/sda1 /mnt/usbflash vfat noauto,users,rw,umask=0 0 0"
    but I can't access the mounting device, the response is
    " can't mount - not valid block device"
    Can anybody help me ?

    Thanks
    Dodi
    I have a USB/firewire portable hard disk that I was trying to grab some files from, and my install of FC8 wouldn't see the drive...or allow me to mount the drive. Drive has NTFS filesystem. What I had to do was plug it into my XP laptop and "safely remove" the hardware. Only after that was I able to access it as a USB drive and grab what I needed. Hope this helps.

  6. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    42
    Refer to log of the file /var/log/messages, it tells that your flash drive can't be detected well by your system. Maybe because of the partition on it on or something else

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •