[SOLVED] How to defragment an NTFS partition in Linux?

Hello, I want to defragment an NTFS partition (which contains Windows XP) from Linux especially because when doing that under Windows is not possible to move system files, so I guess from Linux it will offer better results.
Is there any tool that could do it, like fsck?
I've tried this command:
fsck -t ntfs --kerneldefrag /dev/sda1
but it does nothing, it only shows this message:
fsck de util-linux 2.20
Is there any way to do it?
Thanks in advance!
Last edited by ILoveJapaneseGirls (2011-12-28 06:25:30)

jakobm wrote:Please be sure to use the bbs search: Defragment a NTFS partition from LINUX
That thread has absolutely no information other than a list of motivations to use Windows to defrag it... and a link to a buggy Python defragger.
Here's the only bulletproof way to defrag NTFS under Linux:
Make a new partition of the same size (or bigger), and format it to NTFS and mount it at /defragged
Mount your fragged partition at /fragged
rsync -av /fragged /defragged
Wha-la. /defragged is now your fragged partition, defragged. Reformat /fragged and rsync it back if you really must.
Drives get fragmented if you do multiple copies at the same time, so don't do anything else on the drive while it's syninc.
Last edited by dagelf (2014-08-28 07:21:54)

Similar Messages

  • (solved) gparted refuses to shorten ntfs partition

    Hi everybody.  I am trying to shorten the /dev/sda1 ntfs partition with gparted but it does not work. there is an error message and I cannot apply the change. thanks.
    Last edited by cezarrangel (2013-02-12 12:58:22)

    thank you so much Jasonwryan. I apologyze on my knees. the problem is that I want to shorten this ntfs partition /dev/sda1 to have enough space for an Arch partition. Unfortunately I cannot get rid of this ntfs partition permanentely. that is why I wrongly (sorry again for the mess on the forum) considered it an installation issue. and, sorry again, of course you could not guess the error message.
    In fact, when the gparted windown opens,  the option to resize/move the ntfs partition is there available. but when I try to choose the new size of the ntfs partition it does not go anyhere. I try to move the reference to the ntfs partition with the mouse cursor to the size I want but this action is not available. I have already tried defragmenting the ntfs partition. the operation seems to end successful. but when I try gparted again it is no use. I do not succeed resize/move the ntfs partition.
    I thank you once more for your most kind answer and apologize for the hasty issue.
    Last edited by cezarrangel (2013-02-11 12:38:02)

  • [SOLVED] Error to access Windows NTFS Partitions

    hi
    I'm getting this message error when trying to access a NTFS windows partition
    Cannot mount volume.
    Error org.freedesktop.DBus.Error.AccessDenied
    both partitions C: and D: are listed in Places menubar... but i cant access them
    do i have to add a permission to myself user ?
    tks
    Last edited by almondega (2008-06-22 00:49:26)

    solved
    from http://www.jefferyfernandez.id.au
    how to:
    1- Edit the hal daemons security policy
    # gedit /etc/dbus-1/system.d/hal.conf
    2- Search for <policy context="default">, and change all they itens from "deny" to "allow"
    3- reboot, and try to open a NTFS partition, if u get a error message about ntfs-3g, just download from pacman -S ntfs-3g (or search for one pacman -Ss ntfs)
    =]

  • How to mount SATA Ntfs Partitions on Arch Linux

    Please help me mounting sata ntfs partitions.
    Here is my fdisk -l :
    [kaola@ArchHost ~]$ sudo fdisk -l
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x020e020e
    Device Boot Start End Blocks Id System
    /dev/sda1 1 371 2980026 82 Linux swap / Solaris
    /dev/sda2 * 372 2803 19535040 83 Linux
    /dev/sda3 2804 6450 29294527+ 83 Linux
    /dev/sda4 6451 6463 104422+ 83 Linux
    Disk /dev/sdb: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xd7a23d33
    Device Boot Start End Blocks Id System
    /dev/sdb1 2 5875 47182905 5 Extended
    /dev/sdb2 * 5876 9139 26218080 7 HPFS/NTFS
    /dev/sdb5 2 3918 31463271 7 HPFS/NTFS
    /dev/sdb6 3919 5875 15719571 7 HPFS/NTFS
    Disk /dev/sdc: 4043 MB, 4043308544 bytes
    255 heads, 63 sectors/track, 491 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00050ebd
    Device Boot Start End Blocks Id System
    /dev/sdc1 1 491 3943926 b W95 FAT32
    As far as I know, the sata ntfs partitions are those with (sdb#).
    I tried mounting one of them but this is what it shows:
    [kaola@ArchHost ~]$ sudo mount /dev/sdb6
    mount: can't find /dev/sdb6 in /etc/fstab or /etc/mtab
    Please help me, this is very annoying compared to ubuntu which does do the job pretty well.  By the way, I'm using kde as my DE.  Dolphin sees the partitions but cant access.
    It says:
    An error occured while accessing 'Backup2 HD2', the system responded:
    org.freedesktop.Hal.Device.Volume.UnknownFailure: TODO:
    have to rethink extra options
    Reading some tutorials on ntfs-3g wiki, I've modified my fstab.  Still, I can't read the partitions...Please help me, this is my fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    UUID=2167baaa-d1e0-4719-920c-0bc09fa56caa / reiserfs defaults 0 1
    UUID=3e2250a0-ac45-458c-ba40-44ddbe8af54d /boot ext2 defaults 0 1
    UUID=cbf76343-12cf-4975-9284-3360735be927 /home reiserfs defaults 0 1
    UUID=f39da452-efe4-49d0-abd4-bb5246b83b33 swap swap defaults 0 0
    /dev/cdrom /media/cdrom auto ro,user,noauto,unhide 0 0
    /dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    UUID=2167baaa-d1e0-4719-920c-0bc09fa56caa / reiserfs defaults 0 1
    UUID=3e2250a0-ac45-458c-ba40-44ddbe8af54d /boot ext2 defaults 0 1
    UUID=cbf76343-12cf-4975-9284-3360735be927 /home reiserfs defaults 0 1
    UUID=f39da452-efe4-49d0-abd4-bb5246b83b33 swap swap defaults 0 0
    /dev/sdb1 /mnt/ntfs1 ntfs-3g users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_US.utf8 0 0
    /dev/sdb2 /mnt/ntfs2 ntfs-3g users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_US.utf8 0 0
    /dev/sdb5 /mnt/ntfs3 ntfs-3g users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_US.utf8 0 0
    /dev/sda6 /mnt/ntfs4 ntfs-3g users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_US.utf8 0 0
    Last edited by kaola_linux (2008-10-04 14:51:24)

    AD28 wrote:
    For seamless integration similar to Ubuntu:
        Follow this wiki for ntfs-3g installation and fstab configuration.
    For basic on-demand support:
    # pacman -Sy ntfs-3g
    and mount with:
    # mount -t ntfs-3g /dev/sdbX /mnt
    Now that did the trick!!!!!
    A happy Arch Linux user here!!!!hehee
    Any idea how to automate this? I want it to be automatically mounted so that it would be easy to transfer files...Pleasssseeeeee.....Thanks

  • How can I erase NTFS partition on my Mac

    When I tried to install Windows XP on my Macmini BootCamp created NTFS partition. You know it was a bad idea because XP killed MacOS
    So I installed MacOS again and now I want to erase NTFS partition but Disk Utility can't do this
    Help!
    Mac mini   Mac OS X (10.4.6)  

    Hi Warder, Welcome to Apple Discussions.
    Disk Utility cannot unpartition a drive without erasing the entire drive. There are some utilities that can unpartition on the fly DriveGenius is one. (I'm not sure if it is Universal yet) Prosoft is a trusted software vendor but I would still do this "at your own risk".
    -mj
    [email protected]

  • [SOLVED] Shared Firefox Profile on ntfs partition "in use"

    After failing to install arch on an ancient computer a year ago, I've successfully installed arch with lightdm and openbox on my current desktop.
    Everything works fine except for the firefox profile I share across my partitions.  When I run firefox -p and try to use the profile, I get a message that Firefox cannot use the profile because it is in use, even though I've checked that firefox is not running.
    I am aware that using openbox without a DE means other partitions aren't auto mounted in filemanagers (I'm using xfe), and I edited the /etc/fstab to mount the ntfs partition:
    # /dev/sdb2 LABEL=Data
    UUID=(the UUID is correct, I checked) /media/user/Data  ntfs  rw,auto,user,exec,suid,async,dev,umask=000   0 0
    The drive now auto mounts without needing root, but I cannot create new folders even as root (Operation not permitted). Perhaps I've forgotten an option in the fstab?
    Last edited by :hovercraft (2014-02-08 00:26:44)

    Thanks! That worked perfectly!
    I installed ntfs-3g and changed the fstab to the default on that page, and now firefox loads exactly like in my other partitions.

  • [Solved] How to resize an encrypted luks partition?

    Edit: This worked: http://www.enigmacurry.com/2007/04/28/r … ilesystem/
    I have some empty space on my harddrive, and wish to fill it up, with my existing partition.
    This is my harddrive setup in gparted:
    And fdisk respectively:
    [ricky@archlinux ~]$ sudo fdisk /dev/sda -l
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x58bd1192
    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 289169 144553+ 83 Linux
    /dev/sda2 289170 195607439 97659135 83 Linux
    /dev/sda2 (the crypted luks partition) contains an lvm group.
    I am trying to enlarge the luks partition, to fill all of the empty space, soi can give some more space to the lvm's inside the encrypted partition.
    I did come across an interesting page here: http://www.enigmacurry.com/2007/04/28/r … ilesystem/
    Is this the correct approach, by deleting the WHOLE partition (not the data), and then simply creating a new partition, with the same start-sector, and the higher end-sector?
    Will that allow me to then resize my lvm's inside of the luks partition?
    I am sorry if this is confusing.
    Last edited by xdemo (2011-03-18 07:53:35)

    jakobm wrote:Please be sure to use the bbs search: Defragment a NTFS partition from LINUX
    That thread has absolutely no information other than a list of motivations to use Windows to defrag it... and a link to a buggy Python defragger.
    Here's the only bulletproof way to defrag NTFS under Linux:
    Make a new partition of the same size (or bigger), and format it to NTFS and mount it at /defragged
    Mount your fragged partition at /fragged
    rsync -av /fragged /defragged
    Wha-la. /defragged is now your fragged partition, defragged. Reformat /fragged and rsync it back if you really must.
    Drives get fragmented if you do multiple copies at the same time, so don't do anything else on the drive while it's syninc.
    Last edited by dagelf (2014-08-28 07:21:54)

  • [SOLVED] SystemD NTFS partition issue's

    Hey archers,
    hope someone here can help me
    recently began testing systemd & I am facing a problem where I have to ctrl+d or give root password during every boot up due to systemd having problems with my ntfs partition ( i mount at boot as I have symlinks to that partition for documents & programs which run in wine)
    I have not enabled anything to do with mounting or even added the fuse module to load as it has already picked that up!
    here are the entries I think are related to this from journalctl:
    Aug 29 07:57:37 b0x ntfs-3g[568]: Version 2012.1.15 external FUSE 29
    Aug 29 07:57:37 b0x ntfs-3g[568]: Mounted /dev/sdb1 (Read-Write, label "Win7-sys", NTFS 3.1)
    Aug 29 07:57:37 b0x ntfs-3g[568]: Cmdline options: rw,noatime,sync,gid=100,umask=002
    Aug 29 07:57:37 b0x ntfs-3g[568]: Mount options: rw,sync,allow_other,nonempty,noatime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
    Aug 29 07:57:37 b0x ntfs-3g[568]: Global ownership and permissions enforced, configuration type 7
    Aug 29 07:57:37 b0x ntfs-3g[568]: Warning : using problematic uid==0 and gid!=0
    Aug 29 07:57:37 b0x mount[572]: Mount is denied because the NTFS volume is already exclusively opened.
    Aug 29 07:57:37 b0x mount[572]: The volume may be already mounted, or another software may use it which
    Aug 29 07:57:37 b0x mount[572]: could be identified for example by the help of the 'fuser' command.
    Aug 29 07:57:37 b0x systemd[1]: media-Win7.mount mount process exited, code=exited status=16
    Aug 29 07:57:37 b0x systemd[1]: Job local-fs.target/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Triggering OnFailure= dependencies of local-fs.target.
    Aug 29 07:57:37 b0x systemd[1]: Job systemd-user-sessions.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job lightdm.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job graphical.target/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job multi-user.target/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job systemd-logind.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job dbus.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job [email protected]/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job hwclock.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job syslog-ng.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job network.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job cronie.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job snmpd.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job samba.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job webmin.service/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd[1]: Job systemd-tmpfiles-clean.timer/start failed with result 'dependency'.
    Aug 29 07:57:37 b0x systemd-journal[181]: Journal stopped
    Aug 29 07:57:37 b0x systemd-journal[584]: Journal started
    Aug 29 07:57:37 b0x ntfs-3g[568]: Unmounting /dev/sdb1 (Win7-sys)
    Aug 29 07:57:37 b0x systemd-udevd[224]: '/usr/sbin/alsactl restore 0' [500] terminated by signal 15 (Terminated)
    Aug 29 07:57:38 b0x systemd[1]: Startup finished in 3s 111ms 648us (kernel) + 6s 425ms 155us (userspace) = 9s 536ms 803us.
    Aug 29 07:57:38 b0x systemd[582]: Failed at step EXEC spawning /bin/plymouth: No such file or directory
    Aug 29 07:58:25 b0x systemd[1]: Cannot add dependency job for unit avani-dnsconfd.service, ignoring: Unit avani-dnsconfd.service failed to load: No such file or directory. See system lo...e' for details.
    Aug 29 07:58:25 b0x systemd[1]: Socket service syslog.service not loaded, refusing.
    Aug 29 07:58:26 b0x arch-modules-load[609]: mkdir: cannot create directory ‘/run/modules-load.d’: File exists
    Aug 29 07:58:26 b0x systemd-modules-load[706]: Module 'vhba' is already loaded
    Aug 29 07:58:26 b0x systemd-modules-load[706]: Module 'fuse' is already loaded
    Aug 29 07:58:26 b0x systemd-fsck[646]: public: clean, 385878/2039808 files, 5060668/8159011 blocks
    Aug 29 07:58:26 b0x systemd-fsck[653]: VM: clean, 228/5677056 files, 5637221/22680575 blocks
    Aug 29 07:58:26 b0x systemd-fsck[644]: Home: clean, 90204/1327104 files, 984778/5305458 blocks
    Aug 29 07:58:26 b0x ntfs-3g[871]: Version 2012.1.15 external FUSE 29
    Aug 29 07:58:26 b0x ntfs-3g[871]: Mounted /dev/sdb1 (Read-Write, label "Win7-sys", NTFS 3.1)
    Aug 29 07:58:26 b0x ntfs-3g[871]: Cmdline options: rw,gid=100,fmask=113,dmask=002
    Aug 29 07:58:26 b0x ntfs-3g[871]: Mount options: rw,allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
    Aug 29 07:58:26 b0x ntfs-3g[871]: Global ownership and permissions enforced, configuration type 7
    Aug 29 07:58:26 b0x ntfs-3g[871]: Warning : using problematic uid==0 and gid!=0
    Here is the entry in /etc/fstab for this partition:
    ## Entry for /dev/sdb1 SYSTEM:(Win7)
    UUID=44083B9668A3E0CC /media/Win7 ntfs-3g gid=users,fmask=113,dmask=002 0 0
    I have been all over goggle & am unable to find out anything which can help.
    As stated before I have links to this partition & so really want/need this partition to be mounted at boot.
    Any help on this will be greatly appreciated
    Thanks in advance
    EDIT #1
    rebooted again, still the same happening
    ran:
    $ sudo mount -l
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    dev on /dev type devtmpfs (rw,nosuid,relatime,size=3022708k,nr_inodes=755677,mode=755)
    run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    /dev/sda1 on / type ext4 (rw,relatime,data=ordered) [Arch-sys]
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
    /dev/sdb3 on /media/wine type ext4 (rw,noatime,errors=remount-ro,data=ordered) [wine] <<<THIS SHOULD NOT BE HERE!<<<<<<<<<
    /dev/sdd1 on /media/spare2 type ext4 (rw,noatime,errors=remount-ro,data=ordered) [spare2] <<<THIS SHOULD NOT BE HERE!<<<<<<<<<<
    /dev/sdc1 on /media/spare type ext4 (rw,noatime,errors=remount-ro,data=ordered) [spare] <<<THIS SHOULD NOT BE HERE!<<<<<<<<<<<
    /dev/sde1 on /media/USB-HDD2 type vfat (rw,noatime,sync,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) [USB-HDD2] <<<<<THIS IS NORMAL
    /dev/sdb4 on /media/pac type ext4 (rw,noatime,errors=remount-ro,data=ordered) [pac] <<<THIS SHOULD NOT BE HERE!
    /dev/sdd1 on /media/Spare2 type ext4 (rw,relatime,errors=remount-ro,data=ordered) [spare2] <<<<<THIS IS NORMAL
    /dev/sdc1 on /media/Spare type ext4 (rw,relatime,errors=remount-ro,data=ordered) [spare] <<<<<THIS IS NORMAL
    /dev/sdb2 on /media/VM type ext4 (rw,relatime,errors=remount-ro,data=ordered) [VM] <<<<<THIS IS NORMAL
    /dev/sdb3 on /var/wine type ext4 (rw,relatime,errors=remount-ro,data=ordered) [wine] <<<<<THIS IS NORMAL
    /dev/sdb4 on /var/cache/pacman type ext4 (rw,relatime,errors=remount-ro,data=ordered) [pac] <<<<<THIS IS NORMAL
    /dev/sdb1 on /media/Win7 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) [Win7-sys] <<<<<THIS IS NORMAL
    /dev/sda3 on /public type ext4 (rw,relatime,errors=remount-ro,data=ordered) [public] <<<<<THIS IS NORMAL
    /dev/sda5 on /home type ext4 (rw,relatime,errors=remount-ro,data=ordered) [Home] <<<<<THIS IS NORMAL
    gvfs-fuse-daemon on /run/user/1000/gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
    gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
    as you can see my partitions are being mounted TWICE which is not what I want or expected!
    is there more documentation on what systemd does with mounts that could explain why i have multiple mount points for partitions or is this due to systemd discovering my partitions & mounting them at points based on label names & then parsing my FSTAB as well!
    I have read the wikki but there is very small info there & the links have not provided an explanation for this unwanted behaviour
    EDIT #2
    >>>>>>>>>>>SOLVED<<<<<<<<<<<<<<
    not an NTFS or FUSE issue
    I had previously installed mnttools!
    removed & now all is well
    sorry
    Last edited by t0m5k1 (2012-08-29 08:30:11)

    OK,
    After being spurred on to try to do this thing properly, this is what I came up with today.
    My fstab line (for a USB NTFS disk):
    /dev/sdb1 /media/samsung ntfs-3g noauto,users,rw,nodev 0 0
    Then I created the /media/samsung folder and gave the audio group read/write permissions.
    It seems that non-root users can only mount an ntfs partition if they use a version of ntfs-3g with fuse included, so I replaced ntfs-3g with the version from AUR, having removed from the PKGBUILD file the option "-with-fuse=external" (see this thread: http://bbs.archlinux.org/viewtopic.php?id=44844 ).   I also had to set
    the ntfs-3g binary to setuid-root, dealt with here: http://www.tuxera.com/community/ntfs-3g … privileged (note- the instructions say this is discouraged, but it seems using ntfs partitions in linux requires some compromises).
    I can now mount the drive as an ordinary user.
    Then I set mpd back to run as user mpd, checked the audio group had access to all the mpd folders, and all was well.
    One hiccup which you might not have: mpd was unable to access my (external) sound card at first.  To solve this one, I used
    chmod 770 /dev/snd -R && chgrp audio /dev/snd -R
    As far as I can remember, that's everything.
    Last edited by Henry Flower (2010-04-20 12:54:26)

  • How to Defragment a FATx or NTFS (NON-MAC) partition/drive in Mac OSx

    This is not another discussion about "How to defragment a native Mac partition/drive"
    I've been roaming around lots of forums and everybody ask how to defragment a Mac Drive or Partition.. and the answers are always like "Why would you even want to defragment a your Mac.. OSx automatically does it for you.. Mac is so wonderful that ... bla bla bla..." ... I GOT IT, Ok..?
    This time is different, I would like to know...
    What tool should I use to defragment a NON-Mac Disk/Partition??
    Say that you happend to have an external hard drive, which is in FATx or NTFS (Windows) format, then you attach it to your Mac and.. wel.. you want to defragment the disk from there because you just dont have windows Laptop/PC on hand.
    Is this even possible from Mac, given that Mac OS is so wonderful that does not even need to defrag its file system?
    I hope everybody understand my question before giving me the same answers once again.
    Thank you very much!

    mat060 wrote:
    This is not another discussion about "How to defragment a native Mac partition/drive"
    I've been roaming around lots of forums and everybody ask how to defragment a Mac Drive or Partition.. and the answers are always like "Why would you even want to defragment a your Mac.. OSx automatically does it for you.. Mac is so wonderful that ... bla bla bla..." ... I GOT IT, Ok..?
    This time is different, I would like to know...
    What tool should I use to defragment a NON-Mac Disk/Partition??
    Say that you happend to have an external hard drive, which is in FATx or NTFS (Windows) format, then you attach it to your Mac and.. wel.. you want to defragment the disk from there because you just dont have windows Laptop/PC on hand.
    Is this even possible from Mac, given that Mac OS is so wonderful that does not even need to defrag its file system?
    I hope everybody understand my question before giving me the same answers once again.
    Thank you very much!
    Use DiskWarrior, respect your fellow users here, and perhaps stop with the multicolour, multi-font sized posts, which annoy the h#ll out of people that would normally help you.
    DiskWarrior will do all you need to do, except perhaps for a Permissions repair once or twice a year if you believe it to be necessary.
    Cheers
    Pete

  • Deleted ntfs partition accidentally using cfdisk, how to restor SOLVED

    Hello, please help me with my major prob...I was installing arch that time and I was on the cfdisk to format partitions, unnoticably I had deleted the ntfs partitions on my sata 160gb and replaced them with linux partitions.  Is there any means of restoring the files of the ntfs partitions? Please I need your help. THanks
    Last edited by kaola_linux (2008-10-13 02:24:16)

    http://www.google.com/search?hl=en&q=re … store+ntfs
    Last edited by SkonesMickLoud (2008-10-07 06:51:29)

  • I have a 1TB external hard drive (NTFS) that has all my files from my old PC, how do I create a partition on it for HFS  without formatting it so that I can use it for Time Machine and the like?

    I have a 1TB external hard drive (NTFS) that has all my files from my old PC, how do I create a partition on it for HFS  without formatting it so that I can use it for Time Machine and the like?

    There aren't any 3rd party apps or anything. I use PC's and Mac's at school and the only computer connected to a printer at my house is a PC so i need access to both

  • How do I write to my boot camp partition with Paragon NTFS that comes with Mountain Lion?  Or how do I get my boot camp partition to show up in Paragon's "Available NTFS partitions:" panel like my external hard drive does?

    I've just set up boot camp on my MacBookPro with a freshly installed Mountain Lion and Windows 7. 
    I would like to read and write in both directions from drive to drive if possible.  I've hunted around quite a bit to try and work this out, and so far I understand that one can write to or transfer files from one drive to the other with Paragon NTFS among other softwares. 
    I noticed when I looked in my system preferences the utility "Paragon NTFS for Mac OS X" came with Mountain Lion and it will recognize an external hard drive when I have one plugged in under "Available NTFS partitions:".  However, it does not automatically recognize my NTFS boot camp partition nor does it automatically give me write access. 
    Is the Paragon NTFS that comes with Mountain Lion limited in some way? 
    Do I still need to purchase and download the software of the same name from Paragon to get the full write privilidges I want or is there something I can do to get the version of Paragon on my MAC to recognize and give me write priviledges to my boot camp partition?
    I'm open to all suggestions to get the read / write access between partitions in my boot camped drive.
    MacFUSE is also listed in the System Preferences of my machine (it also came with Mountain Lion), if that helps.  I'm still working out exactly what each of these is supposed to do and how I can use it to accomplish the task at hand.
    My boot camp drive does appear normally in other contexts and in disk utility it indicates that the drive is mounted.
    Thank you for any guidance you can give me. 

    Interesting. Comes with? you didn't have either before? Paragon is commercial and is now v. 10.0, they were the only one keeping updated and was supporting 10.7.4. I would not enable more than one.
    For writing to HFS Paragon has theirs but probably give the nod to MacDrive there.
    I never do an upgrade to a new OS over the old system, I backup (clone) and format the drive with the new OS and do the install so whatever is there I know is clean and also to keep from carrying around leftovers from years and systems past.
    I would assme Paragon is limited. Try their site and knowledge base?
    MacDrive
    http://www.mediafour.com/updates/macdrive
    Paragon HFS
    http://www.paragon-software.com/home/hfs-windows/
    Paragon NTFS
    http://www.macupdate.com/app/mac/26288/ntfs-for-mac-os-x
    http://www.paragon-software.com/home/ntfs-mac/

  • How to setup ivman to auto-mount ntfs partition using ntfs-3g

    Hi,
    I use ivman/pmount to auto-mount removable devices,
    but for ntfs partitions, it mounts by type "ntfs" which can not support "write"!
    But I can not figure out how to config ivman to do that,
    can someone help me, please?
    BR,
    bsdson.tw

    Hi,
    I use ivman/pmount to auto-mount removable devices,
    but for ntfs partitions, it mounts by type "ntfs" which can not support "write"!
    But I can not figure out how to config ivman to do that,
    can someone help me, please?
    BR,
    bsdson.tw

  • NTFS partition: Files auto deleted by Windows [SOLVED]

    I am dual booting with Win7. I copy some files to NTFS partition so that I can access them from Windows. But what I see after I boot into Windows, those files are either deleted or are corrupted (a few hundred megs file is just a few kB now) !!!
    This is really frustrating as I lost several files, though not all as some files remain as they were in Arch. I have NTFS-3G installed, and use HAL hot-plug mounting to access the NTFS drive.
    Any ideas what is going wrong here ? Thanks.
    Last edited by shemz (2010-05-04 21:45:30)

    Its just another partition on the same drive where my arch ext4 partition exists. For a moment I thought its a problem with hibernation. So this time I copied a file to the NTFS partition and did a complete shutdown from linux. Now both windows and linux are in shutdown state, none in hibernation. I booted into windows, the file is again gone.
    Then I checked into this folder Found.000. And one of my missing files is here. This prompted me to check if M$ has found a new way to keep (force) people away from linux. I found somewhere on the web that by default in Win7 the check disk utility checks for file system consistency at each boot (I think it would just check for either time stamps or directory structure).
    So for now I have disabled automatic disk checking in Windows. Will do a few more test boots to see it solves the problem. Thanks again.
    Edit: Few test reboots and all seems fine. Its a windows problem.
    Last edited by shemz (2010-05-04 21:43:29)

  • Setting up 46GB partition: How to make it NTFS?

    Sorry folks, if this is a simple question for WIN afficcionados: I set up a 46GB bootcamp partition to install WinXP Pro SP3. Bootcamp utility formats this automatically as FAT, but at this size, AFAIK, it must be NTFS for WinXP to install. Hence, the Win installer seems to stall at the install command where you are supposed to select "install new", "repair","quit". No reaction on hitting the enter key (=install new). I hoped the Win installer might do the formatting...
    How can I get the partition formatted as NTFS?

    Hi Hatter & Fortuny: I waited for the partition selection window in the Win installer, but could not get there. The installer stalled (what a nice linguistic coincidence: a stalling installer) or did not react to my keyboard input "enter" when asking "new", "repair" or "quit".
    I have a German keyboard and tried both, an English and a German installer CD that I burnt from a WinXP ISO image. Both stopped at the same point and did not react to my input. Shall I let it sit for longer than 15 minutes?
    By the way: I do have a printout of the bootcamp instructions in front of me and followed its procedures. But it wouldn't be MS if it did what is expected It's a PAIN.

Maybe you are looking for