LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2006, 07:02 PM   #1
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Rep: Reputation: 0
NtfsResize?


Trying to free space in my Windows XP thats formatted in NTFS to install Linux. I supposely have 200Gigs and running a NVDIA Geforce 7900 GTX with a Pentium 4 and Dual 512mb ram

Ok I read the instructions about 5 times already still don't get it!
(kinda new to the Linux scene) This is what I did, I downloaded the latest G-Parted Live CD 0.2.5-2 ran it etc, etc, told it to run in full X server and got an error, got send to native Linux, so I said F it ill do it here:


Code:
ntfsresize -n -s 80G /dev/sda1 : ok the simulations worked
Code:
ntfsresize -s 80G /dev/sda1 : it worked
I got out, booted windows and windows ran dskchck
then the instructions told me to do this:

Code:
dd if=dev/sda of =sda.mbr bs=512 count=1
:

well I did this in G-Parted I just replaced the hda with sda (wheres my memory is stored) because in the instructions the memory is stored in hda

Code:
sfdisk -d /dev/sda > sda.pt
:

I had to download Knoppix to do this because for some reason G-Parted live didn't have fdisk or cfdisk in it

ok after this whats next? What do I do? Did I do anything wrong?
becuase Slackware for some reason still can't detect any free space :/

O yeah I ran G-Parted in mini X server after partitioning Windows XP and it didn't let me partition my drive and it looked like my sda now consumes 80 gigs than having 80 gigs of unallocated space

Last edited by Entheos; 07-03-2006 at 07:32 PM.
 
Old 07-03-2006, 08:52 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
The knoppix cd should have a nice gui partitioning tool called qtparted . You will probably need to un-mount things first. The command: ( umount -a ) should do it.

If you still want to do it from the command line, here are my notes...
The command umount -a is still good.
Code:
When decreasing the size of a partition, do the file system first. This is true for Windows or Linux partitions.
When increasing the size of a partition, do the partition first.

To resize an NTFS partition to a smaller amount:
I run defrag and scandisk before proceeding
Boot up with the Linux cd

# Backup the partition table with the command:
sfdisk -d /dev/hda > /mnt/images/w2part

# This will show how much space can be gained.
ntfsresize --info /dev/hda1

# In this case, I'm resizing the file system to an available amount of 8000M (8GB).
ntfsresize --size 8000M /dev/hda1

# Run the fdisk utility to resize the partition.
# Delete the old partition and create a new one.
# Make sure to use the original starting point and make any changes only at the end of the partition.
# Don't forget to set the partition type to 7 (NTFS) and write the changes.
fdisk /dev/hda

# Reboot and let Windows do the chkdisk thing.
# Reboot with the rescue cd and run the resize with no options to make sure the file sytem matches the partition size: ntfsresize /dev/hda1
 
Old 07-03-2006, 11:46 PM   #3
Entheos
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Code:
# Run the fdisk utility to resize the partition.
# Delete the old partition and create a new one.
# Make sure to use the original starting point and make any changes only at the end of the partition.
# Don't forget to set the partition type to 7 (NTFS) and write the changes.
fdisk /dev/hda

could u show me the steps I gotta take or put in fdisk to do this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntfsresize an extended partition? bleargh Linux - Software 1 05-19-2005 07:12 AM
Help understanding ntfsresize? dr_zayus69 Linux - Software 13 03-18-2005 07:02 AM
ntfsresize not resizing enough eno_on Linux - General 5 12-28-2004 08:42 AM
slackware > installation > ntfsresize kleer Linux - Newbie 23 12-28-2004 06:44 AM
Problem after using NTFSResize 1.9.1 and fdisk StE_gUy Linux - General 1 04-18-2004 01:56 PM


All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration