[LUNA] Issues w/ UBCD ....

Paul F. Pearson pfpearson at mchsi.com
Mon May 11 17:00:09 CDT 2015


Have you tried to put some other OS on the stick, just to confirm that it's even possible? 

I've not used a bootable USB stick (not allowed at work, so not much use for me), so I can't help too much. Just want to give this some visibility.

----- Original Message -----
> 
> 
> .... I am trying to prep a USB UBCD stick for use in checking out a box
> I am building. I followed the instructions attached, from UBCD ISO, w/
> (some of) following results, from yesterday:
> (following from within fdisk):
> 
> 
>      .
>      .
>      .
>      .
> 
> Command (m for help): p
> 
> Disk /dev/sdg: 3878 MB, 3878678528 bytes
> 120 heads, 62 sectors/track, 1018 cylinders, total 7575544 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: 0x2c6b7369
> 
>     Device Boot      Start         End      Blocks   Id  System
> /dev/sdg1   *        2048     7575543     3786748    c  W95 FAT32 (LBA)
> 
> Command (m for help): m
> Command action
>     a   toggle a bootable flag
>     b   edit bsd disklabel
>     c   toggle the dos compatibility flag
>     d   delete a partition
>     l   list known partition types
>     m   print this menu
>     n   add a new partition
>     o   create a new empty DOS partition table
>     p   print the partition table
>     q   quit without saving changes
>     s   create a new empty Sun disklabel
>     t   change a partition's system id
>     u   change display/entry units
>     v   verify the partition table
>     w   write table to disk and exit
>     x   extra functionality (experts only)
> 
> Command (m for help): w
> The partition table has been altered!
> 
> Calling ioctl() to re-read partition table.
> 
> WARNING: If you have created or modified any DOS 6.x
> partitions, please see the fdisk manual page for additional
> information.
> Syncing disks.
> [root at Q6600:/etc, Thu May 07, 03:06 PM] 1095 # mkfs.vfat -F 32 /dev/sdg1
> mkfs.vfat 3.0.9 (31 Jan 2010)
> [root at Q6600:/etc, Thu May 07, 03:07 PM] 1096 #
> 
> 
> [root at Q6600:/etc, Thu May 07, 03:09 PM] 1105 # !1013
> dd if=/home/ISOs/UBCD/ubcd533/ubcd/tools/linux/ubcd2usb/mbr.bin of=/dev/sdg
> 0+1 records in
> 0+1 records out
> 440 bytes (440 B) copied, 0.0221471 s, 19.9 kB/s
> [root at Q6600:/etc, Thu May 07, 03:09 PM] 1106 #
> 
> 
> [root at Q6600:/etc, Thu May 07, 03:29 PM] 1143 # !1070
> /home/ISOs/UBCD/ubcd533/ubcd/tools/linux/ubcd2usb/syslinux -f -d
> /boot/syslinux  /dev/sdg1
> /home/ISOs/UBCD/ubcd533/ubcd/tools/linux/ubcd2usb/syslinux: no previous
> syslinux boot sector found
> [root at Q6600:/etc, Thu May 07, 03:30 PM] 1144 #
> 
> 
> The fdisk on my system (see below) behaved slightly differently from
> that referenced in the UBCD readme file (from Debian), but I think
> everything got done OK. When I try to boot from the USB stick, it says
> 'No OS found to boot from' or something to that effect. I have tried 2
> different USB sticks this week, same from both, wouldn't boot. Target
> box uses a Supermicro H8SCM mbd & AMD C32 4256EE CPU, if that matters.
> Any clues appreciated :-) ....
> 
> [root at Q6600:/etc, Fri May 08, 08:11 AM] 1165 # uname -a
> Linux Q6600 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23 13:07:52 UTC
> 2011 x86_64 x86_64 x86_64 GNU/Linux
> [root at Q6600:/etc, Fri May 08, 08:11 AM] 1166 #
> 
> --
> 
> 	William A. Mahaffey III
> 
>   ----------------------------------------------------------------------
> 
> 	"The M1 Garand is without doubt the finest implement of war
> 	 ever devised by man."
>                             -- Gen. George S. Patton Jr.
> 
> -------------- next part --------------
> To put UBCD on a USB thumb drive, your thumb drive needs to be partitioned in
> FAT16 or FAT32.
> 
> First we need to know on which device your USB thumb drive is listed in
> /dev/.
> Afterwards we can format it and copy the necessary files.
> 
> 1. Remove your USB thumb drive from your USB port if you already attached it.
> 2. Run one of the following command:
>       A) fdisk -l
>             It will list all drives. Look at the size to determine which one
>             is your
>             USB thumb drive. It can be that you need root rights to see the
>             drives.
>       B) dmesg | tail
>             This will display something like the following, if you have just
>             put in the
>             USB thumb drive.
>               [38350.743408] sd 9:0:0:0: [sdb] 4028416 512-byte hardware
>               sectors (2063 MB)
>               [38350.744272] sd 9:0:0:0: [sdb] Write Protect is off
>               [38350.744284] sd 9:0:0:0: [sdb] Mode Sense: 23 00 00 00
>               [38350.744291] sd 9:0:0:0: [sdb] Assuming drive cache: write
>               through
>               [38350.747289] sd 9:0:0:0: [sdb] 4028416 512-byte hardware
>               sectors (2063 MB)
>               [38350.748267] sd 9:0:0:0: [sdb] Write Protect is off
>               [38350.748284] sd 9:0:0:0: [sdb] Mode Sense: 23 00 00 00
>               [38350.748289] sd 9:0:0:0: [sdb] Assuming drive cache: write
>               through
>               [38350.748305]  sdb: sdb1
>               [38350.749432] sd 9:0:0:0: [sdb] Attached SCSI removable disk
> 
>             In this case, my USB thumb drive is /dev/sdc.
> 
>       C) df -h
>             You can use this only when the USB thumb drive is automounted by
>             your
>             distribution or when you mount it yourself.
>             It will list all mounted filesystems. You have to find and know
>             the size
>             of the partitions which are already on the USB thumb drive.
> 
>                /dev/sdb1             2,0G  1,9G   87M  96% /media/NANO
> 
>             In my case, my USB thumb drive is /dev/sdb (discard the number on
>             the end).
> 
> 3. If you have found on which device in /dev/, your USB thumb drive is, you
> can partition it.
> 
>    WARNING: backup all files that you want to preserve to another drive.
>    WARNING: This process will delete any information that is currently stored
>    on the USB key.
>             Proceed with caution!
> 
>       A) First, we delete all old partitions that remain on the USB key.
> 
>          1. Open a terminal and type sudo su
>          2. Type umount /dev/sdX to unmount your USB thumb drive
>             (replace X with the right letter for your device. BE CAREFUL)
>          3. Type fdisk /dev/sdX (replacing X with your drive letter)
>          4. Type d to proceed to delete a partition
>          5. Type 1 to select the 1st partition and press enter
>          6. Type d to proceed to delete another partition
>             (fdisk should automatically select the second partition)
> 
>       B) Next, we need to create the new partition.
> 
>          1. Type n to make a new partition
>          2. Type p to make this partition primary and press enter
>          3. Type 1 to make this the first partition and then press enter
>          4. Type a, then 1, to make the first primary partition active or
>          bootable.
>          5. Press enter to accept the default first cylinder
>          6. Press enter again to accept the default last cylinder
>          7. Press t to change the partition ID:
>               If you want to format your USB thumb drive with FAT16, use:
>                  'W95 FAT16 (LBA)' ==> press e
>               If you want to format your USB thumb drive with FAT32
>               (needed for partitions, larger than 2 GB, use:
>                  'W95 FAT32 (LBA)'  ==> press c
>          8. Type w to write the new partition information to the USB key
> 
> 
>       C) Now, we need to create the fat filesystem.
> 
>          1. If you have chosen to format your USB thumb drive in FAT16
>             ('W95 FAT16 (LBA)' in previous step), use:
> 
>                mkfs.vfat -F 16 /dev/sdX1 (replacing X with your USB key drive
>                letter)
> 
>          2. If you have chosen to format your USB thumb drive in FAT32
>             ('W95 FAT32 (LBA)' in previous step), use:
> 
>                mkfs.vfat -F 32 /dev/sdX1 (replacing X with your USB key drive
>                letter)
> 
> 4. Now, we write the syslinux mbr to the USB drive.
>    The mbr.bin file is located in ./ubcd/tools/linux/ubcd2usb/ of the
>    extracted UBCD iso.
> 
>      dd if=mbr.bin of=/dev/sdX (replacing X with your USB key drive letter)
> 
> 5. Mount the partition of your USB drive
>    You can use the GUI mounting utility of your distribution.
>    If your distribution mounts USB drives automatically, you can remove and
>    replug your USB thumb drive.
> 
> 6. Copy all files of the extracted UBCD iso to your USB thumb drive.
> 
> 7. Install syslinux to the partition of your USB thumb drive.
> 
>    First make sure that ./ubcd/tools/linux/ubcd2usb/syslinux is executable,
>    if not, run:
> 
>      chmod a+x ./ubcd/tools/linux/ubcd2usb/syslinux (adapt the path if
>      necessary)
> 
>    If it is executable, run:
> 
>      sudo ./ubcd/tools/linux/ubcd2usb/syslinux -s -d /boot/syslinux /dev/sdX1
>      (replacing X with your USB key drive letter)
> 
> 8. Now you can boot UBCD from your USB drive, if your BIOS supports it of
> course.
> 
> 
> 
> _______________________________________________
> LUNA mailing list
> LUNA at lunagroup.us
> http://lunagroup.us/mailman/listinfo/luna
> 


More information about the LUNA mailing list