Jump to content

Size of disk doesn't match physical partition


kramsret
 Share

Recommended Posts

I installed a new 80GB disk (slave, hdb).

 

I used the Mandrake (9.0) Control Center (diskdrake) to create a new 20GB /usr directory on hdb. I was prompted to copy files from the old /usr on hda to new /usr on hdb. I chose yes, the files copied. I wasn't sure what to do next, but figured out an hour later that I had to rescue disk, edit the /etc/fstab to point to the new /usr on hdb.

 

Everything worked. EXCEPT: The new hdb /usr doesn't indicate the correct size:

 

LSPARTS gives: 20,343 MBytes (20 gigs. As I expected)

DF gives: 3995256 1k-bytes (4 gigs. WRONG.)

 

So I only have 4 gigs of space on 20 gigs of disk. Diskdrake indicates the size is the correct 20MB.

 

What did I do wrong? (Something, I'm sure. I'm learning as I go here).

 

Thanks.

Link to comment
Share on other sites

Here's the df command:

 

--------------------------

 

[apa@linuxwin apa]$ df

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/hda6 3526172 293128 3053924 9% /

/dev/hda8 2583064 2260272 322792 88% /home

/dev/hda1 5114692 4036696 1077996 79% /mnt/win_c

/dev/hda5 7709184 5887280 1821904 77% /mnt/win_d

/dev/hdb5 3995256 1821500 1970804 49% /usr

192.168.0.12:/home/backup

23750584 13309464 10441120 57% /mnt/backup

192.168.0.12:/home/mp3

23750584 13309464 10441120 57% /mnt/mp3

192.168.0.12:/home/pop

23750584 13309464 10441120 57% /mnt/pop

[apa@linuxwin apa]$

 

--------------------------

 

/usr was on hda3 before I moved it to hdb5. It looks like all the files auto-copied from /usr on hda3 to /usr on hdb5. So my system works fine. The problem is, the /dev/hdb5 partition should actually show 20 GIGS, not about 4 gigs as the df command, above, shows.

 

My Gnome system monitor also shows the /usr partition as 3.8 gigs. But diskdrake shows it as 20 gigs. Something is out of whack.

 

Thanks again.

Link to comment
Share on other sites

ext3 was what my filesystem WAS.

 

I gave up last night, backed up my /home, reinstalled Linux, and went from there. I had to re-do my 3dfx, java, and a few other tweaks, but it went very smoothly. And as I'm still learning, each reinstall is a good exercise for me.

 

Now I have a 1 gig /root, 500 mb swap, 30 gig /usr, and 48 gig /home.

 

Thanks for trying to help. The problem was too weird for me to want to deal with it anymore. Something went wrong with the KDE Diskdrake, methinks.

Link to comment
Share on other sites

I am probably the last person to suggest this to you since I tend to react the way you did, but I'm going to go ahead anyway. There is no reason to reinstall except in extreme circumstances. One of the main strengths of Linux is that it can almost always be repaired.

 

Counterspy

Link to comment
Share on other sites

I hear you. And agree fully.

 

But I looked at this way:

 

ONE: I was solving the problem. I was in a bit of a hurry to get it solved, and the reinstall was the fastest way.

 

TWO: I'm still a semi-noob, and every time I reinstall I have to repeat and learn things over and over. It's truly helped my learning curve a great deal to do reinstalls.

 

Thanks to those who responded.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...