Skip to Content.
Sympa Menu

baslinux - Re: [BL] Booting from a ppa zip drive

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Booting from a ppa zip drive
  • Date: Sat, 12 Mar 2005 23:05:41 +0000 (UTC)

On Sat, 12 Mar 2005, David Moberg wrote:

----- 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


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


For 50MB 50000


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

count=50000

Before you had bs=1024K and count=50 - I presume I could do the same here.

We made the boot disk (it took a couple of hours to come up with a completely good 1.44MB floppy disk - one drive would not format anything until we cleaned it, another formatted disks with 1 bad sector as 100% good and they would not work with other images such as a 1-floppy linux)
and I will try making the 50 MB fs.img on the zip drive tomorrow and find a way to boot to it with loadlin from the baslin directory for practice.

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

_______________________________________________
BasLinux mailing list
BasLinux AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/baslinux



keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org




Archive powered by MHonArc 2.6.24.

Top of Page