LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-16-2005, 05:10 PM   #1
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
mkreiserfs compute error?


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?
 
Old 06-16-2005, 05:29 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Original Poster
Rep: Reputation: 46
Never mind, I found out. hda6 was 24GB before I repartionned the harddisk, and I forgot to reboot Linux so it appears that the kernel was not aware of the change.

Big fun, easy to screw up your harddisk. But then, it does say "ATTENTION: YOU SHOULD REBOOT AFTER FDISK!"...
 
  


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
glibc in capter 6 -- error: cannot compute suffix of object files Yoyo302 Linux From Scratch 23 05-21-2010 09:28 AM
Configure: error: cannot compute sizeof (long double) in glibc pass 2 irfanali Linux From Scratch 29 02-03-2010 07:48 AM
Help! 2.4.29 + nptl = glibc error: cannot compute (long double), 77 Yerp Linux From Scratch 3 03-25-2005 07:28 PM
error when installing gift: error: cannot compute sizeof (short), 77 v1pEr Linux - Software 5 11-04-2004 03:43 AM
mkreiserfs: command not found dworkin Linux - Newbie 3 03-22-2004 02:14 PM


All times are GMT -5. The time now is 08:28 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration