fdisk -l does not work

Discussion in 'HOWTO-Related Questions' started by johnt, Jul 25, 2009.

  1. johnt

    johnt New Member

    Hi folks,

    Novice Linux user here. I am a chem eng using Linux OS to run
    Fortran programs for molecular simulations. I have a fairly old distro of
    Red Hat. trying to find command for use of flash drive.
    To mount floppy I use:

    mount /mnt/floppy

    I do not know what /dev my flash drive would be.

    Any Help?

    As suggested, I tried 'fdisk -l' to ascertain /dev ------NO GOOD!!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Do you see it in the output of
    Code:
    ls /dev/
    ?
     
  3. johnt

    johnt New Member

    Hi again,

    ls /dev/ gives me a bunch of devices like sdfg1 etc but no fdisk -l

    help!!
     
  4. Leszek

    Leszek New Member

    Try to connect the flash drive and enter:
    Code:
    dmesg
    and see if it got detected.
     
  5. Leszek

    Leszek New Member

    If You'd know the path to the flash drive You could mount it ex. like this:
    Code:
    mount -t filesystem_type path_to_drive mount_point
    
    example:
    Code:
    mount -t vfat /dev/sdc1 /mnt/flash_drive
    
    /mnt/flash_drive has to exist. If it doesn't You can:
    Code:
    mkdir /mnt/flash_drive
    
    You can also make the system determine the fs type automatically:
    Code:
    mount -t auto /dev/sdc1 /mnt/flash_drive
    
    After You finish enter:
    Code:
    umount /mnt/flash_drive
    
    More info:
    Code:
    man mount
    
     

Share This Page