On 21/03/13 10:00 AM, Ethan Rosenberg, PhD wrote:
On 03/21/2013 07:19 AM, Brian wrote:You previous problem was that /dev/sdf is a file representing a device. You need to mount the device in order to see what files it contains. You also need to do this to copy the files to it.I don't really know where you are coming from and what you want to achieve because I tend to delete list mails in HTML only on sight. Nothing personal, you understand - just pure laziness on my part :) However, believe it or not, you are nearly there! On Thu 21 Mar 2013 at 00:20:39 -0400, Ethan Rosenberg, PhD wrote:<br> I'm doing something wrong and can’t figure it out.<br> <br> <br> Downloaded and unzipped -<br> rosenberg:/home/ethan/DOSutil# ls -lh<br> total 32M<br> -rw-r--r-- 1 root root 31M Mar 21 00:02 FreeDOS-1.1-USB-Boot.img<br> -rw-r--r-- 1 root root 115K Mar 21 00:02Agreed.FreeDOS-1.1-USB-Boot.img.bz2<br> <br> Attempt dd -<br> rosenberg:/home/ethan/DOSutil# dd if=FreeDOS-1.1-USB-Boot.img of=/media/usbstick/FreeDOS-1.1-USB-Boot.img<br>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^ This is your error. The image should be written to the device, which is /dev/sdf in your case. dd if=FreeDOS-1.1-USB-Boot.img of=/dev/sdf Or cat if=FreeDOS-1.1-USB-Boot.img > /dev/sdf I usually check the image is an isohybrid one which can be written to a USB stick with dd or cat. brian@desktop:~$ /sbin/fdisk -l FreeDOS-1.1-USB-Boot.img Disk FreeDOS-1.1-USB-Boot.img: 32 MB, 32505856 bytes 64 heads, 32 sectors/track, 31 cylinders, total 63488 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00077d8f Device Boot Start End Blocks Id System FreeDOS-1.1-USB-Boot.img1 * 32 63487 31728 e W95 FAT16 (LBA That's ok. The image contains a filesystem.Brian - Thanks. Here is what I tried. rosenberg:/home/ethan/DOSutil# ls -la /dev/sdf brw-rw---T 1 root floppy 8, 80 Mar 21 01:15 /dev/sdf rosenberg:/home/ethan/DOSutil# dd if=/home/ethan/DOSutil/FreeDOS-1.1-USB-Boot.img of=/dev/sdf 63488+0 records in 63488+0 records out 32505856 bytes (33 MB) copied, 10.2578 s, 3.2 MB/s rosenberg:/home/ethan/DOSutil# ls /dev/sdf /dev/sdf rosenberg:/home/ethan/DOSutil# ls -la /dev/sdf brw-rw---T 1 root floppy 8, 80 Mar 21 01:16 /dev/sdf I am still TOTALLY CONFUSED. Ethan PS Again, my apologies for the HTML posts. It was not intentional. =========== OK found the file. rosenberg:/home/ethan/DOSutil# fdisk -l FreeDOS-1.1-USB-Boot.img Disk FreeDOS-1.1-USB-Boot.img: 32 MB, 32505856 bytes 64 heads, 32 sectors/track, 31 cylinders, total 63488 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00077d8f Device Boot Start End Blocks Id System FreeDOS-1.1-USB-Boot.img1 * 32 63487 31728 e W95 FAT16 (LBA) I did not realize that fdisk -l <file> would find a file. Now I copy the Bios executable to the usb stick and boot the laptop?? Ethan try: mount -t vfat /dev/sdf1 /media/usbstick cp <bios updater program> /media/usbstick cp <BIOS file> /media/usbstick Note that /media/usbstick needs to exist. Also you should be root to do this (try su or sudo bash). |