Talk:SuSE install from USB drive

From openSUSE

---<<<<<corrected---- The article contains errors (a while ago it didn't). Do really want to copy the whole dvd.iso image to the drive?!!? I mean, try it and you will see cp will abort because only files <4gb are supported by fat32. As version compare shows ( http://en.opensuse.org/index.php?title=SuSE_install_from_USB_drive&diff=65725&oldid=63791 ) the change was from "* copy the downloaded CD/DVD image to the USB drive at the root of the drive cp -R /mnt/tmp/* /mnt/usb/"

to 

"Copy the downloaded CD/DVD image to the USB drive at the root of the drive cp dvd.iso /mnt/usb/"

/mnt/tmp was changed to /mnt/dvd but not consequently: mksusebootdisk --32 --partition /dev/sdb1 /mnt/tmp

vbar ---corrected>>>>>----

New comment from Frans Leerink dd 22 dec 2008

I followed this article to install openSUSE 11.1 on my MEDION AKOYA E1210 Netbook - MD97160

I have an 8 GB USB-Stick and the downloaded openSUSE 11.1 dvd image for i386.

The instructions from the article went fine until the "MAKE THE USB DRIVE BOOTABLE" step. I tried the "mksusebootdisk --32 --partition /dev/sdb1 /mnt/dvd" command 3 times and always the program did not do anything. Pressing Ctrl-C resulted in "^Cnot a FAT file system"

Investigating the mksusebootdisk script learned us (my wife and me) that the script was waiting on input in the section where the fatsize is checked. Inserting the option-n in the line:

"for (`fsck.vfat -v $part 2>/dev/null`) {" 

eliminated the waiting problem, filled the $bpc and $fatsize with actual values and the mksusebootdisk script comes to an normal end. So I think that the official mksusebootdisk script should be modified accordingly.

my ($bpc, $fatsize);

 for (`fsck.vfat -n -v $part 2>/dev/null`) {                           !!!!!!  In this line we inserted the "-n" 
   if(/(\d+)\s+bytes\s+per\s+cluster/) {
     $bpc = $1;
     next;
   }
   if(/FATs,\s+(\d+)\s+bit\s+entries/) {
     $fatsize = $1;
     next;
   }
 }
 print "heidi \n";                                                     !!!!!   Here we added three lines just to see
 print "heidi $bpc bpc \n";                                            !!!!!   the values for the $bpc and $fatsize 
 print "heidi $fatsize fatsize \n";                                    !!!!!   displayed. Not needed in corrected script
 die "not a FAT file system\n" unless $bpc >= 512 && $fatsize >= 12;

Regards, Frans

only 512-byte sectors are supported

I got stuck at the same point, but with the following message:

> /mksusebootdisk --32 --partition /dev/sdb1 /media/SU1110.001
disk /dev/sdb, partition /dev/sdb1
/dev/sdb1: only 512-byte sectors are supported
error: syslinux failed

Haven’t found a solution yet. Hamaryns 11:45, 17 January 2009 (UTC)

It seems like http://syslinux.zytor.com/archives/2007-March/008284.html is the answer. Damn. Hamaryns 12:08, 17 January 2009 (UTC)


Help needed

I tried to edit the file, using the -n option, but after running:

mksusebootdisk --32 --partition /dev/sdc1 /mnt/dvd

I get

/usr/bin/mksusebootdisk: line 1: #!: command not found

/usr/bin/mksusebootdisk: line 11: use: command not found

/usr/bin/mksusebootdisk: line 12: use: command not found

/usr/bin/mksusebootdisk: line 14: syntax error near unexpected token `('

/usr/bin/mksusebootdisk: line 14: `%::ConfigData = ( full_product_name => "openSUSE 10.2" );'

Anyone able to help me?

Greetings, Ralf.

Edit: After re-typing the top line of code, the errors were gone. But the usb stick is not booting, it gives a boot error.

You should follow this document:
http://en.opensuse.org/SuSE_install_from_USB_drive#Getting_ready