Install Opensuse11.2 on USB key

linux-usbHow to make a bootable Opensuse 11.2 flash disk ? i received this question from a reader in my email, so i decided to write this post to answer this question.

This installation  methode is working under Linux machines .

First we need :

1- DVD iso of opensuse 11.2

2- USB (key)

3- Opensuse script mksusebootdisk to make the USB bootable

4-  check   if  these  directories  exist  /mnt/dvd and /mnt/usb  if  not create them :

mkdir /mnt/dvd 
mkdir /mnt/usb

Lets start with installation :

1- Check your disks

#fdisk -l   of fdisk  -l  /dev/sdb1     (your  usb key  drive)

you will got some thing like

/dev/sdb1   *           1 8000 80162468+   c  W95 FAT32 (LBA)

2- Now umount the drive with

# umount /dev/sdb1

3- Then format the drive with fat32

# mkfs.vfat -F 32 /dev/sdb1    or # fsck.vfat /dev/sdb1

4- Now mount the iso file to the virtual drive

# mount openSUSE-11.2-DVD-x86_64.iso /mnt/dvd -o loop

# mount /dev/sdb1 /mnt/usb

5- Now copy the dvd to the usb drive, to that use the command bellow :

# cp -R -L /mnt/dvd/* /mnt/usb/
# umount /mnt/usb

6- Make usb drive bootable

#wget chmod +x mksusebootdisk
# ./mksusebootdisk --64 --partition /dev/sdb1 /mnt/dvd
disk /dev/sdb, partition /dev/sdb1


Now restart your mchine . check your bios and make the computer start from USB first

please ENJOY