Installing Sam On USB Flash Drive

Now we want to tell you about installing SAM on USB flash drive.It is not actually installing SAM on USB it is simply booting Live SAM from USB flash drive and not from CD while there is no need in CD at all.

1.Restart your Computer, booting from SAM(login as root i don't think if there is any sense for logging as root,anyway you are doing that in console as a root)
2.Insert a 1024MB or larger USB thumb drive
3. Open up a terminal and type fdisk -l (note which drive is your USB stick)

  • type
guest@~# umount /dev/sdx1

replacing x with your flash drive letter

  • type
guest@~# fdisk /dev/sdx

again replacing x with your device

  • type
guest@~# p

to show the existing partition and

guest@~# d

to delete it

  • type
guest@~# p

again to show any remaining partitions (if partitions exist, repeat step 7)

  • type
guest@~# n

to make a new partition

  • type
guest@~# p

for primary partition
4.type

guest@~# 1

to make this partition one
5. hit enter to use the default first cylinder
6.hit enter again to use the default last cylender
7.type

guest@~# a

to make this partition active
8. type

guest@~# 1

to select partition 1
9.type

guest@~# t

to change it’s file system
10.type

guest@~# 6

to select the fat16 file system( for FAT32 type "b" )
Here i recommend if you use up to 2GB USB stick use FAT16,above 2GB use FAT32!
11.type

guest@~# w

to write the new partition table
12.type

guest@~# umount /dev/sdx1

(replacing x with your device) to unmount the partition
13. type

guest@~# mkfs.vfat -F 16 -n usb /dev/sdx1

to format the first partition as fat (replace x with your flash drive)(if you use FAT32 type 32 instead of 16)
Remove and reinsert your USB flash drive

Type

guest@~# mkdir /tmp/usb
guest@~# mount /dev/sdx1 /tmp/usb (replace x with your USB drive)
guest@~# mount /mnt/cdrom (or cdrom2 if you have more than one)
guest@~# cd /mnt/cdrom (or cdrom2)
guest@~# cp -rf livecd.sqfs isolinux/* /tmp/usb
guest@~# cd /tmp/usb
guest@~# mv isolinux.cfg syslinux.cfg
guest@~# cd
guest@~# umount /tmp/usb
guest@~# syslinux -sf /dev/sdx1

(replacing x with your USB device,sometimes the command doesn't work,so use try syslinux /dev/sdx1 or enetr the windows,download the program Syslinux and xetract the files to dir C:\syslinux ,open command prompt cmd and type:

cd C:\syslinux\win32
syslinux.exe -f E: (if E is the char of your usb drive )
shutdown (or just make reboot of the system)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.