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]
Using a small hard drive (180 GB) dual booting windows XP for gaming and Ubuntu 9.10 for my other stuff during install I didnt know how much of each partition i would use, so i did 50-50 1 for ext3 and one for NTFSHowever after awhile it seems I have run out of space on my NTFS and have tons of unused space on my ext3.What I am wanting to do is shrink some of that ext3 down and give it it NTFS, I did a little searching and found a couple of old posts but I was a little sketchey on em. Simply looking for some personal Methods or Tools you have used and a starting point of how to use them.
I have nearly 200GB of space free on the HD with my linux main EXT4 partition, and I'm wondering if I can convert a large part of this to a new NTFS partition that I can use for my windows XP paralell install?
Basically, what do I have to do to resize and create the new partition and how do I get windows to recognize it?
I have an lvm volume group VG_GUESTS and inside it alogical volume LV_NTFSDATA that was connected to andformatted to NTFS by a guest virtual machine (KVM). I can mount the 1st NTFS partition on that lv manually like this:
Code: sudo kpartx -a /dev/VG_GUESTS/LV_NTFSDATA sudo mount -t ntfs-3g /dev/mapper/VG_GUESTS-LV_NTFSDATA1 /mnt/NTFSDATA1
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.
I wanted to shrink my Windows NTFS partition to allow me to grow my extended partition which contains my Linux partitions, namely to grow my swap space and home directory some however it just fails at enlarging the extended partition. Is this a known problem because I know there were rewrites to the storeage backend of Anaconda.
I recently decided to resize a partition on my HDD (partition on which Ubuntu was previously installed).This was in order to remove Ubuntu from one of my HDD. I got rid of the Grub loader by booting on my windows system recovery disk and using Bootrec.exe/FixMbr and my computer now boots directly into windows. I then deleted the Ubuntu partition.
To get to the heart of the problem, I am trying to move the free space that is in the extended partition out and merge it with C. I tried doing this with my Gparted liveCD but it didn't work. I didnt have anything to save the error message onto, but I will try the process again when I get home and save the error onto my external drive so that I can post it here.
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.
I have been attempting to set up a bunch of partitions on a bunch of hard disks, in preparation for installing Maverick. I will be setting up a number of RAID partitions, so I will install from the alternate disk (ubuntu-10.10-alternate-amd64.iso). Now ever since they added support for GRUB2 and a new partition type and align-to-megabyte and a whole bunch of other goodness, partitioning has been buggy. This has been true for Maverick and Lucid. Even the 10.04.1 version (an Ubuntu LTS!) still has problems. Every time I try something else, some other bizarre bug rears its ugly head. (Yes, I have been reporting them on Launchpad when I find a new one.)
In order to move forward on this project, I have been using a variety of partitioning tools. I temporarily installed Maverick on a small partition, and have used Disk Utility (palimpsest) and GParted while booted into that. Occasionally when things get really strange I boot up the latest version of System Rescue Disk, which contains the latest version of gparted. I use these various tools to try out various partitioning schemes, just laying out empty partitions that will be formatted or assembled into RAID arrays later. When I get all the desired partitions set up, I will boot into the alternate installer and do the final installation. (I don't want to do the entire thing within the alternate installer because it makes my head hurt. I do have a lot of partitions.) This has been going on for weeks now. Every time I try something different, something weird happens, and I have to try various workarounds, or switch to different tools. Basically, my partitions eventually become unstable.
Here's the latest mind boggler: Disk Utility displays nice graphical maps of your partitions. This image includes before and after screenshots showing what happens to my partitions occasionally. We start with three primary partitions and one extended partition. The extended partition goes all the way to the end of the disk. We put a small logical partition into the extended partition, at the beginning of it. We can then click on the "free" portion of the extended partition and create additional logical partitions if we like.
Afterwards, the extended partition has magically shrunk itself down until it is the same size as the small logical partition it contains. The free space has migrated out of the extended partition, and is now useless, as you can't have more than four primary+extended partitions. Disk Utility won't let you create another partition. What happened between the Before and After pictures? I don't know. I do know that I did not ever tell any tool to change the size of any partition. Moving or resizing partitions can trigger various known bugs, so I never even try to do that, I just delete partitions and start over.
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.
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.
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.
I am a new user of Linux, and I actually had a task that is the ability to resize (specifically Shrink) storage of Virtual Machine, I was thinking that the best to start on is to know how to resize partition in linux using command line since our VM runs in Linux environment.
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.
[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...
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?
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.
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
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?
I am completely new to Linux in general, and have recently downloaded Fedora 15 KDE spin. I tried dual-booting between Windows 7 and Fedora by shrinking one of my Windows partitions (I have two, this partition not containing the Windows installation). I tried shrinking it to 30 GB less than the total space available on the partition, and after pressing continue, received an error (which I unfortunately dismissed quickly and can't remember). In the file manager, Fedora showed that my partition changed from 1.3Tb to 1.2 Tb, but I couldn't access it. Upon rebooting into Windows, I still can't access it, receiving a "format drive before use" popup and then error stating that it is possibly of a different filesystem or corrupt.
Unfortunately, I stupidly didn't backup any of my data (which I will be sure to remember to do in the future). I installed EASEUS Partition Master 8.0.1 Home Edition, which states that my drive is still of NTFS filesystem and has the total space it should. However, upon clicking "check drive," it states there are no errors and when trying to "explore files," it doesn't find any (yet it shows the correct amount of used and unused space). I then tried running TestDisk, but only allows me to check my media drive E, which is my dvd drive that has my Fedora Live CD in it (which cannot be ejected manually or through Windows, an error stating it cannot be ejected). I didn't go through with TestDisk for my DVD drive because I needed to verify the type of partition (which to my knowledge shouldn't even exist). It shows 700 something MiB / 600 something MiB. Although I have decent general knowledge about computers, I am a complete novice when it comes to doing something like this.
I have serwer Debian with my website. My provider splited the disc into 5GB partition for / and 495GB partition for /var. Everything was going ok for over two years but now I don't have enough memory on /. I'd like to increase the partition but the problem is that /var is just next to it so I can't easily change the end of the first one. I need some safe solution. It might be even just shrinking partition for /var, adding new one after if it helps anyhow (I have about 450GB free memory).
# parted print GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA ST3500418AS (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos
Number Start End Size Type File system Flags 1 512B 5369MB 5369MB primary ext3 boot 2 5369MB 500GB 494GB primary ext3 3 500GB 500GB 538MB primary linux-swap(v1)
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?
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?
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?
I was wondering if its possible to resize my actual ubuntu "partition" inside windows, when I installed Ubuntu I didn't think I would get to love this OS, but I ended up loving Ubuntu and I have been downloading many files, installing interesting apps, and using my HD space in different ways.The problem started today when a popup alerted me about the lack of space for my filesI googled for answers, I found many tutorials on how to resize partitions but my problem is that I installed ubuntu inside windows and I only have one partition,