Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-14-2006, 12:11 PM
|
#1
|
LQ Newbie
Registered: Dec 2006
Posts: 14
Rep:
|
missing 20GB on 160GB drive
I put a 160GB hard drive that was formatted NTFS and probably had an XP install on it at one point in my FC5 box as a slave drive on the primary channel. I ran FDISK, deleted and created a new partition. Then formatted it as EXT2. When i mounted the drive it only gave me 7GB.
So i ran this:
[root@localhost ~]# dd if=/dev/zero of=/dev/hdb1 bs=1024k count=1
and repeated the FDISK and format steps and now I have 139GB.
Much better, but is there a way i can get the remaining 20GB or so?
These are a few other things i tried:
[root@localhost ~]# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM
Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 19457 156288321 83 Linux
Disk /dev/dm-0: 79.3 GB, 79322677248 bytes
255 heads, 63 sectors/track, 9643 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
[root@localhost ~]#
[root@localhost ~]# umount /dev/hdb1
[root@localhost ~]# e2fsck -f /dev/hdb1
e2fsck 1.38 (30-Jun-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hdb1: 11/19546112 files (9.1% non-contiguous), 628733/39072080 blocks
[root@localhost ~]# resize2fs -f /dev/hdb1
resize2fs 1.38 (30-Jun-2005)
The filesystem is already 39072080 blocks long. Nothing to do!
|
|
|
12-14-2006, 01:19 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
The "missing" space is in reserved blocks. You can release the reserve by using the command:
tune2fs -m0 /dev/hdb1
|
|
|
12-14-2006, 02:25 PM
|
#3
|
LQ Newbie
Registered: Dec 2006
Posts: 14
Original Poster
Rep:
|
thanks
that got me to 147GB from 139.
|
|
|
12-14-2006, 02:40 PM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Most of the rest is in the different definitions of gigabyte. Linux uses power of 2 based values to report disk space, while Windows and drive manufacturers now use power of 10 based values.
So:
160GB = 160*1000*1000 = 160000000
and
160000000/1024/1024 = 152.59GB
The remaining delta, 5.59GB (152.59-147) is in filesystem overhead (the data structures needed to create and store files/directories, permissions and extended attributes.
|
|
|
All times are GMT -5. The time now is 10:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|