Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Redhat Fedora Core


  • Please log in to reply

#16
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,732 posts
I think you need to exit the program and restart it with just /dev/hda.
See:

http://www.redhat.co...oot-parted.html

type "print" and press return to see the size of the partition, then you need to resize it (from the above link):

To resize the partition, use the resize command followed by the minor number for the partition, the starting place in megabytes, and the end place in megabytes.

For example:

resize 1 1024 2048

This example is increasing the size, which is the opposite of what you want to do. You want to shrink the size. The print will show you the ending location, you need to use that for the second argument.
  • 0

Advertisements


#17
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
Thanks for the reply.

Ok now, the thing is I don't know how much to resize/take out. Maybe you can tell me how much is necessary for me to resize. Here is how it looks like.

Using /dev/hda
(parted) print
Disk geometry for /dev/hda: 0.000-39205.687 megabytes
Disk label type: msdos
Minor	  Start		End			 Type			Filesystem	  Flags
1		 0.031	  39197.658		primary		   ntfs			boot

(parted) _

  • 0

#18
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,732 posts
How much free space is there on that partition?

Personally, I would keep the OS partition down to something like 10G or less and have another partition for personal data storage.

For Linux, rough estimates would be around 4-6Gb for the root partition. Then the rest depends on how much you want to use. I personally suggest 100Mb for /root, 5Gb for /home, 512k-1G for swap and the rest for data space. You can have a partition which is used for data which both Windoze and Linux can write to (I dislike writing to the OS partition).

You may not be able to shrink it too much though.

You do have a backup, correct?
  • 0

#19
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
Yes I do have backups of my files.

This is the part I hate, I get so confused. I can really tell, I'm going to screw up my computer. Ok, here's what I did.

I typed in resize 2 1024 2048 and hit enter, then I get the following:

Using /dev/hda
(parted) print
Disk geometry for /dev/hda: 0.000-39205.687 megabytes
Disk label type: msdos
Minor	  Start		End			 Type			Filesystem	  Flags
1		 0.031	  39197.658		primary		   ntfs			boot

(parted) resize 2 1024 2048
Error: Partition doesn't exist.

^ The above is what I got. To tell you the truth Kemasa, I REALLY REALLY don't know what I'm doing. I'm an idiot!
  • 0

#20
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,732 posts
That was an example, not what to type.

What you want is something like:

resize 1 39197.658 20000

I think that is correct and will reduce the size to half of what it is.

If you have a good backup and can restore the files, then there is not much risk, just a hassle.
  • 0

#21
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
Ok thanks for that helpful step :whistling:

Now I get the following:

Using /dev/hda
(parted) print
Disk geometry for /dev/hda: 0.000-39205.687 megabytes
Disk label type: msdos
Minor	  Start		End			 Type			Filesystem	  Flags
1		 0.031	  39197.658		primary		   ntfs			boot

(parted) resize 1 39197.658
End?  [39197.6582]? _

^ So what shall I do next?
  • 0

#22
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,732 posts
How much do you want to reduce the size? If you want it to be in half or so, try entering 20000. Depending on how much space is available, you could try 10000 so that you have more space available.
  • 0

#23
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
Ok now I get the following:

Using /dev/hda
(parted) print
Disk geometry for /dev/hda: 0.000-39205.687 megabytes
Disk label type: msdos
Minor	  Start		End			 Type			Filesystem	  Flags
1		 0.031	  39197.658		primary		   ntfs			boot

(parted) resize 1 39197.658
End?  [39197.6582]? 20000
Error: Can't have the end before the start!

I'm not sure what to type that's why I'm getting all of these errors.
  • 0

#24
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,732 posts
Oppps, I just re-read the web page for parted :-).

Try:

resize 1 0.031 20000

To resize the partition, use the resize command followed by the minor number for the partition, the starting place in megabytes, and the end place in megabytes.
  • 0

#25
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
Ok that's fine no problem:D

Ok now, here's what I got now.

Using /dev/hda
(parted) print
Disk geometry for /dev/hda: 0.000-39205.687 megabytes
Disk label type: msdos
Minor	  Start		End			 Type			Filesystem	  Flags
1		 0.031	  39197.658		primary		   ntfs			boot

(parted) resize 1 0.031
End?  [39197.6582]? 20000
No Implementation: Support for opening ntfs file systems is not implemented yet.

I know that I didn't type it right, that's why I got the following "No Implementation"

I don't know what to type.
  • 0

Advertisements


#26
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,732 posts
The problem is that parted does not support NTFS.

In order to resize the partition, you will need to use another program, such as qtparted, which is on the Knoppix Live CD. Mandrake had the ability resize NTFS, so I would assume that the current version still does (Mandriva). You can use the install disk to resize the NTFS partition, then stop and install Fedora.

Another solution is to reload XP or delete the partition, create a new partition and restore the data. Yet another solution is to get another hard drive.
  • 0

#27
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
Ahh man. That's ok.

Well, I don't have qtparted right now, but I do have gparted but again the thing is I don't know how to use it. Have you had any experience with gparted? If so can you guide me through the process?
  • 0

#28
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,732 posts
I don't have any experience with gtparted, but it looks like it is a gui and should it be easy to use.

Do you have the ntfsprogs? It is listed as a requirement.

See:

http://gparted.sourceforge.net

The screenshots are something to look at.
  • 0

#29
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
I have the gparted live cd. Yea a lot of people say it's very easy to use. But for me, I never partitioned/resized anything before in my life and I don't have the knowledge to do it.

Anyway, I thank you for your time. Give my thanks to dsenette too if you run into him. I'm gone for now from all of this, gotta clear my head.....never knew it was gonna be like this. Smell ya later.
  • 0

#30
J0hn

J0hn

    Member

  • Topic Starter
  • Member
  • PipPip
  • 65 posts
Sorry about the double post, but I'm having trouble resizing my partitions. After resizing my partitions, I clicked on "APPLY" and I get the following detailed information:

ntfsresize -P-i-f-v /dev/hda1

ntfsresize v1.13.0(libntfs 9:0:0)
Failed to set locale, using default 'C'.
Device name :/dev/hda1
NTFS volume version: 3.1
Cluster size :4096 bytes
Current volume size: 41101689344 bytes (41102 MB)
Current device size: 411016919044 (41102 MB)
Checking for bad sectors...
Bad cluster: 0x7bf - 0x7bf (1)
Bad cluster: 0x29ab2 - 0x29ab2 (1)
Bad cluster: 0x9721c - 0x9721c (1)
Bad cluster: 0xc003f - 0xc003f (1)
Bad cluster: 0xc0283 - 0xc0283 (1)
Bad cluster: 0xc04e4 - 0xc04e4 (1)
Bad cluster: 0xc0a14 - 0xc0a14 (1)
Bad cluster: 0xc1500 - oxc1500 (1)
ERROR: This software has detected that the disk has at least 8 bad sectors.
***************************************************************************
WARNING: The disk has bad sector. This means physical damage on the disk
surface caused by deterioration, manufacturing faults or other reason.
The reliability of the disk may stay stable or degrade fast. We suggest making
a full backup urgently by running 'ntfsclone--rescue...'then run 'chkdsk /f/r'
on Windows and reboot it TWICE! Then you can resize NTFS safely by additionally
using the --bad-- sectors option of ntfsresize.


^ The above is what I got. As you can see I have 8 bad sectors. The thing is, I don't know what to do to resolve this problem so that I can resize my partitions. Can someone lend me a hand, please? Thanks......

Oh and by the way, I did do a disk cleanup and defrag my hard disk before doing all of this.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP