This is a discussion on Partition within the Getting started tutorials forums, part of the Linux Getting Started category; Hi all I've a 9 GB SCSI disk, i want to create a fixed partion of 512MB but if i ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hi all
I've a 9 GB SCSI disk, i want to create a fixed partion of 512MB but if i define 512 it create a partion of size 509.97 but i need it to be fixed at 512MB, so can anyone tell me how should be i define to create a fixed partion? Regards Asim |
| Sponsored Links | ||
|
|
|
|||
|
Hi,
If you create any partition, by default it ll take 5% of the filesystem blocks reserved for the super-user.This avoids fragmentation, andallows root-owned daemons, such as syslogd( If you do not want this then you have to specify the following option at the time of filesystem creation. #mke2fs -m reserved-blocks-percentage /dev/hda1 Note: refer man page of mke2fs
__________________
thanks, aaru |
|
|||
|
damn you stumped me again with that question.
when you run mkfs.filesystem_extn viz. mkfs.ext2 or mkfs.ext3 and pass the switch -v you will see mkfs will allocate some blocks for the inode tables. and inode tables is where the file system is indexed. inode table is like house door number which tells the io where to seek the file. thus if your partition size is 512 MiB? and you are trying to have 512 MiB as space for that file system? then either set the size/resize of that partition to 550+ MiB. even if you use jffs which is nice when space is a pinch else try ext2 and set the block size normal which is 512 or ext3 with block size 1k, you will still need to sacrifice some space for the creation of the inode tables. you really got me stumped. because you can never have the cake and eat it. thus if you think you use fdisk and make a 512 mb partition and also want to have 512 mb space? be my guest. aaru you became my guest: #mke2fs -m reserved-blocks-percentage /dev/hda1 Note: refer man page of mke2fs i will buy you some beer. please also run dumpfs -v and debugfs -v and show me how you got 512 MB space of a 512 MB space parition against that /dev/drive_map_device_partition_number. |
|
|||
|
Quote:
p.s. you may use gparted or kparted and expand/resize that 509.97 mb to 512 mb using the mouse. squeek! |
|
|||
|
Quote:
"512*1024==512*1024" |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux boot partition | ramjimh | Linux software | 1 | 03-24-2008 06:48 PM |
| partition resize | myfoot | XEN | 1 | 12-03-2007 09:43 PM |
| mounting within an already mounted partition | scytale | Linux software | 2 | 08-17-2007 09:36 PM |
| backup lvm partition | chimu | Linux software | 1 | 12-21-2006 02:29 AM |
| Deleted SWAP partition | sonaikar | Linux software | 1 | 02-05-2005 06:20 PM |