Find the answer to your Linux question:
Results 1 to 10 of 10
I just installed Debian on a system with Ubuntu/XP dual boot (to try this flavor of Linux, in hopes of creating a *relatively* stable file server from my old system). ...
  1. #1
    Just Joined! dirk_diggler's Avatar
    Join Date
    Jan 2008
    Location
    San Francisco, CA
    Posts
    28

    can't mount ntfs drive

    I just installed Debian on a system with Ubuntu/XP dual boot (to try this flavor of Linux, in hopes of creating a *relatively* stable file server from my old system). But I can't seem to mount the NTFS drive. I have no problems with Ubuntu reading/accessing this drive... I can easily mount it.

    The error message I get when I *right-click->mount volume is:

    mount: according to mtab, /dev/hdd1 is mounted on /media/hdd1

    mount failed
    Here is my fdisk -l output:

    Disk /dev/hda: 81.9 GB, 81964302336 bytes
    255 heads, 63 sectors/track, 9964 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 1828 14683378+ 83 Linux
    /dev/hda2 4719 9964 42138495 f W95 Ext'd (LBA)
    /dev/hda3 1829 4718 23213925 83 Linux
    /dev/hda5 4719 4849 1052226 82 Linux swap / Solaris
    /dev/hda6 4850 6825 15872188+ 83 Linux
    /dev/hda7 6826 9964 25213986 83 Linux

    Partition table entries are not in disk order

    Disk /dev/hdb: 122.9 GB, 122942324736 bytes
    255 heads, 63 sectors/track, 14946 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 * 1 9118 73240303+ 7 HPFS/NTFS
    /dev/hdb2 9119 14946 46813410 f W95 Ext'd (LBA)
    /dev/hdb5 9119 12158 24418768+ 7 HPFS/NTFS
    /dev/hdb6 12159 14946 22394578+ b W95 FAT32

    Disk /dev/hdd: 300.0 GB, 300069052416 bytes
    255 heads, 63 sectors/track, 36481 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdd1 1 36481 293033601 7 HPFS/NTFS
    Here is my fstab output:

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda6 / ext3 defaults,errors=remount-ro 0 1
    /dev/hda7 /home ext3 defaults 0 2
    /dev/hda5 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
    /dev/hdd1 /mnt/windows ntfs-3g defaults,umask=0 0 0
    --> As you can see, I've already tried to add the ntfs drive (hdd1) but I am failing misserably. Please help?!

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    What does
    Code:
    mount
    report? I don't think ntfs-3g is installed by default in Debian.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    ntfs-3g is not pre-installed in Debian.
    You have to install it manually. Post the output of df -h command too.
    Code:
    df -h
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined! dirk_diggler's Avatar
    Join Date
    Jan 2008
    Location
    San Francisco, CA
    Posts
    28
    Quote Originally Posted by Jonathan183 View Post
    What does
    Code:
    mount
    report? I don't think ntfs-3g is installed by default in Debian.
    mount output is as follows:
    /dev/hda6 on / type ext3 (rw,errors=remount-ro)
    tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    procbususb on /proc/bus/usb type usbfs (rw)
    udev on /dev type tmpfs (rw,mode=0755)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
    /dev/hda7 on /home type ext3 (rw)

  5. #5
    Just Joined! dirk_diggler's Avatar
    Join Date
    Jan 2008
    Location
    San Francisco, CA
    Posts
    28
    Quote Originally Posted by devils casper View Post
    ntfs-3g is not pre-installed in Debian.
    You have to install it manually. Post the output of df -h command too.
    Code:
    df -h
    df -h output is below:
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda6 15G 2.1G 13G 15% /
    tmpfs 507M 0 507M 0% /lib/init/rw
    udev 10M 92K 10M 1% /dev
    tmpfs 507M 0 507M 0% /dev/shm
    /dev/hda7 24G 184M 23G 1% /home

  6. #6
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    try to mount it with the linux ntfs driver.
    and as Casper said ntfs-3g wasn't preinstalled in debian

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this, as suggested by iwanabeguru :
    Code:
    mount -t ntfs /dev/hdd1 /mnt/windows -o defaults,umask=0 
    ls /mnt/windows
    If it works, replace ntfs-3g with ntfs in /etc/fstab file. Install ntfs-3g package to enable NTFS write access.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined! dirk_diggler's Avatar
    Join Date
    Jan 2008
    Location
    San Francisco, CA
    Posts
    28
    Quote Originally Posted by devils casper View Post
    Execute this, as suggested by iwanabeguru :
    Code:
    mount -t ntfs /dev/hdd1 /mnt/windows -o defaults,umask=0 
    ls /mnt/windows
    If it works, replace ntfs-3g with ntfs in /etc/fstab file. Install ntfs-3g package to enable NTFS write access.
    I get this error:
    mount -t ntfs /dev/hdd1 /mnt/windows -o defaults,umask=0
    mount: mount point /mnt/windows does not exist

    ls /mnt/windowsmount -t ntfs /dev/hdd1 /mnt/windows -o defaults,umask=0
    ls: /mnt/windowsmount: No such file or directory
    ls: ntfs: No such file or directory
    ls: /mnt/windows: No such file or directory
    ls: defaults,umask=0: No such file or directory
    brw-rw---- 1 root 22, 65 2008-05-30 00:13 /dev/hdd1
    I may be doing something wrong. I executed through root (su) with copy-paste of your suggested commands.

  9. #9
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    From your error messages it looks as though you don't have a /mnt/windows folder to mount the partition to ... run
    Code:
    mkdir /mnt/windows
    first to create the folder (you need root access for doing this).

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Gain root privileges using su - or install sudo.
    Code:
    su -
    mkdir /mnt/windows
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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