Tingo, that flew over my head. Could you explain in detail how to dd.tingo said:Have you tried simply dd'ing the file (iso image) to the usb device? (Note: to the root of the device, eg. da0, not da0s...)
It has worked for me in the past (I haven't tried it with 9.0 yet)
Also check dd(1).memstick
This can be written to an USB memory stick (flash drive) and used to do an install on machines capable of booting off USB drives. It also supports booting into a "livefs" based rescue mode. There are no pre-built packages.
As one example of how to use the memstick image, assuming the USB drive appears as /dev/da0 on your machine something like this should work:
# dd if=FreeBSD-9.0-RELEASE-amd64-memstick.img of=/dev/da0 bs=10240 conv=sync
Be careful to make sure you get the target (of=) correct.
The IMG must be dd-ed, the ISOs must be burnt.FreeDomBSD said:The memory stick image (.img) works great. I can't get the .iso file to work. Will the command for .iso retain the format of the .img command?
You mean doing copy/paste or using the cp(1) command? These copy files from a source to a target directory and work on a filesystem level. The dd(1) command has the ability to copy every single block (sector), in other words the boot sector, filesystem structures, etc.FreeDomBSD said:After reading the man page I was no closer in understanding the function of the command. How is it different from copying?
It's a standard Unix command so it's available on practically everything UNIX(R)/Unix-like with small usage differences (related to devices and how they work).FreeDomBSD said:I will try it out, assuming it's available in Ubuntu.
Yes, you can. Or at least, that is what I have done several times in the past. Simply dd the .iso file to the root of a USB memory stick. IIRC, this worked for me on 7.3-RELEASE, 8.1-RELEASE and 8.2-RELEASE at least. Both i386 and amd64. YMMV.bbzz said:You can't just dd .iso to USB stick, it won't boot.
# mdconfig -a -t vnode -f /path/to/image.img -u 0
# mount -t cd9660 /dev/md0 /mnt
# umount /mnt
# mdconfig -d -u 0
Yep, there's an "emulation mode" where the BIOS sees USB mass storage devices as CDROM or floppies depending on the format.tingo said:Yes, you can. Or at least, that is what I have done several times in the past. Simply dd the .iso file to the root of a USB memory stick. IIRC, this worked for me on 7.3-RELEASE, 8.1-RELEASE and 8.2-RELEASE at least. Both i386 and amd64. YMMV.
Under Ubuntu, the option to format my 14.91 GiB hard drive was grayed out. So I deleted the old FAT32 partition and made a new unformated partition (I considered not making any new partitions, but decided to try it with an unformated partition spanning the whole disk first).tingo said:Yes, you can. Or at least, that is what I have done several times in the past. Simply dd the .iso file to the root of a USB memory stick. IIRC, this worked for me on 7.3-RELEASE, 8.1-RELEASE and 8.2-RELEASE at least. Both i386 and amd64. YMMV.
ubuntu@ubuntu:~$ cd /media/xdrive/ ubuntu@ubuntu:/media/xdrive$ sudo dd if=FreeBSD-9.0-RELEASE-amd64-dvd1.iso of=/dev/sdd bs=10240 conv=sync 233255+0 records in 233255+0 records out 2388531200 bytes (2.4 GB) copied, 715.281 s, 3.3 MB/s
No good reason not to: as I mentioned, I'll do so if nothing else works. I'm just trying to learn a thing or two and operaiting within an environment where resource constraints (no USB DVDRW drive) force me to learn and experiment were always the way I learned the fastest (good way to "dive into" a subject for me as well). Plus it's pretty useful, wouldn't you say?dave said:Why not just go to the local shop and buy a cheap USB CD/DVD drive?
https://help.ubuntu.com/community/BootFromUSB said:Either boot from the Ubuntu Desktop Live CD or mount it in the filesystem. Suppose that Ubuntu is running and the live CD is mounted in /media/cdrom (as simple as sudo mount karmic-desktop-i386.iso /media/cdrom), let's make a new dir and store vmlinuz and initrd in it:
Edit your GRUB's menu (with gksudo gedit /boot/grub/menu.lst) and add at the end:Code:
sudo mkdir /boot/usb-boot sudo cp /media/cdrom/casper/vmlinuz /boot/usb-boot sudo cp /media/cdrom/casper/initrd.lz /boot/usb-boot
Now you can reboot your system with your Ubuntu Bootable usb device plugged in and choose USB FLASH DRIVE (tested with Ubuntu 9.10 Karmic Koala Alpha 3).Code:
title USB FLASH DRIVE root (hd0,6) kernel /boot/usb-boot/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper noprompt cdrom-detect/try-usb=true persistent initrd /boot/usb-boot/initrd.lz boot