Skip to main content

Thread: Best methods to create an image for CF


often seem more 1 way 1 best way. attempting , believe have found way i'm not sure if best way. going layout need do, how have found , if knows better way or has feedback please reply.

planning on installing minimal install of ubuntu + snort on computer has no hard disk drive rather has compact flash card seen hdd because connects via ide port. important loads ram because cf on ide slow. want load ram , not write cf.

plan to, on current ubuntu desktop follow steps customised live cd scratch , use debootstrap create chroot, install need , nothing more. when making iso set "toram" in boot options. dd image onto cf card. when want update system, go chroot, update, , remake image , dd onto card.

have never done before not sure if work or if best way go this. might bad way go it, idk have come in search. possible being dumb , have missed know method this.

feedback, suggestions, links other methods, etc welcome.

more background: system booting cf has lots of ram, 8gb, fast 3.6gzh quad core cpu, , 3 pci express intel pro/1000 server adaptors (nic cards)

again, goal make image of ubuntu + snort etc. install pre configured (the snort , networking configurations have been created , turned debs easy install) hard part being image needs not write , stay in ram speed because not cf on ide (so thats 133 mbyte/s.) cf card it's self 20 mbyte/s) bad idea writing back.

thanks!

michigander,
1 thing may want try use unetbootin create image.
http://unetbootin.sourceforge.net/
nothing else can create image usb flash drive, use dd
copy image , move compact flash.

i've installed tiny core 2g cf , works wonderful on ampro
readyboard. have instructions somewhere, having trouble locating
them @ moment.

here few tidbits i've stumbled across in searches:
1. plug in 2 gig compact flash card, , use gparted see mounts as. create ext2/ext3 partition , format it.

2. 0 out compact flash card:
sudo dd if=/dev/zero of=/dev/sdb bs=16k

3. 0 out compact flash card partition #1:
sudo dd if=/dev/zero of=/dev/sdb1 bs=16k

4. copy mbr use dd command. dd command works under linux distros , other unix operating systems too.
master boot record (mbr) 512-byte boot sector first sector of partitioned data storage device of hard disk.
mbr total size

446 + 64 + 2 = 512

where,

* 446 bytes - bootstrap.
* 64 bytes - partition table.
* 2 bytes - signature.

512 vs 446 bytes

* use 446 bytes overwrite or restore /dev/xyz mbr boot code contents of $mbr.backup.file.
* use 512 bytes overwrite or restore /dev/xyz full mbr (which contains both boot code , drive's
partition table) contents of $mbr.backup.file.

dd command copy mbr (identically sized partitions only)

type dd command follows:
dd if=/dev/sda of=/dev/sdb bs=512 count=1
above command copy 512 bytes (mbr) sda sdb disk. work if both discs have identically sized partitions.


dd command 2 discs different size partitions

# dd if=/dev/sda of=/tmp/mbrsda.bak bs=512 count=1
restore image sdb:
# dd if=/tmp/mbrsda.bak of=/dev/sdb bs=446 count=1
above commands preserve partitioning scheme.

5. sudo blkid

udisks --mount /dev/sdb

sudo umount /dev/sdb

dd if=/dev/sdb of=tc30d1.img bs=1024
dd if=/dev/sdb of=tc30d2.img bs=1024
dd if=/dev/sdb of=tc30d3.img bs=1024
dd if=/dev/sdb of=tc30d4.img bs=1024
dd if=/dev/sdb of=tc30d5.img bs=1024

mkdir tc30plus_dos/
cd tc30plus_dos
sudo mount -o loop -t msdos tc30d1.img /mnt/disk
sudo umount /mnt/disk
sudo mount -o loop -t msdos tc30d2.img /mnt/disk
sudo umount /mnt/disk
sudo mount -o loop -t msdos tc30d3.img /mnt/disk
sudo umount /mnt/disk
sudo mount -o loop -t msdos tc30d4.img /mnt/disk
sudo umount /mnt/disk
sudo mount -o loop -t msdos tc30d5.img /mnt/disk
sudo umount /mnt/disk


i've included txt files i've kept on years. might
give idea or two.

i'd think if booted cdrom, , had cf on ide primary/secondary port,
should able install there. i've done similar ampro readyboard. i'd recommend using
ext2 format cf because it's supposed limit writes, if internet correct. brand
of cf used transcent, , appears work fine booting tiny core 4.1



larry


ref:
http://www.damnsmalllinux.org/wiki/i...frugal_install
http://www.damnsmalllinux.org/wiki/i...ans_install%29
http://www.knoppix.net/wiki/poor_mans_install
http://www.knoppix.net/wiki/cheat_codes

here interesting read, find interesting:
http://ubuntuforums.org/showthread.php?t=688872
attached files attached files


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] Best methods to create an image for CF


Ubuntu

Comments

Popular posts from this blog

Embed interactive SWF in PDF - losing interactivity

bonjour sur reader comment je change mon imprimante par defaut

Falang and too many redirects - Joomla! Forum - community, help and support