[BL] Booting from a ppa zip drive

David Moberg davidjmoberg at lycos.com
Sat Mar 12 14:41:11 EST 2005


----- Original Message -----
From: "sindi keesan" <keesan at sdf.lonestar.org>

> >> I have not yet learned to resize a loop.
> >
> > There are two ways, either:
> >
> > dd if=/dev/zero of=newfs.img bs=1024k count=100 # replace count with desired
> >                                                # size in MB
> >
> > mke2fs newfs.img                                # say yes to the prompt
> > mount -o loop newfs.img /hd
> > mount -o loop fs.img /fd
> > cp -a /fd/* /hd
> > umount /hd
> > umount /fd
> 
> 
> Or mount to /mnt instead of /fd?

Yes. Just remember to replace every instance of fd with mnt.

> > That's your choice. Using fs.img makes it much easier to add files
> > which can be read by DOS.
> 
> How would I read a file in DOS from fs.img?

I should have said "add files to the DOS filesystem on the zip disk".

> Can I make a newfs.img and copy a larger fs.img to it and retain 
> all the files but have less free space?  Or can one only copy a 
> smaller fs.img to a larger newfs.img?  My HD BL3 partition is 200MB 
> with about 30MB of files, and I want 50MB of linux on the zip disk.

You can go from large to small. If you have resize2fs, it's even
easier:

resize2fs fs.img new_size_in_blocks_goes_here

A block is usually 1 kilobyte.
You then need to trim off the end with dd:

dd if=fs.img of=newfs.img bs=1k count=new_size

David
-- 
_______________________________________________
NEW! Lycos Dating Search. The only place to search multiple dating sites at once.
http://datingsearch.lycos.com




More information about the BasLinux mailing list