Find the answer to your Linux question:
Results 1 to 4 of 4
Hello Everybody, I made a fresh reinstall of my Debian and was trying to mount the storage bin /dev/sda5 which I was able to do before in my previous thread. ...
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225

    [SOLVED] Cannot Mount Partition in Fresh Install

    Hello Everybody,

    I made a fresh reinstall of my Debian and was trying to mount the storage bin /dev/sda5 which I was able to do before in my previous thread.

    Code:
    su -
    mkdir /media/sda5
    mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    Now I tried the same commands but am getting a different result. Can somebody be so kind to help me again with this please? Thank you in advance.


    Code:
    jun@junix:~$ cd /media/sda5
    jun@junix:/media/sda5$ mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    mount: only root can do that
    jun@junix:/media/sda5$ sudo mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    $LogFile indicates unclean shutdown (0, 0)
    Failed to mount '/dev/sda5': Operation not supported
    Mount is denied because NTFS is marked to be in use. Choose one action:
    
    Choice 1: If you have Windows then disconnect the external devices by
              clicking on the 'Safely Remove Hardware' icon in the Windows
              taskbar then shutdown Windows cleanly.
    
    Choice 2: If you don't have Windows then you can use the 'force' option for
              your own responsibility. For example type on the command line:
    
                mount -t ntfs-3g /dev/sda5 /media/sda5 -o force
    
        Or add the option to the relevant row in the /etc/fstab file:
    
                /dev/sda5 /media/sda5 ntfs-3g force 0 0
    jun@junix:/media/sda5$
    Code:
    jun@junix:~$ sudo fdisk -l
    
    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xc5e3f820
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1936    15550888+   7  HPFS/NTFS
    /dev/sda2   *        1937       30401   228645112+   5  Extended
    /dev/sda5            1937       21975   160963236    7  HPFS/NTFS
    /dev/sda6           21976       22826     6835626   82  Linux swap / Solaris
    /dev/sda7           22827       30401    60846156   83  Linux
    jun@junix:~$

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I assume you're dual booting?

    Boot windows up and run the Check Disk utility, make sure it's shutting down properly.

    Or in Debian install ntfsprogs if you haven't already
    Code:
    sudo apt-get install ntfsprogs
    then try
    Code:
    sudo ntfsfix /dev/sda5

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Try force option once. Sometime NTFS partitions doesn't mount correctly because of unclean shutdown in Windows OS. force option mount partitions correct but one should not use it regularly. Just use it once. Unmount NTFS partition and mount it again without force option.

    Code:
    mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,force,umask=0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Hi Everyone,

    Thank you!

    I was able to make it mount using the old commands after I run CHKDSK in my windows partition.


Posting Permissions

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