Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Installation and Live Media
FedoraForum Search

Forgot Password? Join Us!

Installation and Live Media Help with Installation & Live Media (Live CD, USB, DVD) problems.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th March 2010, 02:11 PM
japafi Offline
Registered User
 
Join Date: Mar 2010
Posts: 87
windows_xp_2003firefox
Image doesn't fit to USB - where did the free space disappear?

I wanted to participate to printer (and HDD) testing and commented this to the news thread. I have high doubts that people read news to see if additional comments have come, so I'll post here. For give me on double posting, but this hopefully is worth reading.

The dilemma here is: Where did the free space disappear?
Filesystem overhead cannot account for 14 megabytes of lost space.



The Fedora 13 nightly build is just a tiny bit too large to fit into 1 gig USB key.
Though liveusb-creator reports
Code:
[creator:544] Verifying filesystem...
[creator:245] freebytes = 994951168
[creator:246] isosize = 980418560
[creator:248] overlaysize = 0
df -k during the install:
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb1               971632    217184    754448  23% /media/FEDORA
/dev/loop0              957102    957102         0 100% /tmp/tmpLLEWnm
Both of the above indicate that there is enough space in the USB key.
Ie. Freebytes is more than isosize and /dev/sdb1 bigger than /dev/loop

cp: writing `/media/FEDORA/EFI/boot/vmlinuz0': No space left on device

Second try running liveusb creator comes up with:
Code:
Not enough free space on device.
935MB ISO + 0MB overlay > 934MB free space
Where did 14 megabytes of free space disappear?
(971632 x 1 k blocks = 948MB)
Reply With Quote
  #2  
Old 29th March 2010, 02:55 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Image doesn't fit to USB - where did the free space disappear?

Hello,
Fedora reserves space you may try
# tune2fs -m0 /dev/sdXX
to remove reserved space
Reply With Quote
  #3  
Old 29th March 2010, 04:24 PM
japafi Offline
Registered User
 
Join Date: Mar 2010
Posts: 87
windows_xp_2003firefox
Re: Image doesn't fit to USB - where did the free space disappear?

Forgot to mention that the USB stick is formatted as FAT16.
Disk /dev/sdb: 999 MB, 999555072 bytes
255 heads, 63 sectors/track, 121 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000ccfc

Device Boot Start End Blocks Id System
/dev/sdb1 1 121 971901 6 FAT16
Reply With Quote
  #4  
Old 29th March 2010, 04:32 PM
kyryder
Guest
 
Posts: n/a
linuxfedorafirefox
Re: Image doesn't fit to USB - where did the free space disappear?

Hello,
You might want to format your usb flash drive to FAT32 since there can be some issues with FAT16 cluster size that could be causing your problem. There is also a setting in Fedora that reserves a % of disk space for root. This setting is adjustable, do a search for more info.

Ky

More info:
Disadvantages of FAT16 are:

The root folder can manage a maximum of 512 entries. The use of long file names can significantly reduce the number of available entries.

FAT16 is limited to 65,536 clusters, but because certain clusters are reserved, it has a practical limit of 65,524. Each cluster is fixed in size relative to the logical drive. If both the maximum number of clusters and their maximum size (32 KB) are reached, the largest drive is limited to 4 GB on Windows 2000. To maintain compatibility with MS-DOS, Windows 95, and Windows 98, a FAT16 volume should not be larger than 2 GB.

The boot sector is not backed up.

There is no built-in file system security or file compression with FAT16.

FAT16 can waste file storage space in larger drives as the size of the cluster increases. The space allocated for storing a file is based on the size of the cluster allocation granularity, not the file size. A 10-KB file stored in a 32-KB cluster wastes 22 KB of disk space.

Last edited by kyryder; 29th March 2010 at 04:36 PM.
Reply With Quote
  #5  
Old 29th March 2010, 05:23 PM
japafi Offline
Registered User
 
Join Date: Mar 2010
Posts: 87
windows_xp_2003firefox
Re: Image doesn't fit to USB - where did the free space disappear?

To create Fat16 volume that is less than 1 Gigbyte (1024^3 bytes), the cluster size is 16Kb.
statistically half of the cluster size is lost for each file. There is 29 files in the livecd image, so statistically 232Kb lost. Even if we'd be extremely unlucky and for each we have the max overhead where file size wastes clustersize -1 byte per each file, we would lose 463kb. Still long way to go to 14Mb...
Reply With Quote
  #6  
Old 29th March 2010, 06:23 PM
Gödel's Avatar
Gödel Offline
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 1,095
linuxfedorafirefox
Re: Image doesn't fit to USB - where did the free space disappear?

Quote:
[creator:544] Verifying filesystem...
[creator:245] freebytes = 994951168
[creator:246] isosize = 980418560
[creator:248] overlaysize = 0

The iso image is only a bit smaller than freebytes, some more space is required for isolinux boot files which is a directory containing ~14mb of files (including the kernel image vmlinuz0).

Having said that, they really shouldn't make the live image so big, isn't it supposed to fit on a cd anyway?
Reply With Quote
  #7  
Old 30th March 2010, 02:11 AM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Vancouver Canada
Posts: 1,285
windows_xp_2003firefox
Re: Image doesn't fit to USB - where did the free space disappear?

Quote:
Originally Posted by Gödel View Post
The iso image is only a bit smaller than freebytes, some more space is required for isolinux boot files which is a directory containing ~14mb of files (including the kernel image vmlinuz0).

Having said that, they really shouldn't make the live image so big, isn't it supposed to fit on a cd anyway?
Not that one. Who uses CDs anymore anyway? DVDs and USB are the way to go.
Reply With Quote
Reply

Tags
disappear, fit, free, image, space, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Free space? Schmutztaucher Using Fedora 0 24th February 2010 04:32 AM
Help removing free space to create Raw free space nightmare55 Using Fedora 3 14th February 2007 06:03 AM
Hard disk -- Free space not equal to available space ?? michaeleekk Hardware & Laptops 2 30th August 2006 02:20 PM
FC3 and Free space Desert_Eagle EOL (End Of Life) Versions 1 9th March 2005 11:17 AM


Current GMT-time: 06:46 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat