cancel
Showing results for 
Search instead for 
Did you mean: 

mount flash disk

SOLVED
Go to solution
iamthestar
Advisor

mount flash disk

i once mount the usb disk, but i dont know what i did, now am not able to mount my usb flash disk with this command; mount /dev/sda1 /mnt/flash, its giving an error" /dev/sda1 is not a block device" , what could be the reason. thank you
6 REPLIES
Hein van den Heuvel
Honored Contributor

Re: mount flash disk

That's roughly how it should work.
What OS?
Maybe it became a different controler?
Was it formatted?
What does ls -l say for /dev/sda1 ?
Do you have the 'file' tool available? What does it report?

On my 'thin client' a CF card automaounted and showed as:

# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda2 60928 60928 0 100% /
/dev/hda3 54405 39098 15307 72% /mnt
/dev/hda1 1743 1571 172 90% /boot
:
/dev/sda1 62420 26568 35852 43% /mnt/usb1
# uname -a
Linux HP001185E221AE 2.4.25 #4 Fri Oct 14 14:06:49 UTC 2005 i686 unknown
# ls -l /dev/sda1
brw-rw---- 1 root disk 8, 1 Oct 12 19:51 /dev/sda1

Hein.
Slawomir Gora
Honored Contributor

Re: mount flash disk

Hi,
in some linux kernel usb devices are visible as /dev/uba device.
You need to look at your system log file after attaching usb device (use: tail -f /var/adm/messages or dmesg command) - there is always information about added system devices.

The second method is looking at output of command
"cat /proc/partitions" before and after adding usb device.
iamthestar
Advisor

Re: mount flash disk

OS is redhat 9,
i had mounted my usb disk few days before as /dev/sda1 , when i put ls -al i can see sda, sda1,.....
automount is enable.

when i type ls -l /dev/sda1 it says not a block device.

i will check the commands given by you guys and let you know, thanks for your responses
Andrew Cowan
Honored Contributor
Solution

Re: mount flash disk

Try running fdisk -l to discover what partitions and devices are being seen by the kernel. Next try to ls -l the device files to ensure they are correct.
Alan_152
Honored Contributor

Re: mount flash disk

newer versions of redhat and fedora include automounting for usb flash disks...
iamthestar
Advisor

Re: mount flash disk

Try running fdisk -l to discover what partitions and devices are being seen by the kernel. Next try to ls -l the device files to ensure they are correct.