[H-GEN] Puzzled by 'disk full' message

Michael Anthon michael at anthon.net
Sat Aug 2 08:05:25 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Alex Delaforce wrote:
> When copying the CDs to a partition on hdc (second IDE drive) I mounted
> a 12 G partition as /var/CDs (only a very small swap partition on hdc
> apart from this). Inside /var/CDs I made new directories with names like
> 'Server Install CD1' then copied the CD from '/mnt/cdrom' to the
> '/var/CDs/Server Install CD1' directory as root. When I got to the 7th
> CD I was informed that the disk is full! (~700M x 7 = ~4.9 Gig )

I'd probably concur with others that you may not have the 12G partition 
mounted correctly... however there may also be a neater way to copy the 
CDs (space problems aside).  If I want to copy a CD to a drive so that I 
don't have to stick the CD in every time I need it I would normally use 
dd to copy the CD as a single file (i.e. copy the ISO9660 file system 
from the CD as one piece).  You can then mount that file using the 
"loopback" device like so...

> dd if=/dev/cdrom of=/var/CDs/Server_Install_CD1.iso
> mkdir /var/CDs/Server_Install_CD1
> mount -o loop /var/CDs/Server_Install_CD1.iso /var/CDs/Server_Install_CD1

This makes the copies heaps easier to manage as there is only one file 
for each CD and it also becomes trivial to create a new copy of the CD 
since you already have the ISO image which you can just burn back onto 
another disk.  If you wanted to get super fancy you could possibly even 
configure the auto mounter to automatically mount an image when you 
attempt to access it.

Cheers
Michael


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list