I need to resize a NTFS partition in a disk for which I have an image (dumped with dd).
I mounted it through the loop device on linux:
# losetup -o 32256 /dev/loop0 disk.img # I got the offset from looking at fdisk's output # mount /tmp/t /dev/loop0 # ls /tmp/t [content of NTFS partition shows correctly] # umount /tmp/t # gparted /dev/loop0
gparted shows me the disk correctly; it just contains one large NTFS partition I want to shrink.
I have it had it running for one hour now.
Question: will this work? There is lots of disk access but the timestamp and size of the underlying file disk.img remain unchanged.
To replace my aging hard-disk, I bought a new, bigger disk to hold two NTFS partitions (system + data) to run XPSP3.
Unless I missed it, PartClone in Clonezilla doesn't resize a partition to use the extra space. So I now need to resize the second partition.
Since NTFS is a proprietary filesystem, before I go ahead and use Gparted or some alternative, can experienced users confirm that resizing NTFS partitions using Linux tools is rock-solid, or I better use a closed-source, Windows-based solution instead?
I used QParted to size one my hard drive's NTFS partition to make unallocated space available to install SUSE. QParted created the the unalloacted space fine and I got SUSE up and running.
However, the NTFS partition is messed up. The QParted GUI and the SUSE's Disk management GUI shows it as NTFS drive with 319 GB space. However, nothing seem to be able to read/write to it. QParted gives a warning "Unable to read contents of this file system! Because of this some operations maybe unavailable." Is there any way to fix this NTFS partition so I can recover data from it?
What's the best tool or method to resize an NTFS partition containing Windows XP Home but with some evidence of being installed using Windows Vista? (Possible answer: Windows 7...) I bought a Fizzbook Spin, UK version of Intel Classmate PC with touchscreen. Disk is about 55 GB; I want to resize system partition C to about 17 gigabytes and then maintain it using something like partimage on live CD/DVD/USB for complete backup of volume: 15 gigabytes roughly compresses to one DVD, 2 gigabytes for hibernation memory storage which I won't back up (and can't move off C), pagefile on the next volume (probably 4000 MB on FAT32, an affordable commitment of disk space to buy not worrying about the page file size). Plus, I will be able to store the backup of volume C on volume D.
The machine can boot Linux (Knoppix 6.2) from external DVD drive, from a USB flash memory key, and from SD[?HC] card. I don't have a separate Windows install CD or recovery partition, but there's an Intel tool to generate a recovery, um, stick. There's evidence that XP's partition was created by Vista, as follows: 1 MB unused before the system partition; an error message about "correcting errors in the uppercase file" which apparently means "Vista did something on this disk that XP thinks is wrong, but this is not serious" - and several attempts to resize the volume with GParted have left Windows unbootable, blue-screening for a split-second and then rebooting. Apparently that's a Vista experience, and it would've been really bad if I hadn't taken a backup already.
I'm pretty sure that in at least one attempt, I remembered and successfully turned OFF the default-on "Round to cylinder" option in GParted... or is that WRONG? Standard Vista/Parted/resize advice (before 2010) such as [URL] seems to be "Use GParted, then use the Windows Vista installation CD to make your ruined hard disk partition properly bootable again." Since I don't have a Vista installation CD to use or legally borrow for this computer - unless I buy Vista or Windows 7 (which I'm considering anyway, for speech recognition) - I appear to be stuck. I do have more than one other XP computer, in case I can use something from there to exorcise the Vista-ness. But I want to keep the extra software (and device drivers) supplied with this little computer.
I am doing a fresh install of Fedora 10 64bit on my PC. What I have done is, freshly installed Vista Home Premium 64 bit on the entire Hard Drive (680GB), then fired up the live CD and told the installer to resize sda1 (The windows partition) to about a 60:40 ratio. I intend to dual boot the system
Now the thing is, it's been running for half an hour now and there's no progress indicator on the installer so I don't know if its actually doing anything. Well there is a progress indicator but it's nonsensical, it just moves backward and forwards. The HDD indicator LED on my computer is flashing every now and again, but not constantly as I expect it to?
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 a dual boot system with Ubuntu Lucid and Windows 7 Ultimate 32bit on a 320 GB hard drive. During the last month, I've completely moved from Windows to Ubuntu but I have to keep Windows for a few softwares like ooVoo and Office, especially OneNote. But now 105 GB for windows and 50 GB for Ubuntu doesn't seems right, as I can't copy any more files on my Desktop in Ubuntu, because it's full. I was just wondering if it's possible to resize the NTFS partition and add like 50GB or so to the ext4 partition which is my Linux's root. The NTFS drive is on /dev/sda5 and the ext4 one is on /dev/sda7.
I have around 30gb of free space in my partition table immediately before the Linux partition. I want to resize my linux partition to take up this space.
I tried booting with live cd, sucessfully umounted the hard drive but found I could not resize the partition. On clicking the 'edit size' button, partition manager recognised the free space before the partition but when i reduced this, the 'ok' button was greyed out. (it was not greyed out for the windows partition so I could, in theory, increase the windows partition to take up the free space but this is not what i wanted to do).
I am pretty sure that I had managed to unmount the drive correctly as the padlock symbol had dissapeared (I took the attached screenshot, which does show the lock symbol, after rebooting into my normal system).
Anyone got any ideas as to why it wont allow this? There is no reason why i can resize the partition to take up the free space BEFORE it is there?
I'm on a work desktop and im just wondering what the chances are of data loss if i resize my paritions i have 2 NTFS 1 10GB and 1 64GB (Not sure why but thats how it is) I want to take 30GB from the 2nd partition and add onto the main 10GB. Is it only Gparted that has a chance of Data Loss or is that with all parition editors, its just that alot of NTFS windows progams indicate that there software is safe like this one for example url.
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.
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?
I have a windows box running w2003 server on 1 volume with 2x ntfs basic partitions. c: = the windows bit, d: = the data bit for user data.I have cloned (clonezilla) the volume to another and deleted the data (d bit and want to extend the c: into the freed space.I'm booted from a partedmagicv5 cd and using gparted to attempt this.I can't see a way to do this with gparted but then, I could be thick. Maybe I clone off reformat and copy back?Is there a better way or even is this the correct forum (please don't refer me to Microsoft website:-) for this type of question?This is a test box so not worried about breaking it, but the test is to try to solve a live problem at a school I support which is running out of hd space.
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.
I want to change my sda2 partition to ntfs type. i have installed GParted but it is returning a strange type of error. Here is the error dump file...
WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot. WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
First off let me say that I love working with Ubuntu. It's a great OS to learn Linux on. Now on to my problem. I have a laptop that dual boots. Ubuntu 9.10 x64 and Windows 7 Ultimate x64. Been working just fine. I was using NTFS-Config to auto mount the Win7 partition during startup of Ubuntu. It has been running fine. I am able to move files between the linux partition and the NTFS partition with no problem. Now I've come across a problem. I big problem. Just this week I installed VirtualBox onto Ubuntu. I started creating virtual machines. 6 in all (3 Win 2k3, 1 2k8 and 1 Win7). I was saving the virtual machines to the NTFS drive as this was by far my largest drive. I used a directory titled "virtualbox" under the c:/users/public directory. This setup was working great. Was able to get my vm's patched and up to date. Created several snapshots. Basically I was a happy camper.
Last night I booted into Windows 7. OS started fine. I was just surfing the web. After that I rebooted the system and entered Ubuntu and started Virtualbox. I tried to start a vm and it complained that the virtual harddrive was missing. I checked to make sure that the path was correct for the virtual drive and discovered that the entire virtualbox directory that I created on the NTFS partion was gone!!! Everything else was in place and intact including music and large video files that I had downloaded to the Ubuntu partion and moved the the NTFS partion.
I save these virtual machines???? Should I abandon using NTFS-Config. This is somewhat critical since I had took sometime to create this test lab and to have it disappear from simply booting into Windows 7 is crazy.
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.
I have read several tutorials on how to install it on my Laptop with pre-existing XP without destroying XP in order to get a dual-boot system. For example on those two pages...
...it reads that in the Ubuntu install menu I have to select "manually edit partition table", which I have found and selected, and then I should supposedly be able to edit the size of the desired partition. However, no option for changing the partition size appears. Instead I get a menu where I am asked to determine how I want to mount the partition (as ext4, ext3, etc.) and if I want to format it. However nowhere it mentions anything related to "change size" or similar.
I made three partitions when I installed Ubuntu. Ubuntu 20.1 gig. windows 20.1 gig. data 110 gig
I no longer want or need the windows partition. so I used system > administrator> disk utility to delete the windows partition. Now to hopefully prevent a problem. How do I enlarge the Ubuntu partition without causing problems?
Can I do it while I am ubuntu or do I need to do it from the live cd or what?
I have a laptop with a 320GB disk. Windows 7 and Ubuntu 10.04 It has 8 partitions: [From Testdisk]
Long story short, after reinstalling windows 7 and messing around a little with its partition and the other ntfs one (resizing etc); Gparted won't open the disk. It shows all the disk as unallocated space, And throws a message to the terminal which says something like "Can't have a partition out of the disk." Funny thing is that *almost* everything is working fine. Everything works except that ubuntu can't use the swap. (Dmesg says: "Swap area shorter than signature indicates") Also, testdisk, if i run a deep search for partitions, finds the last partition twice, but the second time the partition goes from 37129 0 1 to 40240 254 63 , while the disk ends at 38913 255 63. The problem is that I can't use Gparted now and I want to resize a partition.Also I believe that going without swap is not good for ubuntu.
I am dual booting Windows 7 and Ubuntu on my laptop, and I'm trying to resize my ubuntu partition to make it larger. When I boot from the GParted Live disc , however, It only recognizes the existence of my 160 Gig windows NTFS partition which has ~15 Gigs of free space, which I want to reformat and expand ubuntu into (I freed that space by shrinking my windows partition from inside windows 7). I know my Ubuntu partitions are there (I'm in Ubuntu now, plus my HD is 200 Gigs not 160), but I can't see them.
I have a feeling this has something to do with my resizing of my windows partition from windows, but I'm not sure.
Code: sudo fdisk -lu Disk /dev/sda: 160.0 GB, 160041885696 bytes 240 heads, 63 sectors/track, 20673 cylinders, total 312581808 sectors Units = sectors of 1 * 512 = 512 bytes
I'm dual booting Win7 and Maverick and I'm running low on diskspace on my Ubuntu partition.I booted into an Ubuntu 10.10 live CD and opened Gparted. After shrinking the storagepartition I wanted to grow the extended ubuntu partition into the unallocated space to the left, but for some reason it won't let me do that.
I want to resize my linux partition using gparted. The partition in my hdd right now looks like this:
Uploaded with ImageShack.us
I dont want to screw this up, I know I have to use the gparted boot disk. But really, can anyone give me sort of step by step guide of how to resize my linux partition ( I was thinking in expanding it from the current 25gb to 30gb).