{"id":254029,"date":"2022-10-09T10:02:23","date_gmt":"2022-10-09T02:02:23","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=254029"},"modified":"2022-10-04T11:03:41","modified_gmt":"2022-10-04T03:03:41","slug":"linux-usb-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-usb-linux.html","title":{"rendered":"\u6211\u5982\u4f55\u4f7f\u7528\u73b0\u573a USB \u8bbe\u5907\u6062\u590d\u6211\u7684 Linux \u7cfb\u7edf"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | Fedora \u73b0\u573a USB \u53d1\u884c\u7248\u4e3a\u5f15\u5bfc\u548c\u8fdb\u5165\u6062\u590d\u6a21\u5f0f\u63d0\u4f9b\u4e86\u6709\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u6211\u7684\u5bb6\u5ead\u5b9e\u9a8c\u5ba4\u91cc\u6709\u5341\u51e0\u53f0\u7269\u7406\u8ba1\u7b97\u673a\u4ee5\u53ca\u66f4\u591a\u7684\u865a\u62df\u673a\u3002\u8fd9\u4e9b\u7cfb\u7edf\u4e2d\u7684\u5927\u591a\u6570\u662f\u6211\u7528\u6765\u8fdb\u884c\u6d4b\u8bd5\u548c\u5b9e\u9a8c\u7684\u3002\u6211\u7ecf\u5e38\u5199\u4f7f\u7528\u81ea\u52a8\u5316\u6765\u7b80\u5316\u7cfb\u7edf\u7ba1\u7406\u4efb\u52a1\u7684\u6587\u7ae0\u3002\u6211\u8fd8\u5728\u591a\u4e2a\u5730\u65b9\u5199\u8fc7\uff0c\u6211\u4ece\u81ea\u5df1\u7684\u9519\u8bef\u4e2d\u5b66\u5230\u7684\u4e1c\u897f\u6bd4\u51e0\u4e4e\u4efb\u4f55\u5176\u4ed6\u65b9\u5f0f\u90fd\u591a\u3002<\/p>\n \u5728\u8fc7\u53bb\u7684\u51e0\u5468\u91cc\uff0c\u6211\u5b66\u5230\u4e86\u5f88\u591a\u4e1c\u897f\u3002<\/p>\n \u6211\u7ed9\u81ea\u5df1\u5236\u9020\u4e86\u4e00\u4e2a\u5927\u9ebb\u70e6\u3002\u4f5c\u4e3a\u591a\u5e74\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u6211\u5199\u4e86\u6570\u767e\u7bc7\u5173\u4e8e Linux \u7684\u6587\u7ae0\u548c\u4e94\u672c\u4e66\uff0c\u6211\u5e94\u8be5\u5bf9 Linux \u66f4\u4e86\u89e3\u3002\u8bdd\u53c8\u8bf4\u56de\u6765\uff0c\u6211\u4eec\u90fd\u4f1a\u72af\u9519\uff0c\u8fd9\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6559\u8bad\uff1a\u4f60\u6c38\u8fdc\u4e0d\u4f1a\u56e0\u4e3a\u6709\u7ecf\u9a8c\u800c\u4e0d\u72af\u9519\u3002<\/p>\n \u6211\u4e0d\u6253\u7b97\u8ba8\u8bba\u6211\u7684\u9519\u8bef\u7684\u7ec6\u8282\u3002\u544a\u8bc9\u4f60\u8fd9\u662f\u4e00\u4e2a\u9519\u8bef\u5c31\u8db3\u591f\u4e86\uff0c\u5728\u6211\u505a\u4e4b\u524d\u6211\u5e94\u8be5\u591a\u8003\u8651\u4e00\u4e0b\u6211\u5728\u505a\u4ec0\u4e48\u3002\u6b64\u5916\uff0c\u7ec6\u8282\u5e76\u4e0d\u662f\u91cd\u70b9\u3002\u7ecf\u9a8c\u4e0d\u80fd\u8ba9\u4f60\u514d\u4e8e\u72af\u4e0b\u7684\u6bcf\u4e00\u4e2a\u9519\u8bef\uff0c\u4f46\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6062\u590d\u3002\u8fd9\u5c31\u662f\u672c\u6587\u8981\u8ba8\u8bba\u7684\u5185\u5bb9\uff1a\u4f7f\u7528\u73b0\u573a USB \u53d1\u884c\u7248\u542f\u52a8\u5e76\u8fdb\u5165\u6062\u590d\u6a21\u5f0f\u3002<\/p>\n \u95ee\u9898<\/strong><\/div>\n \u9996\u5148\uff0c\u6211\u5236\u9020\u4e86\u95ee\u9898\uff0c\u8fd9\u672c\u8d28\u4e0a\u662f \u200b\u200b\/etc\/default\/grub\u200b\u200b\u200b \u6587\u4ef6\u7684\u9519\u8bef\u914d\u7f6e\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4f7f\u7528 Ansible \u5c06\u9519\u8bef\u914d\u7f6e\u7684\u6587\u4ef6\u5206\u53d1\u5230\u6211\u6240\u6709\u7684\u7269\u7406\u8ba1\u7b97\u673a\u5e76\u8fd0\u884c \u200b\u200bgrub2-mkconfig\u200b\u200b\u3002\u5168\u90e8 12 \u4e2a\u3002\u8fd9\u771f\u7684\uff0c\u771f\u7684\u5f88\u5feb\u3002<\/p>\n \u9664\u4e86\u4e24\u53f0\u4e4b\u5916\uff0c\u6240\u6709\u7684\u90fd\u65e0\u6cd5\u542f\u52a8\u3002\u5b83\u4eec\u5728 Linux \u542f\u52a8\u7684\u65e9\u671f\u9636\u6bb5\u5d29\u6e83\uff0c\u51fa\u73b0\u5404\u79cd\u65e0\u6cd5\u5b9a\u4f4d \u200b\u200b\/root\u200b\u200b \u6587\u4ef6\u7cfb\u7edf\u7684\u9519\u8bef\u3002<\/p>\n \u6211\u53ef\u4ee5\u4f7f\u7528 root \u5bc6\u7801\u8fdb\u5165\u201c\u7ef4\u62a4\u201d\u6a21\u5f0f\uff0c\u4f46\u662f\u5982\u679c\u6ca1\u6709\u6302\u8f7d \u200b\u200b\/root\u200b\u200b\uff0c\u5373\u4f7f\u662f\u6700\u7b80\u5355\u7684\u5de5\u5177\u4e5f\u65e0\u6cd5\u8bbf\u95ee\u3002\u76f4\u63a5\u5f15\u5bfc\u5230\u6062\u590d\u5185\u6838\u4e5f\u4e0d\u8d77\u4f5c\u7528\u3002\u7cfb\u7edf\u771f\u7684\u88ab\u7834\u574f\u4e86\u3002<\/p>\n Fedora \u6062\u590d\u6a21\u5f0f<\/strong><\/div>\n \u89e3\u51b3\u6b64\u95ee\u9898\u7684\u552f\u4e00\u65b9\u6cd5\u662f\u627e\u5230\u8fdb\u5165\u6062\u590d\u6a21\u5f0f\u7684\u65b9\u6cd5\u3002\u5f53\u4e00\u5207\u90fd\u5931\u8d25\u65f6\uff0cFedora \u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u9177\u7684\u5de5\u5177\uff1a\u7528\u4e8e\u5b89\u88c5 Fedora \u65b0\u5b9e\u4f8b\u7684\u73b0\u573a USBLive USB \u9a71\u52a8\u5668\u3002<\/p>\n \u5c06 BIOS \u8bbe\u7f6e\u4e3a\u4ece\u73b0\u573a USB \u8bbe\u5907\u542f\u52a8\u540e\uff0c\u6211\u542f\u52a8\u5230 Fedora 36 Xfce \u7684\u73b0\u573alive\u7528\u6237\u684c\u9762\u3002\u6211\u5728\u684c\u9762\u4e0a\u6253\u5f00\u4e86\u4e24\u4e2a\u76f8\u90bb\u7684\u7ec8\u7aef\u4f1a\u8bdd\uff0c\u5e76\u5728\u4e24\u8005\u4e2d\u90fd\u5207\u6362\u5230\u4e86 root \u6743\u9650\u3002<\/p>\n \u6211\u5728\u5176\u4e2d\u4e00\u4e2a\u8fd0\u884c\u4e86 \u200b\u200blsblk\u200b\u200b\u200b \u4ee5\u4f9b\u53c2\u8003\u3002\u6211\u4f7f\u7528\u8be5\u7ed3\u679c\u6765\u8bc6\u522b \u200b\u200b\/\u200b\u200b\u200b \u6839\u5206\u533a\u4ee5\u53ca \u200b\u200bboot\u200b\u200b\u200b \u548c \u200b\u200befi\u200b\u200b\u200b \u5206\u533a\u3002\u6211\u4f7f\u7528\u4e86\u6211\u7684\u4e00\u53f0\u865a\u62df\u673a\uff0c\u5982\u4e0b\u6240\u793a\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u6ca1\u6709 \u200b\u200befi\u200b\u200b \u5206\u533a\uff0c\u56e0\u4e3a\u6b64 VM \u4e0d\u4f7f\u7528 UEFI\u3002<\/p>\n # lsblk\r\n\r\nNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS\r\n\r\nloop0 7:0 0 1.5G 1 loop\r\n\r\nloop1 7:1 0 6G 1 loop\r\n\r\n\u251c\u2500live-rw 253:0 0 6G 0 dm \/\r\n\r\n\u2514\u2500live-base 253:1 0 6G 1 dm \r\n\r\nloop2 7:2 0 32G 0 loop\r\n\r\n\u2514\u2500live-rw 253:0 0 6G 0 dm \/\r\n\r\nsda 8:0 0 120G 0 disk\r\n\r\n\u251c\u2500sda1 8:1 0 1G 0 part\r\n\r\n\u2514\u2500sda2 8:2 0 119G 0 part\r\n\r\n \u251c\u2500vg01-swap 253:2 0 4G 0 lvm \r\n\r\n \u251c\u2500vg01-tmp 253:3 0 10G 0 lvm \r\n\r\n \u251c\u2500vg01-var 253:4 0 20G 0 lvm \r\n\r\n \u251c\u2500vg01-home 253:5 0 5G 0 lvm \r\n\r\n \u251c\u2500vg01-usr 253:6 0 20G 0 lvm \r\n\r\n \u2514\u2500vg01-root 253:7 0 5G 0 lvm \r\n\r\nsr0 11:0 1 1.6G 0 rom \/run\/initramfs\/live\r\n\r\nzram0 252:0 0 8G 0 disk [SWAP]\r\n<\/pre>\n |