关于Windows上可启动USB记忆棒(Ubuntu)的问题

当我在Windows上创建可启动的USB记忆棒(Ubuntu)时,是否意味着我将要做的更改(假设在Ubuntu桌面上保存一个名为“abc.txt”的新文件)将在下次我反映这些更改时在其他计算机上启动此USB(我会在Ubuntu桌面上看到文件“abc.txt”)?

下一个可能是一个非常愚蠢的问题,但这里是:

它会使用计算机的RAM还是使用USB上剩余的空间作为RAM。

谢谢

如果您使用以下设置,这非常容易:

  1. 使用现有的可启动USB记忆棒在SLC USB记忆棒上安装Ubuntu(如果您的硬件支持,则首选USB 3.0)只需正常安装, 将USB记忆棒视为SSD。

    为什么? SLC的价格是MLC的两倍,但它们的速度提高了4倍,持续时间长了8倍! 所以他们真的是棒上的小型固态硬盘!

  2. 从USB重新启动并优化系统并将USB记忆棒视为小型SSD,因此:

    在你的/etc/sysctl.conf添加:

     # Fabby: change the "swappiness" to 10 to prevent swapping as much as possible # to not wear out the USB stick as the Ubuntu default is optimized for a server. # 10 to balance with vfs_cache_pressure vm.swappiness = 10 # Fabby: Lower vfs_cache_pressure to 75% # (once cached, probably not immediately needed any more) # # This percentage value controls the tendency of the kernel to reclaim # the memory which is used for caching of directory and inode objects. # # At the default value of vfs_cache_pressure=100 the kernel will attempt to # reclaim dentries and inodes at a "fair" rate with respect to pagecache and # swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer # to retain dentry and inode caches. vm.vfs_cache_pressure = 75 # Fabby: Good to improve sequential reads (stop stuttering in movie play) # Can also be implemented per disk using udev rules vm.max-readahead=2048 vm.min-readahead=1024 

    /etc/fstab粗体参数添加到引导USB线。 (它可能是sdcsdd 。下面是一个例子,如果可能的话使用UID)

    /dev/sdc / ext4 defaults, noatime,discard ,errors=remount-ro 0 1

完成! 🙂

为了记录:我有一个像这样的16GB USB 2.0 SLC棒(对我的用例来说已经足够了,而且价格也不算太贵,现在已经有5年了,还在运行!)

如果将实时Linux映像刻录到USB驱动器,它将以只读方式启动,因此更改将仅存储在RAM中。 如果您不准备放弃Ubuntu的硬盘空间,可以将ISO刻录到第二个闪存驱动器(甚至2 GB就足够了),启动它并将其安装到32 GB驱动器。 当14.10在Alpha中时,我做到了这一点,虽然它确实遇到了一些性能问题但它仍然可用。

  1. 如果你创建了一个启动usb,关闭后一切都将被删除…有一个程序用于Windows http://www.linuxliveusb.com/我在其他人的计算机上使用,如果我手头没有现场usb。
  2. 如果你从CD启动然后在USB上安装Ubuntu那么文件将被保存请记住usb速度会影响操作系统
  3. 和启动实时USB时临时存储在RAM内存中的信息