Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Nov 23, 2014 10:08 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Weird partition issue
PostPosted: Tue May 19, 2009 4:26 pm 
Offline
Newbie

Joined: Mon May 18, 2009 12:42 pm
Posts: 6
Location: Wiltshire
Can anyone help explain this one?

on my shiny new lenny system (thanks again davy_gravy !) :D
Quote:
lemon:~# uname -a
Linux lemon 2.6.29.1 #1 PREEMPT Mon Apr 6 22:33:31 CDT 2009 armv5tel GNU/Linux


My partitions are reporting different sizes depending how you look at them:

/dev/sda2 should be my, now increased, root partition of about 3.5Gb.

df is reporting this:

Quote:
lemon:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 482246 360172 97174 79% /
tmpfs 62616 0 62616 0% /lib/init/rw
udev 10240 68 10172 1% /dev
tmpfs 62616 0 62616 0% /dev/shm
/dev/root.old 13303 10980 2323 83% /initrd
/dev/sda1 287785 29414 243513 11% /boot
/dev/sda6 475983764 224536 451580600 1% /mnt/disk1
shm 62616 0 62616 0% /dev/shm


and fdisk is reporting this:

Quote:
lemon:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9281baf0

Device Boot Start End Blocks Id System
/dev/sda1 1 37 297171 83 Linux
/dev/sda2 38 500 3719047+ 83 Linux
/dev/sda3 501 60801 484367782+ 5 Extended
/dev/sda5 501 517 136521 82 Linux swap / Solaris
/dev/sda6 600 60801 483572565 83 Linux



according to: http://www.unitconversion.org/data-storage/blocks-to-gigabytes-conversion.html

3719047 blocks is 1.7Gb ?

and webmin is telling me:
Image

Can anyone advise?

I have no idea if this is kernel related, file system related or what but sure is confusing. :?


Top
 Profile  
 
PostPosted: Tue May 19, 2009 11:43 pm 
Offline
Developer
User avatar

Joined: Sun Dec 31, 2006 10:40 am
Posts: 434
Location: Scotland
fdisk reports partition sizes in blocks of 1024 bytes,

So..... 3719047 /1024/ 1024 = 3.54675960541

And from the other way....

500 - 38 = 462
462 * 8225280 = 3800079360 bytes
1024 x 1024 x 1024 = 1073741824 (Bytes to GigaBytes)
3800079360 / 1073741824 = 3.5390996933 Gb

So what you are seeing is correct.

df reports filesystems space in whatever format you require.

Did you format the disk correctly?

Mine shows the correct stats.
Code:
Apus (root) ~ $ uname -a
Linux Apus 2.6.29.1 #1 PREEMPT Mon Apr 6 22:33:31 CDT 2009 armv5tel GNU/Linux

Apus (root) ~ $ fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         125     1004031   83  Linux
/dev/sda2             126        1371    10008495   83  Linux
/dev/sda4            1372       30401   233183475    5  Extended
/dev/sda5            1372        1434      506016   82  Linux swap / Solaris
/dev/sda6            1435       30401   232677396   83  Linux

Apus (root) ~ $ df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              9851340   1243172   8107744  14% /
tmpfs                    62616         0     62616   0% /lib/init/rw
udev                     10240        68     10172   1% /dev
tmpfs                    62616         0     62616   0% /dev/shm
/dev/sda6            229025040   4255640 213135532   2% /home
shm                      62616         0     62616   0% /dev/shm

Apus (root) ~ $ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             9.4G  1.2G  7.8G  14% /
tmpfs                  62M     0   62M   0% /lib/init/rw
udev                   10M   68K   10M   1% /dev
tmpfs                  62M     0   62M   0% /dev/shm
/dev/sda6             219G  4.1G  204G   2% /home
shm                    62M     0   62M   0% /dev/shm



Anyone want to add? Who knows more about filesystems? I'd be interested in knowing the answer too.

_________________
LS-500GL - Diskless
LS-250GL - Armel, U-Boot NC Enabled
HS-DH320GL - Stock 1.11_1a
LS-H120LAN(PPC) - Dev (foonas)
LS-H120LAN(PPC) - Freelink - 2.6.23.8
LS-H250LAN(MIPS) - Dev (foonas-em, foonas)
LS-HS400DGL(PPC) - Freelink
Thecus N1200 - Ubuntu 8.10


Top
 Profile  
 
PostPosted: Wed May 20, 2009 8:02 am 
Offline
Newbie

Joined: Mon May 18, 2009 12:42 pm
Posts: 6
Location: Wiltshire
Thanks Kaiten

So maybe I have created the partitions correctly but for some reason the formatting has not worked? Does anyone have any idea if this can be repaired non-destructively or should I just start over?


Top
 Profile  
 
PostPosted: Thu May 21, 2009 10:44 am 
Offline
Newbie

Joined: Mon May 18, 2009 12:42 pm
Posts: 6
Location: Wiltshire
I just re-did the root partition and re-ran mkfs.ext3 and now all it well. Perhaps I didn't take this step correctly last time, but it was still a little weird to see!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group