Hardware :: Defragmeting A Windows Ntfs Partition

Jan 29, 2010

This is not a question, I have done it. I just want to post a little howto in case anyone runs into a similar problem.I will not go into particular details, just the rough description. If need details on something, I'll be happy to explain the part in question.

I am working on linux for almost a decade now. However, there are some things that need to be done on windows, like gaming (ATI drivers for linux are still a bit tricky, especially for newer cards) or rs232 (serial port) based apps (old smartphone management, PIC or ATMega Programming, old graphic calculator like TI92 etc.).So in short, I had once set up a windows system. I wanted to use my files both under linux and windows. The solution for this problem is obvious: I used a NTFS partition I could mount under both OS.Since I am a security concerned citizen, I use to encrypt my disks. However I refused using Vista and Win7 hadn't come out yet, so I was running XP64. The opensource LUKS tools didn't work on that system (driver issues), so I used Truecrypt.Some time ago, I abandoned the windows partition after a fault in the MBR, which rendered the Truecrypt bootloader unusable (yes, even with the rescue disc). Since I rarely have to time play games anymore, that's not a major concern. The rest of the tasks can be handled using a virtual machine (in my case Sun's VirtualBox).So, after about 10 months, I had ended up with a severely fragmented, Truecrypt encrypted NTFS partition which badly needed defragmenting. Linux NTFS-3G drivers have become fairly reliable, but their reliabality decreases as the filesystem fragmentation increases. And the only OS which can defragment a filesystem of this time is windows NT.

Procedure:
The basic underlying problem is that you need to access your raw device from a windows system that by itself lives in an isolated virtual environment. The SMB/CIFS shares are ok to access data, but NAS Filesystems rely on the servers filesystem and cannot be defragmented.What can be defragmented is a SAN share (iSCSI target), because the protocol by itself forwards the device to the host over a network, not the filesystem.

(1)So first of, make sure you have a virtual machine running windows somewhere. it actually doesn't need to be virtual, it can be a remote computer on the same subnet, but in my case, it is a virtual machine. As I said, I used VirtualBox.

(2)Next make sure the Windows box has access to the same network as your linux host. In VirtualBox I used a network interface in NAT mode. I suppose you could also juggle a second loopback device around on the linux host to fulfill the same purpose and keep the windows box of the public network if that is a concern.

(2.5)If you have encrypted your NTFS partition, you need to decrypt it (not mount it!). Using LUKS, use the cryptsetup command to create a decrypted alias of the partition. If you have used Truecrypt, use it's frontend to mount the partition as you would if you wanted to access data, then unmount the alias from its final mountpoint, thus leaving the unencrypted frontend to the partition intact.

So now you have:A linux host with a fragmented NTFS partition (which might be encrypted) that is not mounted.A windows machine (either virtual or remote) with access to the same subnet as your linux host.

(3)Next you need to setup your unencrypted partition alias as an iSCSI target.

View 2 Replies


ADVERTISEMENT

Ubuntu Installation :: Resizing Windows Partition - Install Files On A Non Windows NTFS Partition

Jul 22, 2010

Now however its not letting me resize the Windows partition, mounted or unmounted. It currently occupies the whole disk. I would rather not reinstall the whole thing over again, but I will if I have to. Isnt there an easy way to shrink a Windows partition? I swear Ive done this before and it wasnt this hard. Could it be a problem with the Mint installer that now asks me if I want to unmount my disks before it goes into install mode? On this PC I would like to have

Windows XP
Mint
Ubuntu-Studio
Edubuntu
One of the E17 OSs
Puppy Linux (to create a remix)

I am probably going to put most of the linux partitions on the second laptop drive but I want to install files on a non WIndows NTFS partition.

View 6 Replies View Related

Hardware :: Ran Mkfs.vfat Over Top Ntfs Partition - Any Way To Restore Ntfs Partition Info?

Oct 12, 2010

I was attempting to format a flash drive, and well, used the wrong sdX device. I've run DiskInternals Partition Recovery tool, and all my files are still there (you have to pay $139 to have it restore the files). Is there any way using tools in linux to restore the ntfs partition/files? It was a single disk with the partition taking the entire drive. I've tried mounting it with the -t option, but it says invalid ntfs signature. Man, two lessons the hard way, make sure you backup (duh) and be careful what you type as root.

View 8 Replies View Related

Ubuntu :: Windows Exist On The Same NTFS Partition?

May 1, 2011

So I am reaching an unfortunate conclusion. I asked this of google and got no straight response so I conclude that it is impossible. taking a look at GParted with my 10.4 boot disk, I see

/dev/sda1 NTFS 74GB boot flag
and
unallocated unformatted 7.84GB no flag
So I assume that that 8gb used to be ubuntu.

In the process of trying to fix things, the computer no longer boots windows.

View 9 Replies View Related

Debian :: Using The Same NTFS Partition For Linux And Windows Files

Apr 15, 2015

I have installed Debian as a second OS alongside Win XP, and now I have Win XP on C drive (if viewed from XP), NTFS, my data files (mainly texts and graphics) on D drive (NTSF), and Debian on ext3. Debian sees and opens files on D.

1. If I read-write from-on this D partition from both OSes, is there a chance the data will be corrupted?
2. If I open a Windows-created TXT, GIF, JPG, HTML or other not-proprietary format file from Debian, edit it and save (just SAVE, not SAVE AS) - will this file remain readable from Windows?

View 14 Replies View Related

Fedora :: Hide Windows System Ntfs Partition?

Nov 21, 2009

I have a dual-boot system, Windows XP on primary HDD and Fedora on Slave HDD. NTFS -3G is installed in Fedora, but I would like to hide (or not mount) Windows system partition on Fedora boot, as I have multiple users in Fedora and do not want them to access this partition. I do want to mount/display my NTFS D: partition in Fedora. Is there a way to exclude an NTFS partition from mounting by default?

View 6 Replies View Related

Ubuntu :: Shrinking Windows (ntfs) Partition Inside 9.10?

Jan 15, 2010

im trying to shrink my vista partition with gparted inside ubuntu. I run gparted (and yes i have ntfsprogs) but when i select the ntfs partition and select move/resize it brings up free space preceding... new size... and free space following.so when i input the new size the resize/move button greys out and when i change the freespace following it just puts back my original new size and back and forth.from what i have read i need to run the gparted livecd and go from there. is this true? i know how to do it with diskpart in windows, how to in ubuntu and eventually get rid of windows.my system is 64-bit. [URL]

View 5 Replies View Related

Ubuntu :: Auto Mount NTFS (windows) Partition?

Nov 7, 2010

I have a windows partition on my drive, and I want to access it without having to mount it first, etc. There are just two partitions, windows and Ubuntu. I am running Ubuntu 10.04.1 so I want to mount it on startup. I saw this article: [URL] but I don't know if what it describes will work as it's almost 2 years old. I'm not adverse to commands, in fact would probably prefer those.

View 9 Replies View Related

Ubuntu :: Access Windows (NTFS) Partition In 10.10 Maverick?

Dec 16, 2010

I tried to search around for a way to access my windows partition from within Linux. I was unable to mount the same using "mount" command. I read of a tool "ntfs-config" as well, this too didn't work for me.

Please share if anyone out there has an idea on how we can access the windows partition (NTFS) from within Ubuntu 10.10 Maverick.

[Code]...

View 9 Replies View Related

Ubuntu :: Automounting Windows Vista NTFS Partition

Apr 17, 2011

I am running Ubuntu 11.04.

I am having trouble automounting the ntfs partition. When I try to access the mounted partition, I get an error saying that I don't have permission to view the files. Also, I am not able to change the permissions as root.

The relevant line on the /etc/fstab file reads:

Code:
/dev/sda3 /media/sda3 ntfs defaults 0 0

View 3 Replies View Related

Security :: Virus Infect The Windows Xp Ntfs Partition?

Feb 4, 2010

Let's say I have an avi file that contains a virus for ntfs windows xp sp3. I put that file on a linux ext3 partition. Then on a windows xp sp3 nfts computer, I connect to the partition over a network share via smb. I run the file within the share so the file is never physically on the windows xp sp3 computer. In this situation will the virus infect the windows xp ntfs partition?

View 5 Replies View Related

Software :: Install Grub To Windows Ntfs Partition?

Nov 2, 2010

In HDD with 2 partition

sda1 windows xp
sda2 windows 7

1. It is possible to install grub? (Using live cd)

2. If not, if I create sda3 (ext3), and install grub there and boot both windows will be possible?

View 4 Replies View Related

CentOS 5 :: Dual Boot With Windows Xp On The Ntfs Partition?

Aug 26, 2009

i have windows xp with ntfs partitions on my laptop i want to install centos on it will i be able to dual boot centos with windows xp on the ntfs partition

View 2 Replies View Related

OpenSUSE Install :: Modifying Ntfs Files On Windows Partition?

May 10, 2011

I have just installed Open Suse 11.4 Gnome, and I am trying to work on files on my windows partition that is ntfs, and it keeps telling me that they are "read only"......I check my /etc/fstab file and that it shows permissions at the end of the windows partions to be "0 0", which I was told was what was I needed to be able to work on ntfs files in windows?

View 6 Replies View Related

General :: Run Chkdsk Using A Windows Boot CD On A Linux NTFS Partition?

Aug 6, 2011

This question made me wonder: "Can you run chkdsk using a Windows boot CD on a Linux NTFS partition?" Would it cause more problems, or fix them as in Windows?

View 1 Replies View Related

Ubuntu Installation :: Windows 7 Ntfs Partition Appeared Unallocated

Apr 7, 2010

[URL] I used testdisk as the replies suggested recovered all my linux partition including my 2 linux distros and boot partitions, but now my windows 7 appeared as unallocated space, which is very ironic, I fixed my last problem only to have situation reversed. I recovered the mbr record from my boot partition, but because that record dose not include the ntfs partition, that partition appears as unallocated space. so how can I make that ntfs partition recognized again so I can update grub and boot to my windows 7 partition? Please help me out, I have had this partition stuck in my computer for a while doing nothing...

View 2 Replies View Related

Ubuntu Installation :: Resizing Pre Installed Windows Partition (New NTFS)

Sep 2, 2010

I am not been able to re size the partition. Can anyone please help. I tried to re size and install ubuntu 10.04 on two machines but it did not work. Details are HP mini ( windows xp pre installed with new ntfs partition). Lenovo thinkpad ( windows vista pre installed).Is new windows partition is non - re sizable?

View 7 Replies View Related

Ubuntu :: Windows Xp Sp3 Beside 10.04 LTS - Install Win Xp Sp3 On This Empty Ntfs Partition Safely?

Mar 24, 2011

Currently I have ubuntu 10.04 LTS as the only OS.I have two partitions one for ubuntu and it is ext by default for ubuntu's files.The other is empty NTFS. (yes, it is formatted in NTFS but I haven't saved anything yet on it).The problem is: I want to install win xp sp3 on this empty ntfs partition safely (without losing ubuntu).My friend told me ubuntu will be lost even if I didn't touch its own partition.

View 5 Replies View Related

Ubuntu Installation :: Windows Install CD Cannot Find NTFS Partition

May 3, 2011

I'm running Ubuntu 11.04 on my Acer extensa 5620. I need to install windows and setup a dual boot on this machine. Here's what I did. I followed the instructions on this page

[URL]

and resized my home partition (which is differenet from the file system partition). Anyways, I resized the partition and made a new NTFS partition. This was all done from Live CD. I then rebooted and then tried the windows installation CD. Now here my problem crops up.
Windows says that no partition is found. What have I done wrong? Any ideas? Can the drive be damaged or have I made a mistake some where? I did not specify a mount point for the new NTFS partition, does that matter?

View 5 Replies View Related

General :: Change File Permissions In Windows Ntfs Partition?

Mar 2, 2011

Here is my fstab's content:

/dev/sda7/media/entfsdefaults00
/dev/sda8/media/fntfs-3g silent,umask=00000
[root@localhost code]# ll 2
-rwxrwxrwx. 1 root root 0 Mar 2 20:19 2

[code]....

View 3 Replies View Related

Debian Configuration :: Windows 7 Won't Read NTFS Partition Created By Raspberry Pi

Jan 10, 2016

I have a Western Digital 3TB USB drive connected to a Raspberry Pi 2 running Raspbian Jessie. I created an 30GB ext4 system partition and a NTFS Data partition using the remainder of the drive. I formatted the NTFS partition as follows:

sudo mkfs.ntfs -Q -L Data /dev/sda2

The drive works fine on the Pi but when I connect it to a Windows 7 pc the pc doesn't recognise the format of the Data partition and can't access it.

On the Pi I ran:
$ sudo fdisk -l /dev/sda2

Disk /dev/sda2: 2.7 TiB, 2968557453312 bytes, 724745472 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

[Code] .....

Partition table entries are not in disk order.

View 14 Replies View Related

Hardware :: Windows Vista Can't Read My Ntfs Partition Created By Mkfs

Oct 16, 2010

I'm dual booting windows vista and ubuntu hardy on a multi-partitioned Dell D630. I created a partition using mkfs -t ntfs. Linux has no trouble reading/writing to it, but every time I boot into windows, chkdsk tries to "fix" the partition, fails, and tells me that the partition is corrupted. Can anybody suggest a way to convince vista that the partition is indeed ok, or else another way to create the partition so that vista can recognize it?

View 1 Replies View Related

Software :: Creating NTFS (windows 2008) Bootable Partition From Juntura?

Oct 4, 2010

let me know the process to create Windows 2008 NTFS bootable partition from Linux?

View 1 Replies View Related

Ubuntu Installation :: Unable To Use NTFS Partition In Windows 7 64 Bits And GPT Secondary Table Moved

May 22, 2010

I have a 6TB external eSata bay (Lacie BigQuadra). I made a GPT table with only one big ext4 partition. All was ok. I resized the ext4 partition and I created a 1TB NTFS partition. I can use it on Kubuntu but Windows 7 tell me the partition is not formated. When I go back to Kubuntu, parted tell me that the secondary GPT table is not at the end of the disk and tell me it's probably an other OS that thinks the disk is smaller that its real size. It seems Windows 7 thinks the disk size is 2 TB (and modify automaticaly the GPT table and create a secondary GPT table on the middle of the disk).

What can I do to make my NTFS partition visible in Windows 7? What can I do to prevent Windows 7 to move the secondary partition table on the middle of the disk and to modify the primary GPT table ?

gdisk informations
------------------
$ sudo gdisk -l /dev/sd
sda sda1 sda2 sda3 sdb sdb1 sdb2 sdb3 sdb5 sdb6 sdc sdd sdd1

[code]...

View 9 Replies View Related

OpenSUSE :: NTFS FOLDER - Keep 2 Ntfs Partitions Intact Will Deleting The Partition

May 26, 2011

I am doing major deployment of opensuse 313 pcs from windows to opensuse. I am having a problem that I have to keep 2 ntfs partitions intact will deleting the partition that has windows. Now everything goes well, opensuse installs but the problem is that I cannot give user full rights to ntfs folders. I have used graphical file permission methods n terminal chown n chmod methos but still permissions revert back to root.

View 3 Replies View Related

Software :: Changing An NTFS UUID - Restore An NTFS Partition From A Backup?

Dec 25, 2010

I am trying to restore an NTFS partition from a backup and I need the new drive to have the old (dead) drive's UUID (which I recorded).I really really really cannot use the option of changing fstab to mount using a new UUID, for this case I need the old UUID that existed on the other drive.Is there some ntfs equivalent of tune2fs that'll let me change the UUID on an ntfs partition?

View 4 Replies View Related

OpenSUSE Hardware :: Failure Mounting External NTFS Drive And Internal NTFS Partition / Fix This?

Jul 18, 2010

Just installed 11.3 on my computer, however when I connect an external NTFS harddisk I receive an error message. When I open dolphin to connect to an internal NTFS partition I receive the message:

org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org. freedesktop.hal.storage.mount-fixed auth_admin_keep_always <--

Anyone having an idea how I can fix this?

View 9 Replies View Related

General :: Windows - NTFS Partition Keeps Becoming "unusable" On Ubuntu?

Jun 16, 2010

I just purchased a new 2TB Drive External Seagate, My main system uses both Windows and Ubuntu So I am pretty much stuck with keeping my drive as NTFS. I have done this without any problems before but since I got this new drive I have been having issues. When I first load up Ubuntu the drive mounts and runs fine, after an unspecified amount of time i start getting Input/Output errors when accessing the drive. When I goto the Disk Utility I get a message stating the drive is "Unknown or Unused", If I disconnect and reconnect the drive or reboot everything is fine again. There's no errors coming up with S.M.A.R.T and it seems to work fine while under windows.

View 1 Replies View Related

Debian Installation :: Critical Bug Of "mount -t Ntfs" Cause NTFS Partition Broken

May 2, 2010

About dual boot system with winxp and lenny.

Storage information:
1st primary:SG 160G ATA 100
1st secondary:WD 160 ATA 133
SATA:WD 1000
2nd primary:DVD
2nd secondary:DVD±RW

Winxp in 1st primary.I did a fresh install of lenny on 1st secondary.

info about lenny setup:
1.Partition list:/boot,/,/home,swap
2.Every partition is XFS except swap.

At the end of installion,lenny installed grub on (hd0) that is 1st primary.

Everything seems OK.Lenny runs OK.

But when I switch back to windows xp,the diskmgmt can not detect hdd's info and the system meets a problem of shutting down.

After many times of trying.
I solved the problem by the following way.
1.Boot with windows xp's install CD and use fixmbr on (hd0).
2.Boot with lenny's install DVD , do a grub>root (1,0)>setup (hd1)
After that,edit /boot/grub/menu.lst and change (hd0,0) to (hd1,0) and also (hd1,0) to (hd0,0).
3.Reboot and Press F8 for a boot menu then I can select which disk to boot.
windows boot from 1st primary's mbr,lenny boot from lenny's grub.

The problem is caused by a bug between GRUB and windows' mbr and maybe more about GRUB and XFS.

View 8 Replies View Related

Ubuntu :: Ext4 Partition Recognized As Part Of Original NTFS Partition In Fdisk

Jul 18, 2011

I just installed ubuntu via the windows executable and I couldn't mount my NTFS partition. I found this a little odd and I checked fdisk and it seems to think I don't have an ext4 partition as my entire internal HD is displayed as NTFS.

Here's the fdisk output:

When i try to mount the NTFS partition /dev/sda2 i get the following output:

I can't make heads or tails out of this. Anyone know what's going on here?

Windows recognizes that 30GB were taken from the NTFS partition for my linux install. It reads the max partition size as 465GB. fstab reports the NTFS partition size as 488GB.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved