Create a working USB stick using Bubba|Two

A collection of tips on howto tweak your Bubba.
Post Reply
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Create a working USB stick using Bubba|Two

Post by pa » 06 Nov 2008, 03:28

This is a 'howto' describing how to create a working USB-stick on Bubba|Two.

Unfortunately, when you need the USB-stick, Bubba|Two is most likely not available, but there is no easy way to do this on a Windows PC...

For update purposes the USB-stick needs to be created in such a way that the low level software can read the data on the USB-stick. This howto describes the process on how to do this on Bubba|Two using the command line.

NOTE: This procedure will clear all data on the USB-stick.

1. With Bubba|Two running as normal, insert a USB-stick (or a USB hard disk) into any of the USB-slots.

2. Enter Bubba|Two administration interface, log in as “admin” and select “Settings->Logs”

3. In the 1.2 release an error is reported if there is no partition table present. You will notice this....
If the UI reports a "/dev/sdb1" (where sdb is the 'device' name for your usb disk in the disk section) the stick should work ok. In other cases continue this howto in order to prepare the sticke for use.

4. Log in to Bubba|Two using ssh. A guide on how to do this can be found here: http://forum.excito.net/viewtopic.php?t=766

5. Gain root privileges by issuing:

Code: Select all

su -
Default password is “excito”

6. Run the command (be very careful here since a typo can destroy your entire system requiring a full reinstall, including losing all data on your hard drive):

Code: Select all

sfdisk -D /dev/sdb
(where “sdb” is the location of your disk found above in step 3).

Look for a line like this:

Code: Select all

‘Disk /dev/sdb: 1024 cylinders, 16 heads, 61 sectors/track’
The number of cylinders is important (in this case 1024)

7. On the prompt saying “/dev/sdb1” enter ‘0 1024 6’ where 1024 is the number of cylinders found above. Then hit the ‘enter’ key.

8. Hit the ‘enter’-key for “/dev/sdb2”, “/dev/sdb3”, “/dev/sdb4”.

9. Answer “y” and hit ‘enter’ on the question: “Do you want to write this to disk?”

10. Remove the USB-stick from Bubba|Two.

11. Insert the USB-stick to your PC. If you are using Windows, the USB-stick will show up as a drive-letter in the explorer. When clicking on the drive-letter, Windows will ask you if you would like to format the drive. Answer “yes” and accept default settings.
For other operating systems, see the system documentation on how to format a disk.

12. The USB-stick is now ready to use.
Last edited by pa on 16 Jul 2009, 07:06, edited 1 time in total.
Reason: Fixed post after upgrade of forum

86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: Create a working USB stick using Bubba|Two

Post by 86ivar » 29 Dec 2012, 16:41

I think you can use diskpart in windows to create a partition table too.
I once had to use it on a usb stick before i could write a freenas install image to it.

Post Reply