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 03-01-2009, 08:55 PM   #1
Changes
Member
 
Registered: Oct 2008
Posts: 190

Rep: Reputation: 16
Partition size mismatch


My Win98SE old-games machine has a Samsung 40GB drive in it, which it sees as a 20GB drive. So resize the partition, you'll tell me... and that's exactly what I set out to do (despite not remembering setting up a half-size partition) when I connected it to my main computer (running Kubuntu) and started gparted.
But gparted saw it correctly as a 40gig drive, thought the partition took the entire disk, and refused to let me increase its size.
Df, however, disagrees with gparted and agrees with Win98SE.

http://www.technfun.com/various/tech/hd-wtf.png

Why the heck is this happening, and how do I get the rest of the partition to be seen by everything?

Thanks.
 
Old 03-01-2009, 09:11 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
What does your computer motherboard say about the drive?

Your Win98SE disk probably has a FAT32 file system. That file system has an official limit of 32 GB. That may be part of the problem. Also I suspect that you may be misreading some of the specs.
 
Old 03-02-2009, 07:36 AM   #3
Changes
Member
 
Registered: Oct 2008
Posts: 190

Original Poster
Rep: Reputation: 16
The mobo recognizes it correctly.
I've had 40GB FAT32 partitions in the past (IIRC I had them bigger than that, too) and they never misbehaved like this. I know the official limit is 32GB, but the filesystem seems capable of addressing more space.

What specs could I possibly be misreading? The drive has 40 gigs, and that's that.
 
Old 03-02-2009, 07:54 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,931

Rep: Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825
FYI the max 32GB FAT32 is only a MS imposed limitation in OSs >=W2K. The actual limit I believe is like 8TB. Not sure why the df command is not showing the correct size. Just for some more information what does the output of fdisk -l (that is a small L) show?
 
Old 03-08-2009, 08:15 AM   #5
Changes
Member
 
Registered: Oct 2008
Posts: 190

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by michaelk View Post
Just for some more information what does the output of fdisk -l (that is a small L) show?
Code:
Disk /dev/sdb: 40.0 GB, 40060919808 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x80c2c10f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        4870    39118243+   c  W95 FAT32 (LBA)
The disk is a Samsung, if it's of any help.
 
Old 03-08-2009, 08:40 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
The filesystem inside a partition can be smaller than the partition. I know a few ways I've created that situation myself. I don't know how you got there.

gparted can easily fix it. You just need to resize the partition (maybe twice). When gparted resizes a partition, it doesn't seem bothered by the fact that the filesystem was initially the wrong size. It resizes the partition as instructed and it resizes the filesystem to be consistent with the new size of the partition.

I don't recall trying this where the change was in opposite directions. You can only shrink the partition and shrinking it a little would grow the filesystem. I wouldn't be confident there aren't bugs in that obscure case.

I would probably try shrinking the partition all the way to slightly smaller than the size of the filesystem, then grow it again to the size you really want.

Last edited by johnsfine; 03-08-2009 at 08:41 AM.
 
  


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
Mismatch file size liamkincaid25 Linux - Newbie 11 07-28-2008 10:16 AM
apt-get Failed to fetch...Size mismatch noeffort Linux - Software 2 03-24-2007 02:55 PM
usb disc - size mismatch ungua Linux - Hardware 7 12-08-2006 06:16 AM
apt-get - Size mismatch jayprakash Debian 9 04-07-2006 01:43 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM

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

All times are GMT -5. The time now is 02:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration