Announcement

Collapse
No announcement yet.

mounting problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mounting problem

    An error pops out whenever I try to mount a disk


    Could not mount device

    The reported error was:

    mount: can't find /dev/sda2 in /etc/fstab or /etc/mtab
    what to do?

    #2
    Re: mounting problem

    you must add an entry for your /dev/sda2 in your /etc/fstab before mounting them on the fly. post the output
    Code:
    sudo fdisk -l
    and your /etc/fstab file if you need more assistance.
    cheers!
    -=|From the desk of|=-
    «•´`•.(*•.¸(`•.¸ ¸.•´)¸.•*).•´`•»
    «•´¨*•.¸¸whoiam55.¸¸.•*¨`•»
    «•´`•.(¸.•´(¸.•* *•.¸)`•.¸).•´`•»
    Reg. Linux User # 400637

    Comment


      #3
      Re: mounting problem

      "sudo fdisk -l" command output:

      Device Boot Start End Blocks Id System
      /dev/sda1 1 6 48163+ de Dell Utility
      /dev/sda2 * 7 2642 21173670 7 HPFS/NTFS
      /dev/sda3 4399 4863 3735112+ db CP/M / CTOS / ...
      /dev/sda4 2643 4398 14105070 83 Linux

      Partition table entries are not in disk order



      fstab file contains:

      Disk /dev/sda: 40.0 GB, 40007761920 bytes
      255 heads, 63 sectors/track, 4864 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes File: fstab

      # /etc/fstab: static file system information.
      #
      # <file system> <mount point> <type> <options> <dump> <pass>
      proc /proc proc defaults 0 0
      /dev/sda4 / ext3 defaults,errors=remount-ro 0 1
      /dev/scd0 /media/cdrom0 udf,iso9660 ro,user,noauto 0 0


      is the info adequate?

      Comment


        #4
        Re: mounting problem

        ok, creat a folder where you want mount your drive. like mkdir /windows/c. then add this line at the end of your /etc/fstab file
        Code:
        /dev/sda2    /windows/c  ntfs ro,auto,umask=022 0    0
        change the auto to noauto if you don't want to mount them automatically

        after that you can simply do "mount /windows/c" or "mount /dev/sda2".

        hope this help
        cheers!
        -=|From the desk of|=-
        «•´`•.(*•.¸(`•.¸ ¸.•´)¸.•*).•´`•»
        «•´¨*•.¸¸whoiam55.¸¸.•*¨`•»
        «•´`•.(¸.•´(¸.•* *•.¸)`•.¸).•´`•»
        Reg. Linux User # 400637

        Comment


          #5
          Re: mounting problem

          success!

          Thank you very much for your help, whoami55.

          Comment

          Working...
          X