Not exactly; a normally formatted USB drive has partition tables and
stuff at the very start of the drive and partition(s) beyond that. If
you just copy the image over in the normal way as you would copy a
picture or document it'll just end up as a file within the partition.
That won't work. Instead you use the dd tool to overwrite everything
from the very start of the drive
the important bit there is where it gives some examples of using dd
"
# under BeOS to partition X on the master on the first channel
dd if=/path/to/image of=/dev/disk/ide/ata/0/master/X
# under BeOS to the raw slave on the first channel (overwriting the MBR)
dd if=/path/to/image of=/dev/disk/ide/ata/0/master/raw
# under Linux to partition X on the first harddisk
dd if=/path/to/image of=/dev/hdaX
# under Linux to the raw second SCSI disk (could be a USB drive)
dd if=/path/to/image of=/dev/sdb
In your case the target is likely to be somehting like
/dev/disk/scsi/0/0/raw but please use drive setup or something to
confirm. The important word is "raw" rather than 0 or 1 - ie the whole
drive rather than a partition. Similar thing with that last example
under linux; notice that the raw disk is sdb rather than sdb1 or sdb2.
Ok, I'll check it in terminal and with 'USB Commander'.
Thanks
I tried but am getting the following errors:
Report bugs to <bug-fi...@gnu.org>.
$ ls -alR /dev/bus/usb/
/dev/bus/usb:
total 0
drw-r--r-- 1 baron users 0 Aug 29 12:28 .
drw-r--r-- 1 baron users 0 Aug 29 06:28 ..
drw-r--r-- 1 baron users 0 Aug 29 12:28 0
crw-r--r-- 1 baron users 0, 0 Aug 29 12:28 unload
/dev/bus/usb/0:
total 0
drw-r--r-- 1 baron users 0 Aug 29 12:28 .
drw-r--r-- 1 baron users 0 Aug 29 12:28 ..
crw-r--r-- 1 baron users 0, 0 Aug 29 12:28 0
crw-r--r-- 1 baron users 0, 0 Aug 29 12:28 hub
$ dd if=/hal9000/home/Haiku/haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw
/bin/dd: /hal9000/home/Haiku/haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw: No
such file or directory
$ dd if=/hal9000/home/Haiku haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw
/bin/dd: unrecognized option `haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw'
Try `/bin/dd --help' for more information.
$ dd if=/hal9000/home/Haiku/haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw
/bin/dd: /hal9000/home/Haiku/haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw: No
such file or directory
$ dd if=/hal9000/home/Haiku/haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw
/bin/dd: /hal9000/home/Haiku/haiku-alpha-gcc4.image=/dev/disk/scsi/0/0/raw: No
such file or directory
So I went to the partition its saved to to make sure its there...
$ cd /hal9000/home/Haiku
$ ls
haiku-alpha-gcc4.image
And its there...so I tried again to make it work:
$ dd if= /hal9000/home/Haiku/haiku-alpha-gcc4.image= /dev/disk/scsi/0/0/raw
/bin/dd: unrecognized option `/hal9000/home/Haiku/haiku-alpha-gcc4.image='
Try `/bin/dd --help' for more information.
$
Obviously not doing something right.
Please advise.
--
Proof of Americas 3rd world status:
http://www.ramusa.org/
Cash for *who*?
http://www.bartcop.com/list-the-facts.htm
"I believe there are more instances of the abridgement of freedom of the people
by gradual and silent encroachments by those in power than by violent and
sudden usurpations.... The means of defense against foreign danger historically
have become the instruments of tyranny at home."
-James Madison
Try "mount" to see if the stick is mounted somewhere. Usually /dev/sdb or
/dev/sdb1 (a partition of it).
Unmount (with umount /dev/sdb(or 1)
it before using dd again.
--
Andreas (PGP Key available on public key servers)
-4. Umm, did anyone have anything important in /usr?
--Top 100 things you don't want the sysadmin to say
> Unmount (with umount /dev/sdb(or 1)
>
> it before using dd again.
I tried it unmounted also. No luck there.
Strange.
You've got that syntax wrong; failing to tell dd where to write it.
See, "if" means Input File, "of" means Output File, but you're leaving
that out, from what I can see there.
Syntax is dd if=<somefile> of=<somefile>
try if=/hal9000/home/Haiku/haiku-alpha-gcc4.image
of=/dev/disk/scsi/0/0/raw
BTW, you probably need to have updated the BeOS USB system. Search
Bebits for Siarzhuk Zharski's USB patches and install if you haven't.
(Needed for R5, the equivalent is already in Zeta; not sure about Max).
One important thing I forgot: you must be sure to dd on the correct
device. If you take the wrong, you might wipe your hard disk instead for
example.
Also try "lsusb" if the stick shows up there.
>> Unmount (with umount /dev/sdb(or 1)
>>
>> it before using dd again.
>
> I tried it unmounted also. No luck there.
Example (check, if this is okay for you and you not accidently wipe the
hard disk):
dd if=/hal9000/home/Haiku/haiku-alpha-gcc4.image of=/dev/sdb
So haiku-alpha-gcc4.image is the BeOS file, and /dev/sdb the
stick. Double check this before executing not to wipe the hard disk.
--
Andreas (PGP Key available on public key servers)
86. What do you mean that wasn't a copy?
Yes indeed. Note Andreas's syntax has it all on one line, as mine should
have been. That's a space before the "of". Also, his is the syntax if
you are doing this from Linux. Which may be preferable, if you have
Linux. I'm not completely confident of the reliability of the BeOS USB,
even if you have upgraded it as I suggested.
BTW, here's another complication: The Haiku guys realised some months
back that they needed to update to a new compiler - gcc4 - or there'd be
no way to port some fairly vital apps - Gnash for viewing Flash content,
for example. This upsets their stated goal of making Haiku R1 compatible
with BeOS binaries. I believe production builds of R1 will be some sort
of hybrid between gcc4 and the old compiler, to maintain compatibility.
But the image we three are all playing with is pure gcc4. On earlier
Haiku builds you could copy over apps like Minesweeper from a BeOS disk
and they'd work; on this they won't.
THANKS! Oddly I had to read that a few time to see the *missing* "of"!
Need more coffie...
>BTW, you probably need to have updated the BeOS USB system. Search
>Bebits for Siarzhuk Zharski's USB patches and install if you haven't.
>(Needed for R5, the equivalent is already in Zeta; not sure about
Max).
>
Yeap, I have those installed.
>Andreas Kohlbach wrote:
I'm reasonable sure it will work with the inclusion of the missing
pointer "of".
>BTW, here's another complication: The Haiku guys realised some months
>back that they needed to update to a new compiler - gcc4 - or there'd
be
>no way to port some fairly vital apps - Gnash for viewing Flash
content,
>for example. This upsets their stated goal of making Haiku R1
compatible
>with BeOS binaries.
So we'd have to wait until apps get updated.
Well thats a bit of an issue. Was hoping to make a daily use computer
with as much functionality as my BeOS Max desktop on a dell 600 laptop.
Maybe I'll put Max on it after all.
> I believe production builds of R1 will be some sort
>of hybrid between gcc4 and the old compiler, to maintain
compatibility.
That would be nice.
>But the image we three are all playing with is pure gcc4. On earlier
>Haiku builds you could copy over apps like Minesweeper from a BeOS
disk
>and they'd work; on this they won't.
>
Hmmmm. I bought a used Dell 600 specifically to run BeOS on so I'll
look forward to Haiku becoming beta quality.
Still prefer it to linux.
With you on that!
We're only jumping the gun by a couple of weeks. I suppose the first
Alpha release will be backwrads compatible - I'll be disappointed if it
is not - and judging by this image I reckon it'll be pretty damn good
and usable. You'll find, for example, that it already has a preflet for
your touchpad. Wi-fi is still a work in progress, though.
First I have to make it bootable. I got it written to the USB stick but
even after using 'makebootable' in terminal on BeOS it wont boot either
of the PC's Ive tried it on. And I made sure the boot order was all set
up in the BIOS.
Something is missing. Is there a list of files that have to be present
on the USB stick? I think one is 'zebeos'.
>
> First I have to make it bootable. I got it written to the USB stick
> but
> even after using 'makebootable' in terminal on BeOS
That's won't help. see below...
it wont boot
> either
> of the PC's Ive tried it on. And I made sure the boot order was all
> set
> up in the BIOS.
Well in fact I haven't been able to get that image booting on USB
either. It runs fine here on a real partition.
I thought my problem on USB was because I was first copying over the
contents into a larger image (for a 2gB USB stick) and I suspect errors
in the copying. If you've just unpacked the image and copied it, as is,
to the stick I would have expected it to work.
> Something is missing. Is there a list of files that have to be present
> on the USB stick? I think one is 'zebeos'.
>
zbeos, you mean. No, it's gone.
See the forum posts on haiku-os.org. especially this thread http://www.h
aiku-os.org/community/forum/how_to_install_haiku_to_usb_flash_drive_from
_windows
It's a long thread; some of it's out of date because halfway through,
Haiku changed the system folder structure from the one they inherited
from BeOS, and dropped zbeos as the bootloader. So a partition made
bootable by the BeOS makebootable command (as you tried) will try to
find /boot/beos/system/zbeos. A partition made bootable by the Haiku
makebootable will try to find the new one - /boot/system/haiku_loader.
But you cant use the Haiku makebootable except in a running Haiku. Catch
22!
But that thread and others say the makebootable step shouldn't matter on
a properly written USB stick. Shouldn't....?
So I don't known what to suggest, except wait for the official alpha
release which will be available as physical bootable CDs.Soon.
> But that thread and others say the makebootable step shouldn't matter on
> a properly written USB stick. Shouldn't....?
>
> So I don't known what to suggest, except wait for the official alpha
> release which will be available as physical bootable CDs.Soon.
Thanks, I'll be looking forward to it.
--
http://www.care2.com/click-to-donate/wolves/
Proof of Americas 3rd world status:
http://www.ramusa.org/
Cash for *who*?
http://www.bartcop.com/list-the-facts.htm