All,
I wanted to create a new ReiserFS partition in the free space of my harddisk.
Initial situation is as follows:
Disk Drive: /dev/hda
Size: 160041885696 bytes, 160.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 19457
Name Flags Part Type FS Type [Label] Size (MB)
--------------------------------------------------------------------------------------------------------------------------
hda1 Boot Primary NTFS [ ] 83889.64
hda2 Primary Linux swap 2048.10
hda3 Boot Primary Linux ReiserFS 20480.95
hda5 Logical Linux ReiserFS 20480.95
Logical Free Space 33139.66
I then create a logical partition of 15GB in the free space of 33MB which becomes hda6:
Disk Drive: /dev/hda
Size: 160041885696 bytes, 160.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 19457
Name Flags Part Type FS Type [Label] Size (MB)
--------------------------------------------------------------------------------------------------------------------------
hda1 Boot Primary NTFS [ ] 83889.64
hda2 Primary Linux swap 2048.10
hda3 Boot Primary Linux ReiserFS 20480.95
hda5 Logical Linux ReiserFS 20480.95
hda6 Logical Linux 15002.92
Logical Free Space 18136.75
I then format this space as a ReiserFS:
root@slackw:/$ mkreiserfs /dev/hda6
mkreiserfs 3.6.18 (2003 www.namesys.com)
Guessing about desired format.. Kernel 2.6.10 is running.
Format 3.6 with standard journal
Count of blocks on the device: 6090624
Number of blocks consumed by mkreiserfs formatting process: 8397
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 7e99be5b-6159-40e5-bc40-ed8da91c361a
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON '/dev/hda6'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok
ReiserFS is successfully created on /dev/hda6.
Now when I mount this file system, Slack thinks it is 24GB
root@slackw:/$ mount /dev/hda6 /mnt/tmp
root@slackw:/$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 20G 8.3G 11G 44% /
/dev/hda6 24G 33M 24G 1% /mnt/tmp
whereas cfdisk says it's only 15GB:
hda1 Boot Primary NTFS [ ] 83889.64
hda2 Primary Linux swap 2048.10
hda3 Boot Primary Linux ReiserFS 20480.95
hda5 Logical Linux ReiserFS 20480.95
hda6 Logical Linux ReiserFS 15002.92
Logical Free Space 18136.75
What did I do wrong?