(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)

Similar Messages

  • [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)
    =]

  • [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)

  • [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] 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)

  • HOWTO: Resize Bootcamp (NTFS) partition for free using gparted

    Hi,
    Well, if you find your Bootcamp/NTFS/Windows partition running out of space, you may want to increase it or decrease it. The OSX Bootcamp utility doesn't allow resizing the NTFS partitio nor does Disk Utility. Here is a free solution ...
    NOTE: I've tried this on Windows 7 64bit, but it should work with other windows setups in a similar manner.
    Requirements:
    1. SysRescueCD (for an NTFS capable 'gparted')
    - http://www.sysresccd.org/Download
    2. rEFIt bootable CD (or install to hard disk, doesn't matter)
    - http://refit.sourceforge.net/doc/c1s5_burning.html
    3. Windows XP/Vista/7 CD (depends what you've installed)
    - just for a quick 'repair' at the end, no reinstall here!
    In short:
    1 Shrink Mac partition in OSX's Disk Utility
    2 Grow the NTFS partition in gparted booting off sysrescue CD (reboot->option key). This may take 30mins to a few hours to complete!
    3 Boot the rEFIt CD -> choose "start partitioning tool" -> hit yes when it says it needs to sync the MBR with the GPT.
    4 Boot your Windows CD.
    Vista/Windows7 CD -> hit the repair option to fix the boot record.
    XP CD -> you may need to go to the administrative shell and type fixboot and then fixmbr.
    5. Reboot and you should be able to boot into Windows via the option key as before. I liked rEFIt a lot so I installed it to my disk itself. (FYI, I did notice I needed to install rEFIt a few times to get it to show up during boot time)
    Message was edited by: SidOnline

    One bug I learnt:
    if
    1. you set the 'boot' flag on the Windows partition in gparted AND
    2. you use gptsync to sync the GPT with the MBR (i.e. MBR->GPT translation)
    then
    you will find that your Windows partition becomes inaccessible in OS X. Your partition is OK - you can boot in windows etc - OS X just doesn't see it as a NTFS partition.
    Solution:
    1. Don't enable the boot flag in gparted. Simple, no need to read further.
    If you're done it and have been hit by the bug and would like to see Windows/Bootcamp again in Finder, read on...
    1. Goto http://www.insanelymac.com/forum/index.php?showtopic=31562, post #9 has a tool to fix it. Download the diskpart.zip file (it's got diskpart.efi)
    2. Extract the diskpart.zip file, copy the diskpart.efi to /efi/tools on your OSX volume (default location for hard disk install of rEFIt).
    3. Reboot, in the rEFIt menu, select the EFI terminal
    4. type fs1: and hit enter. This should take you to your Leopard volume (for me fs0: was the 1st partition (EFI boot partition), fs1: was the 2nd partition (Leopard)
    5. type _cd /efi/tools_ and hit enter
    6. type diskpart and hit enter
    7. As the post linked above says, type
    +select <zero-based disk number>+
    inspect
    +chtype <zero-based partition number> MSDATA+
    For me this was
    +select 0+
    inspect
    +chtype 2 MSDATA+
    Look at the output of select to make sure you're using the right number - if you have your eyes open it's hard to make a mistake!
    Behind the scene details:
    Your partition type is set to NTFS in the MBR table (which is why windows can load it up etc) but if you do the above then the partition type in the GPT is written as EFI instead of NTFS (or more accurately 'MSDATA'). This is a bug in gptsync and I believe Chris (writer of rEFIt) is aware of this - at least another post elsewhere made it look like that. I guess you can't blame it since EFI, GPT tools are still in their infancy.
    BTW, to sync the GPT with the MBR, there is a tool gptsync. I believe it's a tool from Intel's EFI toobox. It exists as either an efi program (i.e. gptsync.efi, runs when you select it from rEFIt's menu) or as a OSX program (just gptsync, runs when you download it and type 'sudo gptsync').

  • 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)

  • [SOLVED] NTFS partition unmounted after suspend to ram

    I recently did a from-scratch installation after I bought an SSD to replace of my old harddrive. Since this fresh install I have been having a problem with an NTFS partition that is mounted by way of fstab (it's not _the_ windows partition just a bit of shared space on a dual-boot setup): Whenever I suspend the computer and bring it back up, the NTFS partition is invariably unmounted.
    The mount point is empty and the mount command makes no mention of the mount. A simple "sudo mount /mnt/SAND" will bring the partition back up again although sometimes it needs to be umounted first (the mount point is still empty despite the 'mount'). Here is the fstab line:
    /dev/sda3 /mnt/SAND ntfs-3g defaults,noatime,uid=1000,gid=100 0 0
    Testing and screwing around I've noticed that if the WINDOWS partition is mounted using nautilus (as it is not mentioned in fstab) that too will be unmounted while a non-root ext4 partition (UBUNTU) is not.
    So my hypothesis is that these NTFS partitions are singled out for unmounting when suspending (but apparently not mounting when reawakening?) -- maybe because they are assumed to be external drives? Given that it happens across mounting solutions (fstab/nautilus) I'm inclined to think it's not a bug?
    At any rate I'm looking for a solution that will allow me to stop the unmounting when suspending -- ideally for all internal drives, secondarily for these specific partitions. I have checked the suspend to ram article on the wiki but it doesn't seem to mention anything about unmounting...
    EDIT: After the Great Big Arch Switch To Systemd this problem no longers occurs on so I'm closing it. Not necessarily much of a solution to anyone who happens on this from google, sorry.
    Last edited by madchine (2012-10-13 12:58:54)

    Hi all,
    It seems that most freezes are gone with:
    - 270.29 beta driver
    - MTRR enabled by appending enable_mtrr_cleanup mtrr_spare_reg_nr=1 to the list of kernel options (see http://www.nvnews.net/vbulletin/showpos … tcount=39)
    I didn't investigate further to  know if both the driver and the MTRR trick are required.
    Thanks a lot,
    Aurel.

  • 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)

  • Renaming files with invalid characters in their names on NTFS partitions, introduced by operating systems other than Windows

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

  • Problem accessing mounted ntfs partitions

    Hi,
    I have problems accessing ntfs partitions as a non root user. The user trying to acces the partition is in usergroup wheel and has sudo acces.
    /etc/fstab looks like this:
    /dev/sda5 /media/winC ntfs defaults 0 2
    /dev/sdb1 /media/winD ntfs defaults 0 2
    It does not matter where I mount them (e.g. /home/user/media/winC), if i try cd-ing into the directory, it tells me:
    cd /medi/winC
    -bash: cd: /media/winC: Permission denied
    When i try the following, it tells me:
    sudo cd /medi/winC
    sudo: cd: command not found
    which I find a bit strange, but ok.
    Any pointers what I am doing wrong? cd-ing as root works, but i would like to acces it as a normal user too. Using the following options did not work for me:
    rw,suid,dev,exec,auto,users,async
    mount -l tells me the following when using the options stated above:
    /dev/sda5 on /media/winC type ntfs (ro,nosuid,nodev,noexec,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=utf8,errors=continue,mtf_zone_multiplier=1)
    Thanks for any pointers!

    Trilby wrote:
    You should use ntfs-3g instead of ntfs.  I'm not sure if that will solve this problem, though it might, but it will prevent others.
    As for "sudo cp" failing, that is not odd at all: `cd` is not a program, it is a shell builtin - there is no `cd` binary for sudo to execute.
    Thanks for the explanation. I will try ntfs-3g as soon as I manage to connect to the internet again.

  • [SOLVED] Gparted failed; external HDD borked?

    Hey all,
    I was reorganizing my family's external harddrive yesterday. I had cleared most of the data, except for some old documents and pictures that belong to my brother. Originally, there was an ext4 partition on there for me and an NTFS partition for the others. I removed the ext4 (which was the first partition) and moved the NTFS one to the left, also extending it to fill the entire disk.
    It had been a long day so I just did it, without thinking it could go wrong. Of course, I should have known that if you do something and think "mwah, it'll be alright. I've done it tens of thousands of times and it never failed", it will go wrong.
    Halfway through the process, Gparted got an input/output error and just stopped moving the data. I let it wait for half an hour to see if it would continue, but it didn't (the hardware light on the disk itself had stopped blinking, too) so I killed Gparted. Now of course, I would like to restore the data that's still on there. When I plug it in, nothing happens and also Gparted says it's empty. It does show a single NTFS partition filling the entire disk, though.
    I ask you here because I don't want to mess around with it, trying different stuff. I know I'll get over a hundred results with Google but I want to know it'll work, or at least has a chance to work. Also I wouldn't really know what to search on, so... You can tell me to RTFM and just post a link, I won't mind, but at least I'm sure it is likely to work.
    Last edited by Unia (2013-01-24 21:21:44)

    Testdisk did the trick! Thanks for informing me of this great little tool, it will be on my system standard now and I won't have to inform my brother his old photos are gone
    Last edited by Unia (2013-01-24 21:21:29)

  • [SOLVED] Display manager, GRUB and NTFS

    Hello people
    Yesterday I spent whole day on installling and configuring my arch but i still have 3 problems.
    1st and most important is GRUB, i wanted to dual boot with windows vista, i have windows vista installed on another partition but now, after i installed arch, it doesnt show on GRUB. How can i solve that problem, i really need it because my family is not using linux.
    2. I cant make the Display manager work, i could install xdm but when i type username and password it redirects to the same xdm. BTW, i followed the documentation from arch's website.
    3. I can not open NTFS partitions, i have installed something called ntfs-3g but didn't help.
    Thanks for help.:)
    Btw, i need a network manager so it will connect to wifi network automatically like in ubuntu or windows, i dont want to do "iwconfig ..." evey time ...
    Last edited by khajvah (2012-04-23 10:43:18)

    DSpider wrote:
    There's a wiki on XDM, with a very relevant entry to your problem: https://wiki.archlinux.org/index.php/XD … fter_login
    But why use a display manager at all if you're the only one in your family using Linux? To keep away the plebeians?
    https://wiki.archlinux.org/index.php/Start_X_at_Boot
    Thank you very much, now i have windows and i dont care about display manager
    I think you're confusing it with a bootloader.
    - A display manager lets you choose a user, and depending on the manager perhaps even a desktop environment (GNOME, KDE, Xfce, etc) or a window manager (Openbox, xmonad, awesome, etc).
    - A bootloader lets you choose which operating system you want to start.
    Yeah, i meant, now, nobody from my family will call me and say "WTF have you done with the computer ", bc i am the only one who uses computer not only for inet. Now, they will use windows:)

  • 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/

  • Arch and Win7 cannot open an NTFS partition created by the other

    This is almost certainly related to another post where I was struggling to create logical partitions from Windows. Basically, Linux and Minitool Partition Wizard agreed that there were no logical partitions, but the built-in Windows disk utility said there was. I ended up using fdisk from Arch install media, and Minitool and Arch now both saw the logical partitions (Windows shows a big extended partition of free space). I installed Arch just fine, can boot to it and win7... life is good.
    Not so much. A key to my setup is having an encrypted partition to share data between OS's. I used TrueCrypt with great success on my former laptop and am now having great difficulty!
    Some preliminary information:
    # fdisk -l /dev/sda
    Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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
    Disklabel type: dos
    Disk identifier: 0x1e6513b3
    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 2101247 2099200 1G 7 HPFS/NTFS/exFAT
    /dev/sda2 2101248 172433407 170332160 81.2G 7 HPFS/NTFS/exFAT
    /dev/sda3 172433408 390537215 218103808 104G 7 HPFS/NTFS/exFAT
    /dev/sda4 390537216 500118191 109580976 52.3G 5 Extended
    /dev/sda5 390539264 391587839 1048576 512M 83 Linux
    /dev/sda6 391589888 500118191 108528304 51.8G 83 Linux
    I also went partition by partition to check Minitool's agreement on sectors (they match perfectly with the exception that it doesn't show the extended /dev/sda4 container). I triple checked the Minitool partition info properties as you can't copy and paste from it's window, and pasted the fdisk output to minimize errors. I'm showing a column for mini/Arch for both start/stop sectors, and just subtracted them to make sure I got 0. Appears to be perfect alignment:
    | part | start (mini) | start (arch) | diff | | end (mini) | end (arch) | diff |
    |------+--------------+--------------+------+---+------------+------------+------|
    | sda1 | 2048 | 2048 | 0 | | 2101247 | 2101247 | 0 |
    | sda2 | 2101248 | 2101248 | 0 | | 172433407 | 172433407 | 0 |
    | sda3 | 172433408 | 172433408 | 0 | | 390537215 | 390537215 | 0 |
    | sda4 | 390539264 | 390539264 | 0 | | 391587839 | 391587839 | 0 |
    | sda5 | 391589888 | 391589888 | 0 | | 500118191 | 500118191 | 0 |
    - Screenshot of how Minitool sees my disk
    - Screenshot of how Windows disk utility sees my disk
    I used TrueCrypt 7.1a on both OS's. I created a non-system encrypted partition using the GUI on Arch with the AES cipher/sha-512 hash, with filesystem as "none." Once created I did:
    $ sudo cryptesetup --type tcrypt open /dev/sda3 vault
    That worked fine, which I followed with:
    $ sudo mkfs.ntfs /dev/mapper/vault
    It initialized the device with zero's and then gave me the success/have a nice day message. Closed the volume and rebooted. When I tried to open the device from win7, I got "Incorrect password or not a TrueCrypt volume." Hmmm. I guess I'll try in reverse. I duplicated the procedure exactly as above from win7, this time having TrueCrypt automatically format with NTFS. All succeeds and I can open the device. Reboot into Arch and I get the same message from TrueCrypt! If I try with cryptsetup, it's "No device header detected with this passphrase."
    Next, I tried just doing NTFS with no encryption. From Arch:
    $ sudo mkfs.ntfs /dev/sda3
    All goes well and I can mount it. I boot into Windows and it's not even listed! I used Minitool to issue it a drive letter, at which point clicking that pops up a windows dialog box asking me if I want to format the disk. Format the partition with NTFS in Windows, reboot into Arch and I get:
    [jwhendy@arch_zbook ~]$ sudo mount /dev/sda3 /mnt/scratch/
    NTFS signature is missing.
    Failed to mount '/dev/sda3': Invalid argument
    The device '/dev/sda3' doesn't seem to have a valid NTFS.
    Maybe the wrong device is used? Or the whole disk instead of a
    partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
    Doesn't matter if I add "-t ntfs" or "-t ntfs-3g." I get the same result.
    Just to add a couple more oddities... when I created the NTFS partition in Arch, I also created a file called vault.tc as a TrueCrypt file-based encrypted container. My thinking was that the issue was with TrueCrypt full-partitions and that I could get around it with a plain partition containing an encrypted file. Reboot into windows and the partition isn't shown (as stated above). From Minitool, if I right click the partition and choose "Explore," it lists the partition contents and there is my vault.tc file. Windows thinks it's unformatted!
    I noticed the option to backup/restore a TrueCrypt header, and gave a shot at backing up the working TrueCrypt setup on windows to a flash drive, booting to Arch, and then restoring the /dev/sda3 header from the flash drive file. Arch still couldn't open it.
    Lastly, I noticed when I go to select a device to encrypt in TrueCrypt, my logical partitions aren't showing up (just like Windows only sees the end of the disk as free space). I just can't help but think something is tweaked in the partition table... basically:
    - TrueCrypt sees what Windows sees
    - Arch sees what Minitool sees
    How could I go about diagnosing further or fixing the issue. This is driving me crazy!
    I'd hate to do this given that I already setup my wm, configs, packages, etc... but my last resort attempt would be to wipe my logical partitions and see if I can at least get the win7 disk utility, minitool, arch, and truecrypt to like each other with respect to /dev/sda1-3... and then try to re-add the logicals afterward and re-install arch? I honestly don't know why this would be any different, but was just a thought. The issues from the other post seem to arise with logical partitions not being recognized the same between win/linux.
    Or figure out how to just use primaries (like dedicated boot on a USB drive or something). Or fiddle with growing/shrinking windows to see if I can undo whatever is telling windows where/what things are? Really grasping at straws here.
    Last edited by jwhendy (2015-06-10 23:32:22)

    Hi Ramesh,
    Please install the hotfix package and test the issue again:
    http://support.microsoft.com/kb/2817576/en-us
    In addition, try uncheck the option “confirm open after download” per:
    http://jritmeijer.wordpress.com/2006/08/20/some-files-can-harm-your-computer-if-the-file-information-looks-suspicious-or-you-do-not-fully-trust-the-source-do-not-open-the-file/
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Backing Tracks for Tenor Saxophone

    Dear friends from Apple Communities. I am looking for Backing Tracks of songs for Tenor Saxophone. Yesterday, I was watching some tenor saxophone soloist in the YouTube, and after a presentation from one saxophonist, at the end of the song, he had wr

  • How to prevent/Minimize WindowsXP interference

    I have an application that is troubled by Windows occasionally interputing a two step process and need to eliminate or minimize this interuption.  More specifically  I have an instrument that I need to obtain two pieces of information from- counts an

  • How can I insert the reusult of a failed test of a secuence in the status batch result status message box ?

    Hello, I'm totally new to programming. I started with LabView and test stand to make some test as VI's. When test stand secuence ends, the batch result box (batchmodel.seq) pops out for the several uut's tested in every socket. I'd like to add to the

  • Why my Local Adapter Engine not showed in SLD and Integration Directory?

    Hi guru, I have installed one Local Adatper Engine on Host B, then an XI is installed on Host A, but After I installed the local adapter engine and follow the standard configration step mentioned in this document:https://www.sdn.sap.com/irj/sdn/go/po

  • X3-02 update problem

    - iam not able to udate the firmware the new firmware on my device... my device is running on 5.65 version... the latest version is 5.68 but iam not able to update that....  the software updater shows that the current firmware is the latest firmware.