SAM Linux Desktop - Community Forums

Full Version: Installing Sam On USB Flash Drive
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(This howto was written by serjant)

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. take a look if mtools are installed (if not install it from the repos)
3. Insert a 1024MB or larger USB thumb drive
4. Open up a terminal and type fdisk -l (note which drive is your USB stick)
type

Code:
guest@~# umount /dev/sdx1


replacing x with your flash drive letter
type

Code:
guest@~# fdisk /dev/sdx

again replacing x with your device
type

Code:
guest@~# p


to show the existing partition and

Code:
guest@~# d


to delete it
type

Code:
guest@~# p


again to show any remaining partitions (if partitions exist, repeat step where you start to delete the partition)
type

Code:
guest@~# n


to make a new partition
type

Code:
guest@~# p


for primary partition
4.type

Code:
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

Code:
guest@~# a


to make this partition active
8. type

Code:
guest@~# 1

to select partition 1
9.type

Code:
guest@~# t


to change it’s file system
10.type

Code:
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

Code:
guest@~# w


to write the new partition table
12.type

Code:
guest@~# umount /dev/sdx1

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

Code:
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

Code:
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 several times
or
enter Windows, download the program Syslinux and extract 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)

In the programs you also can find the script liveusb in /usr/sbin but this needs kdialog from the KDE desktop which is not routinely installed in SAM.

And the guys from the KDE-site (PCLOS) have done a howto as well
http://www.pclinuxos.com/index.php?optio...#msg330669
be aware that they use KDE-progs for doing this.

Reference URL's