You are not logged in.

#1 2009-12-08 04:10:58

=OTS=G-Man
Member
Registered: 2009-12-08
Posts: 5

[Solved] Strange free space after adding 2nd hard drive

Hello,

Im pretty new to linux but am learning pretty fast, fast enough that I needed to install a second hard drive.

Every thing went well, got the new drive in and mounted to /home and moved all my old /home to the new drive. After all that I went to delete the old /home on hda resize the / partition to use the rest of the drive.

I used gParted 0.5.0 and booted from their live CD and did the deed. BUT now drive hda (40GB drive) shows that / is taking 36.92GB, when it was originally using about 4GB on the original 7GB / partition.

I ran the disk usage tool and..well
1) It shoes that I'm using 4GB of 40GB
2) Only shows that I have 44GB available when I have 2 40GB Drives installed.

can someone tell me whats going on here?

to recap

Originally the 1 drive was laid out as

/boot - 100MB
swap - 260MB
/       - ~7GB
/home - remainder of drive

then I (wanted to) changed it to

[sda]
/boot - 100MB
SWAP - 260MB
/        - Remainder of drive

[sdb]
/home - 40GB


Thank you for any help.

I have attached the screen shots

Screenshot--dev-sda%20-%20GParted.png

Screenshot--dev-sdb%20-%20GParted.png

Screenshot-Disk%20Usage%20Analyzer.png

Last edited by =OTS=G-Man (2009-12-10 06:02:03)

Offline

#2 2009-12-08 11:33:44

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: [Solved] Strange free space after adding 2nd hard drive

Was the newly-built partition's FS ext4? I had a small media server once, and when I was resizing my ext4 partition using gParted, it just got really messed up. I know gParted is meant to support ext4, but this time it really screwed everything. Messing with partitions is dangerous like that.

Last edited by pritchard92 (2009-12-08 11:41:43)

Offline

#3 2009-12-08 14:03:48

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: [Solved] Strange free space after adding 2nd hard drive

I can't see your images or copy and paste the text links..

Nevermind, I managed to copy a link but I get an error message from the web host.

Last edited by dmartins (2009-12-08 14:04:49)

Offline

#4 2009-12-08 20:54:18

=OTS=G-Man
Member
Registered: 2009-12-08
Posts: 5

Re: [Solved] Strange free space after adding 2nd hard drive

No the it was always ext3 i just made the new drive/partition have XFS.

as for the images, they should be back now. My internet wend down last night and the images are hosted here.

Offline

#5 2009-12-09 05:48:19

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: [Solved] Strange free space after adding 2nd hard drive

Have you tried running fsck on /dev/sda3? That might fix your used space problem. /dev/sda3 will have to be unmounted to do this so you'll need to boot from a CD. The Arch installer or the Gparted CD should do the trick.

Could you post the output from the command df -h --total ? That would be easier to understand than the screenshots I think! smile

Last edited by dmartins (2009-12-09 05:50:15)

Offline

#6 2009-12-09 06:17:42

=OTS=G-Man
Member
Registered: 2009-12-08
Posts: 5

Re: [Solved] Strange free space after adding 2nd hard drive

ill try the fsck right now

heres the output you requested

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             7.3G  3.9G  3.0G  57% /
none                  505M  120K  505M   1% /dev
none                  505M     0  505M   0% /dev/shm
/dev/sda1              99M   12M   83M  12% /boot
/dev/sdb1              38G   93M   38G   1% /home
total                  46G  4.0G   42G   9%

thats interesting.

/dev/sda3 is showing its old values almost like something in the partition tables didn't get updated?

Last edited by =OTS=G-Man (2009-12-09 06:19:55)

Offline

#7 2009-12-09 06:45:52

=OTS=G-Man
Member
Registered: 2009-12-08
Posts: 5

Re: [Solved] Strange free space after adding 2nd hard drive

sweet that seems to have fixed it

/dev/sda3              37G  3.9G   31G  12% /
none                  505M  120K  505M   1% /dev
none                  505M     0  505M   0% /dev/shm
/dev/sda1              99M   12M   83M  12% /boot
/dev/sdb1              38G   93M   38G   1% /home
total                  75G  4.0G   69G   6%

Offline

Board footer

Powered by FluxBB