> On Sep 2, 2014, at 8:55, Joseph <[email protected]> wrote:
> 
>> On 09/02/14 06:36, Mick wrote:
>>> On Tuesday 02 Sep 2014 01:26:05 Joseph wrote:
>>> On 09/02/14 01:08, Neil Bothwick wrote:
>>> >On Mon, 1 Sep 2014 17:42:47 -0600, Joseph wrote:
>>> >> I just tried "usb_instal.sh" script from systemrescuecd-x86-4.3.0.iso
>>> >> and my box boots just fine. So why do I have problem using "unetbootin"
>>> >> and generating bootable USB manually.
>>> >
>>> >unetbootin uses some $MAGIC that doesn't work with all ISOs. isohybrid
>>> >seems to work with everything and is much simpler to use too.
>>> 
>>> I just tried it as root:
>>> isohybrid  install-amd64-minimal-20140828.iso
>>> dd if=/home/joseph/Downloads/install-amd64-minimal-20140828.iso of=/dev/sda
>>> bs=4096 sync
>>> 
>>> And the USB still can not boot it :-/
>> 
>> This is rather strange.
>> 
>> What do you see when you run
>> 
>> fdisk -l /dev/sda
>> 
>> *after* you have completed dd and sync as you show above?
>> 
>> -- 
>> Regards,
>> Mick
> 
> Yes, indeed I find it very strange as well.
> I just re-run the dd on my faster box.
> 
> dd if=/home/joseph/Downloads/install-amd64-minimal-20140828.iso of=/dev/sdb 
> bs=4096
> 48640+0 records in
> 48640+0 records out
> 199229440 bytes (199 MB) copied, 318.573 s, 625 kB/s
> sync
> 
> fdisk -l /dev/sdb
> 
> Disk /dev/sdb: 960 MiB, 1006632960 bytes, 1966080 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
> Disklabel type: dos
> Disk identifier: 0x1047d058
> 
> Device    Boot Start       End Blocks  Id System
> /dev/sdb1 *        0    389119 194560  17 Hidden HPFS/NTFS
> 
> -- 
> Joseph

Hi,

Just wanna say few words to clarify few things about bootstraping. If you know 
what you are doing, this all is very simple.

What you need for a working system is a working root filesystem that contains 
all the scripts, modules and executables. A minimal cd contains this. You could 
also use stage3 tar ball.

Then you need a working kernel image and possibly a initrd. There is a working 
kernel on minimal cd.

All begins with boot loader. That loader is loaded by BIOS first. Then boot 
loader starts executing and loads kernel with right parameters. Kernel takes 
over and loads rootfs and so on.

On normal disk (USB, sata, ATA, SCSI (and DVD i think)) you have a normal MBR 
(first 512 bytes of disk) which BIOS loads to 0x07C0 address in memory and 
starts executing. So just install boot loader (like grub) to the beginning of 
the disk and it will boot. With right commands/config you can load the kernel 
correctly and boot.

CD is different. BIOS can't read ISO file system. For CD boot you will need to 
create image of a floppy-disk and install your boot loader into that image. The 
boot loader has to have drivers to read the real ISO file system so that it can 
load the kernel into memory and boot. Because of this a plain cd isoimage is 
unbootable although all necessary stuff is there. It is easily arranged so that 
it becomes a bootable USB disk.

-- 
-Matti
  

Reply via email to