Find the answer to your Linux question:
Results 1 to 8 of 8
Hi All, I am not able to create a directory on the windows partition. The error I am getting is: mkdir: cannot create directory `test123': No space left on device. ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    10

    cannot create directory on windows partition

    Hi All,
    I am not able to create a directory on the windows partition. The error I am getting is:

    mkdir: cannot create directory `test123': No space left on device.

    mount command used:
    sudo mount -t ntfs /dev/sda1 /media/

    df -i output

    /dev/sda1 15458772 315136 15143636 3% /media

    df -h

    /dev/sda1 25G 10G 15G 41% /media

    Please point me to a solution for this.

    Thanks,
    Sandeep.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Use ntfs-3g instead of ntfs in mount command to enable write access on NTFS Partition. Do not mount partition at /media. Create a folder inside /media and mount NTFS partition there only.

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

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    10
    I tried this but I am getting the same error still

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Does touch test1 command throw same error?

    Post the output of these commands :
    Code:
    sudo fdisk -l
    df -h
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Dec 2009
    Posts
    10
    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sdb5 9.2G 3.3G 5.5G 38% /
    none 486M 284K 485M 1% /dev
    none 490M 300K 489M 1% /dev/shm
    none 490M 112K 490M 1% /var/run
    none 490M 0 490M 0% /var/lock
    none 490M 0 490M 0% /lib/init/rw
    /dev/sdb1 14G 179M 13G 2% /boot
    /dev/sdb8 8.3G 6.1G 1.8G 78% /data
    /dev/sdb6 4.7G 4.4G 7.2M 100% /home
    /dev/sda1 25G 10G 15G 41% /media/cdrive

    fdisk -l

    Disk /dev/sdb: 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x8bb85423

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 1824 14647296 83 Linux
    /dev/sdb2 1824 4866 24432641 5 Extended
    /dev/sdb5 1824 3040 9764864 83 Linux
    /dev/sdb6 3040 3650 4900864 83 Linux
    /dev/sdb7 3650 3775 999424 82 Linux swap / Solaris
    /dev/sdb8 3775 4866 8764416 83 Linux

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xee9b2e60

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 3188 25600000 7 HPFS/NTFS
    /dev/sda2 3188 9729 52547168+ f W95 Ext'd (LBA)
    /dev/sda5 3188 9729 52547137 7 HPFS/NTFS

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    /dev/sda1 has been mounted at /media/cdrive folder.

    Did you add its entry in /etc/fstab file? Post the contents of /etc/fstab file here.

    Try this again :
    Code:
    sudo umount /dev/sda1
    sudo mount -t ntfs-3g   /dev/sda1  /media/cdrive  -o defaults,umask=0
    cd /media/cdrive
    touch test1
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Dec 2009
    Posts
    10
    I tried this with the other windows partition, and am able to create files in that. the /dev/sda1 is windows boot partition as well. May be because of that.
    The partitions are not part of the fstab file.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    It doesn't matter if NTFS partition has Windows OS installed or not. Are you using defaults and umask=0 option in mount command?

    Which Windows OS has been installed in /dev/sda1? Did you install any drive encryption package in Windows OS during/after installation?
    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
  •  
...