`

Linux Live for USB

阅读更多

 

If you got a USB memory stick you can boot gNewSense live as with the cd. What you will need:

 

  • A USB stick 1 GB+
  • A motherboard that support booting from removables.
  • A computer with usb ports with GNU/Linux or Windows running.

 

Make your stick bootable

 

This will guide you to make the stick bootable. We are going to use syslinux for it.

 

Install syslinux

 

Choose the operating system you run. GNU/Linux or Windows.

GNU/Linux

 

Syslinux may already be installed in your system. Type syslinux in a terminal. If the command is not found you have to install it from your distribution's repository. On a Debian/Ubuntu system this is done like this:

 

apt-get install syslinux

 You can also run the following commands in a terminal:

wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.04.tar.bz2
tar -xvjf syslinux-4.04.tar.bz2 
cd syslinux-4.04/unix
 

Now you got syslinux ready to use. Keep the terminal window up so you can use it later.

Windows

 

Download a syslinux zip-file from http://www.kernel.org/pub/linux/utils/boot/syslinux/.

Unpack it. 

Have up your terminal by clicking Start and then Run, type cmd and press Enter.

Cd to the directory where you unpacked syslinux, cd Desktop should work if you unpacked it to your desktop and if the terminal started in your user directory.

Type cd syslinux-4.04 or whatever version you have downloaded.

Finally type cd win32 to get into the windows binary.

Now you got syslinux ready to use. Keep the terminal window up so you can use it later.

 

Partition the stick

 

Usually USB sticks are already partitioned with a FAT partition. If your USB stick is completely empty, you need to use fdisk to partition it:

 

# fdisk /dev/sdf

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

 

Building a new DOS disklabel with disk identifier 0x85934366.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

 

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

 

Command (m for help): p

 

Disk /dev/sdf: 2021 MB, 2021654528 bytes

63 heads, 62 sectors/track, 1010 cylinders

Units = cylinders of 3906 * 512 = 1999872 bytes

Disk identifier: 0x85934366

 

Device Boot      Start         End      Blocks   Id  System

 

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-1010, default 1): 

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1010, default 1010): 

Using default value 1010

Command (m for help): t

Selected partition 1

Hex code (type L to list codes): b

Changed system type of partition 1 to b (W95 FAT32)

Command (m for help): a

Partition number (1-4): 1

 

Command (m for help): p

Disk /dev/sdf: 2021 MB, 2021654528 bytes

63 heads, 62 sectors/track, 1010 cylinders

Units = cylinders of 3906 * 512 = 1999872 bytes

Disk identifier: 0x85934366

   Device Boot      Start         End      Blocks   Id  System

/dev/sdf1   *           1        1010     1972499    b  W95 FAT32

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.

mocca:~# 

 

Format the stick

 

Again, usually USB sticks are already formatted. If you want to-reformat it, you can do it like this:

 

In GNU/Linux:

 

mkfs.vfat /dev/sdf1

 

 

Run syslinux

 

Run the syslinux command shown below, in the window we set up earlier, assuming drive name is sdb1 or F:. 

 

In GNU/Linux:

 

syslinux -s /dev/sdb1

In Windows:

 

 

syslinux.exe -s -m F:
 

 

Mount the stick

 

In the most modern operating systems USB memory sticks get mounted automatically.

 

If not and if you use a GNU/Linux distribution run mount: 

 

mount /dev/sdb1 /media/usb

You have to run the command as root or sudo. You also have to create the directory usb with mkdir /media/usb, or choose a mount point at your opinion. 

The device name may also be different. Run dmesg | tail in a terminal after you have plugged in the stick.

Look for [sdb] or any similar. Add a 1 to it so it knows it is the first partition.

Copy files from the gNewSense iso

 

Download a gNewSense iso from http://cdimage.gnewsense.org/ You can burn the iso to a cd and copy the files to the stick, but it is faster to mount the iso.

note:you can use any distribute like: ubuntu, mint or something alse. all of them works.

 

In GNU/Linux:

 

mkdir /media/iso
mount -oloop /path/to/gnewsense-livecd-deltah-2.3.iso /media/iso

 Again, it has to be done as root or sudo.

 

In Windows you can use a program called Virtual CD-ROM Control Panel. Download it, unpack it and read it's readme for how to use it.

http://download.microsoft.com/download/7/b/6/7b6abd84-7841-4978-96f5-bd58df02efa2/winxpvirtualcdcontrolpanel_21.exe

 

Copy the casper directory to the memory stick. Copy the content of the isolinux directory to the memory stick. Rename isolinux.bin to syslinux.bin. Rename isolinux.cfg to syslinux.cfg.

In GNU/Linux:

 

cp -r /media/iso/casper/ /media/usb/
cp /media/iso/isolinux/* /media/usb/
mv /media/usb/isolinux.bin /media/usb/syslinux.bin
mv /media/usb/isolinux.cfg /media/usb/syslinux.cfg

 

Unmount the memory stick to write cache.

In GNU/Linux:

 

umount /media/usb

Unmount the ISO image. In GNU/Linux:

 

umount /media/iso

Memory sticks not automounted-fix

 

If you installed gNewSense from the memory stick the same memory stick is not automatically mounted. This is caused by the stick being added to the fstab file. Plug in your memory stick and check in dmesg what it got for a device name.

 dmesg | tail

Then edit fstab and remove the line containing the device name.

 sudo gedit /etc/fstab

For example: /dev/sdb1 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

 

 

https://help.ubuntu.com/community/LiveCD/Persistence

 

http://forum.linuxmint.com/viewtopic.php?f=42&t=14209&p=192127

 

 

 

分享到:
评论

相关推荐

    LiveUSB Install:棒子上Linux!-开源

    LiveUSB Install 是一款适用于 GNU/Linux 和 Windows 的免费软件。 通过 LiveUSB 安装,您可以毫不费力地在拇指驱动器上安装各种 Linux 发行版。 这样,您就可以随时将您最喜欢的发行版放在口袋里——放在可启动的...

    Linux 可启动 U 盘制作工具 Universal USB Installer 1.9.8.3 中文编译版.zip

    Universal USB Installer 也是 UUI,它是一个 Live Linux 可启动 USB 创建器,允许您从选择的 Linux 发行版选择放在您的 USB 闪存驱动器。 Universal USB Installer 易于使用。只需选择一个 Live Linux 发行版,ISO ...

    YUMI – Multiboot USB Creator (Windows)

    一个可以制作usb启动盘的工具,非常好用,可以直接把很多的linux live 光盘直接制作在usb上启动。目前支持下列系统: — Debian Live 32/64 Bit — Debian Live 7 Gnome 32bit Debian Live 7 Gnome 64bit Debian ...

    gparted-live-1.1.0-1-amd64.iso

    GParted LiveCD is a Live Linux operating system built around the GNOME Partition Editor (popularly known as GParted) software, which can be used for disk partitioning tasks. The GParted application is...

    LiveSytem GNU/Linux for some task-开源

    LiveSystem 作为 LiveCD 或 LiveUSB,带有 GNU/Linux 操作系统,用于精确工作

    unetbootin3 for windows

    windows平台下的unetbootin,支持在Windows下安装Linux镜像文件,创建USB启动盘,进入livecd。

    Portable VirtualBox for LiLi:LiLi便携式VirtualBox-开源

    适用于LinuxLive USB Creator的Portable-VirtualBox的特定版本。 其他功能包括:-混合模式(可以运行便携式AND常规virtualbox)-自动虚拟化从其运行的USB设备

    wireshark-2.6.1.tar.xz

    Live data can be read from Ethernet, IEEE 802.11, PPP/HDLC, ATM, Bluetooth, USB, Token Ring, Frame Relay, FDDI, and others (depending on your platform) Decryption support for many protocols, including...

    ap6212a0_a33_sc3817r_神舟验证版本_借用nvram_ap6210这个配置文件_20170626_1834没有外层目录.7z

    # $(call find-copy-subdir-files,*,device/softwinner/polaris-common/rild/usb_modeswitch.d,system/etc/usb_modeswitch.d) PRODUCT_PROPERTY_OVERRIDES += \ ro.sw.embeded.telephony = false PRODUCT_...

    wifi_hack PDF

    is a live-linux cd that is compatible with most laptops (Just for reference sake, I am using my Eee PC with an external DVDRom drive to boot it). All you have to do is go to www.remote- exploit.org ...

    Bochs - The cross platform IA-32 (x86) emulator

    - added 'pseudo device' in common USB code for the device creation. This makes the HCs independent from the device specific code. - USB MSD: added support for disk image modes (like ATA disks) - ...

    gc2145_parrotv1.1_r16m_验证完成_20170523_1408没有外层目录.7z

    1 for single camera, 2 for double camera ;------------------------------------------------------------------------------- number_of_camera = 1 ;-----------------------------------------------------...

    ap6212a0_a33_sc3817r_服务器验证通过_bt已经通了_wifi需要修改配置_需要再次验证_20170626_1549.7z

    # $(call find-copy-subdir-files,*,device/softwinner/polaris-common/rild/usb_modeswitch.d,system/etc/usb_modeswitch.d) PRODUCT_PROPERTY_OVERRIDES += \ ro.sw.embeded.telephony = false PRODUCT_...

    ethereal网络抓包工具

    It lets you interactively browse packet data from a live network or from a previously saved capture file. See: http://www.ethereal.com for new versions, documentation, ... Ethereal's native capture ...

    bmi160调通bmi160的ACC+GYR_20160907.7z

    the name of the module used for identification, and drive registered name consistent ;-------------------------- ;name:bma250 ;-------------------------- gsensor_name = bma250 gsensor_direct_x = ...

    deepin-boot-maker:从https镜像

    Deepin Boot Maker是一款工具,可帮助用户快速轻松地创建可启动的USB记忆棒,旨在支持Deepin install iso,但它也适用于所有ubuntu live install iso。 依存关系 Deepin Boot Maker旨在支持Windows / Linux / Mac...

    VMWare 7.0.1 build-227600

     VMware工作站还允许无须将LiveCD烧录到真正的光盘上、也无须重启计算机,而对这些LiveCD进行测试。还可以捕获在VMware工作站下运行的某个操作系统的快照。每个快照可以用来在任何时候将虚拟机回滚到保存的状态。...

    网管教程 从入门到精通软件篇.txt

    网管教程 从入门到精通软件篇 ★一。★详细的xp修复控制台命令和用法!!! 放入xp(2000)的光盘,安装时候选R,修复! Windows XP(包括 Windows 2000)的控制台命令是在系统出现一些意外情况下的一种非常有效的...

Global site tag (gtag.js) - Google Analytics