LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-17-2005, 12:04 AM   #1
pattont
Member
 
Registered: Feb 2005
Location: Tennessee
Distribution: SUSE 9.2 Professional
Posts: 58

Rep: Reputation: 15
Resize Win and Linux Partition


Alright I have a 36gb raptor drive.. I know small, but fast. I resized it so that Windows would have 25gb and Linux 10, anyways I am running outta room on my windows partition, is there anyway i can resize the linux partition to something like 6 gb or something just because linux is taking up like 2gb at the most right now.. norton partition magic won't do it can u do it inside linux or something??
 
Old 03-17-2005, 03:08 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Is the Windows partition FAT32 or NTFS?
 
Old 03-17-2005, 03:18 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,634

Rep: Reputation: 144Reputation: 144
You could look for "parted" or "qtparted" to do this. I wasn't lucky with qtparted on this, but I have read these names again and again regarding partitioning tasks. It really SHOULD be able to solve your problem. It might depend on the file system that you choose for linux (ext3 should be no problem).

titopoquito
 
Old 03-17-2005, 10:16 AM   #4
purefan
Member
 
Registered: Aug 2003
Location: Sweden
Distribution: Ubuntu 10.04
Posts: 99

Rep: Reputation: Disabled
shareware but claims to resize any partition no matter what OS u're running:
http://www.partition-manager.com/

Very useful info regarding partitions and how to manage them:
http://www.bloke.com/linux/partition/
 
Old 03-17-2005, 11:32 AM   #5
joe0878
LQ Newbie
 
Registered: Mar 2005
Distribution: mepis
Posts: 3

Rep: Reputation: 0
partition magic you say won't do it, but i know it will....you need to resize your linux partition and then hit apply, it'll then show you with unallocated space...click on your windows partition and resize it to the use max unallocated space...you'll then have to reboot your comp which will take you to dos and it'll do all the work for you....be prepared it can take up to 10 mins....i have very bad luck with qtparted unless i'm just installing a linux system and i only have my windows partitions showing...partition magic is a very, very useful program if you're going to be dual booting with windows...there's also a program called boot magic which comes with partition magic if you don't want to use grub or lilo...if you have any probs let me know and if you have yahoo messenger or teamspeak i'll get on with you and help
 
Old 03-17-2005, 11:58 AM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
From my own experience, PartitionMagic 8 resizes some ext3 partitions, but will not resize others, because it does not recognize the file system for some reason. For example, PM 8 works well with RHL9 and FC1 installed partitions, but will not work on FC2 or FC3 boot/root partitions.

Also, parted will resize ext2, but not ext3. Likewise for QTParted. As far as I can tell, there is no linux/unix/windows utility that can resize a PM8-resistant ext3 partition. Right now, there are two ways to resize these types of partitions: (1) convert them to ext2 and resize or (2) “resize” them by creating new ext3 partitions of the desired sizes and cp everything over to them. EEEEEEEEEHHHHHHHH! (to quote Howard Dean).
 
Old 03-17-2005, 12:26 PM   #7
Maxei
Member
 
Registered: Mar 2005
Posts: 84

Rep: Reputation: 15
Well, I used to have dual boot in the same hard drive (20 Gigb), with Windows98 and Mandrake 9.2.
Then I bought a second hard drive (120 Gb) where I installed Mandrake 10.1 Comm and the old one was given all to Windows.

So, during Mdk install, I used the included tool to resize Windows to take all space. And I am sure it did so.

However, in the reality, Windows can see only 11 G, not the 20 Gb it should. So Now I have a 11 G harddrive instead of the 20 G!!!

Is there a way to recover the lost "ghost" space without reformating the whole thing? Thanks a lot.

Maxei DeVraie
 
Old 03-17-2005, 01:23 PM   #8
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Maxei: If you look at the 20GB drive from Mandrake (i.e., fdisk), is the entire drive an FAT32 partition or is there some blank space?

If it fills the whole drive, what errors do you get when you ask Win98 to check the disk/partition for errors?

If the FAT32 partition was not enlarged, I think you can resize it with parted (vfat), but I have never tried it. It’s just to easy to use PM.
 
Old 03-17-2005, 02:17 PM   #9
joe0878
LQ Newbie
 
Registered: Mar 2005
Distribution: mepis
Posts: 3

Rep: Reputation: 0
I've got partition magic 8.0 and it resizes my ext3...true youmay have to convert it but give it a shot first...always try easiest route...maxei...either look at qtparted for free space or partition magic for unallocated space...if there is unallocated space magic can put it to whatever partition you want where as qtparted in my experience will not...it'll only let you use that free space a new partition
 
Old 03-17-2005, 04:01 PM   #10
pattont
Member
 
Registered: Feb 2005
Location: Tennessee
Distribution: SUSE 9.2 Professional
Posts: 58

Original Poster
Rep: Reputation: 15
it says i cannot resize the ext2.. the only thing i can resize is the swap. i haven't gotten that far in configurations, but i don't really wanna waste all that time reinstalling it.. may have 2 ..
 
Old 03-18-2005, 02:12 PM   #11
Maxei
Member
 
Registered: Mar 2005
Posts: 84

Rep: Reputation: 15
Hi guys, thanks for your advices. in BIOS, the hard drive (hdb, or C: with Win98) is recognized as 20 GB, but scandisc shows only 11.4 GB total space. Then Diskdrake shows 18GB, and says the partition is FAT32 (I remember it was converted to this format when I installed Linux; it was a mistake because actually the original format was not FAT32, but the Linux tool did it automatically). With Konqueror, the mount point /mntwin98 shows 10.9 GB total space.

All these numbers are contradictory. At least the BIOS doesnt lie. Do you think that PM will recover that space? Is there any other tool that you recommend? Thanks a lot

Maxei DeVraie
 
Old 03-18-2005, 03:56 PM   #12
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Maxei: As a general rule, PM will do nothing if there are errors in the partition. It’s kind of a safety mechanism. If windows (scandisk) does not report any errors, PM will probably run. So, you could try using PM to resize the partition to a smaller size and then to the full size, but no guarantees as to it fixing anything.

Likewise, you could try to do the same thing from Mandrake with parted (http://www.gnu.org/software/parted/m...no/parted.html) using the resize command, which supports fat32. Parted can be run with options and devices, but it is a little less intimidating to run “parted” and then let it ask for the device and allow you to enter commands from a parted command prompt. My experience with parted is that it will not resize a partition that has a problem.

Other options to fix the underlying problem so that you can use PM or parted include trying dosfsck, which I have never used, and Norton Disk Doctor. FC3 has dosfsck, so I assume Mandrake will too. To find out, just run dosfsck --help.

From Mandrake, first try running: “dosfsck /dev/whatever.....” and see what output you get. If it did not seem to do anything, try “dosfsck -v /dev/whatever...” or “dosfsck -afv /dev/whatever...”, where a = fix things automatically (may be a bad idea), f = convert lost clusters to files (sound familiar?) and v = verbose. Maybe you should try using the options in the order (1) no options, (2) -v, (3) -fv and (4) -afv.

As for Norton, if you already have or know someone who has any version of Norton Utilities or Norton SystemWorks, you can run Norton DiskDoctor (NDD) from the installation CD and try fixing the problem that way. NDD is a very robust utility. It’s fairly safe to let NDD fix problems automatically.

Good luck!
 
Old 03-19-2005, 10:31 AM   #13
Maxei
Member
 
Registered: Mar 2005
Posts: 84

Rep: Reputation: 15
Thanks a lot WhatsHisName, I will try the Norton utilities (when I get a copy of it). I think is useless to try fto repair from Linux: If Diskdrake (the tool used in Mandrake) could not do it before, it never will (actually, this problem is the fault of Diskdrake IMO). So, the option is to resize from within Windows (Im worried to render useless Windows98 and dont want to repeat installs argh!!

Thanks again.
Maxei DeVraie
 
  


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
how to resize linux partition gry-HuhuY5 Linux - General 6 08-13-2005 07:07 PM
Resize the linux partition guideweb Linux - Software 5 08-07-2005 09:22 PM
resize linux partition ConfusedMonkey Linux - Newbie 9 07-31-2005 02:22 PM
Resize Linux partition perigee Linux - General 3 11-28-2004 05:48 AM
How to resize a linux partition? jadermf Linux - General 4 01-16-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 PM.

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
Open Source Consulting | Domain Registration