特殊:Badtitle/NS100:RenamingExt3Partitions/zh
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/RenamingExt3Partitions }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/af | • {{#if: UbuntuHelp:RenamingExt3Partitions|Afrikaans| [[::RenamingExt3Partitions/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ar | • {{#if: UbuntuHelp:RenamingExt3Partitions|العربية| [[::RenamingExt3Partitions/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/az | • {{#if: UbuntuHelp:RenamingExt3Partitions|azərbaycanca| [[::RenamingExt3Partitions/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/bcc | • {{#if: UbuntuHelp:RenamingExt3Partitions|جهلسری بلوچی| [[::RenamingExt3Partitions/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/bg | • {{#if: UbuntuHelp:RenamingExt3Partitions|български| [[::RenamingExt3Partitions/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/br | • {{#if: UbuntuHelp:RenamingExt3Partitions|brezhoneg| [[::RenamingExt3Partitions/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ca | • {{#if: UbuntuHelp:RenamingExt3Partitions|català| [[::RenamingExt3Partitions/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/cs | • {{#if: UbuntuHelp:RenamingExt3Partitions|čeština| [[::RenamingExt3Partitions/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/de | • {{#if: UbuntuHelp:RenamingExt3Partitions|Deutsch| [[::RenamingExt3Partitions/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/el | • {{#if: UbuntuHelp:RenamingExt3Partitions|Ελληνικά| [[::RenamingExt3Partitions/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/es | • {{#if: UbuntuHelp:RenamingExt3Partitions|español| [[::RenamingExt3Partitions/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/fa | • {{#if: UbuntuHelp:RenamingExt3Partitions|فارسی| [[::RenamingExt3Partitions/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/fi | • {{#if: UbuntuHelp:RenamingExt3Partitions|suomi| [[::RenamingExt3Partitions/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/fr | • {{#if: UbuntuHelp:RenamingExt3Partitions|français| [[::RenamingExt3Partitions/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/gu | • {{#if: UbuntuHelp:RenamingExt3Partitions|ગુજરાતી| [[::RenamingExt3Partitions/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/he | • {{#if: UbuntuHelp:RenamingExt3Partitions|עברית| [[::RenamingExt3Partitions/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/hu | • {{#if: UbuntuHelp:RenamingExt3Partitions|magyar| [[::RenamingExt3Partitions/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/id | • {{#if: UbuntuHelp:RenamingExt3Partitions|Bahasa Indonesia| [[::RenamingExt3Partitions/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/it | • {{#if: UbuntuHelp:RenamingExt3Partitions|italiano| [[::RenamingExt3Partitions/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ja | • {{#if: UbuntuHelp:RenamingExt3Partitions|日本語| [[::RenamingExt3Partitions/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ko | • {{#if: UbuntuHelp:RenamingExt3Partitions|한국어| [[::RenamingExt3Partitions/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ksh | • {{#if: UbuntuHelp:RenamingExt3Partitions|Ripoarisch| [[::RenamingExt3Partitions/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/mr | • {{#if: UbuntuHelp:RenamingExt3Partitions|मराठी| [[::RenamingExt3Partitions/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ms | • {{#if: UbuntuHelp:RenamingExt3Partitions|Bahasa Melayu| [[::RenamingExt3Partitions/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/nl | • {{#if: UbuntuHelp:RenamingExt3Partitions|Nederlands| [[::RenamingExt3Partitions/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/no | • {{#if: UbuntuHelp:RenamingExt3Partitions|norsk| [[::RenamingExt3Partitions/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/oc | • {{#if: UbuntuHelp:RenamingExt3Partitions|occitan| [[::RenamingExt3Partitions/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/pl | • {{#if: UbuntuHelp:RenamingExt3Partitions|polski| [[::RenamingExt3Partitions/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/pt | • {{#if: UbuntuHelp:RenamingExt3Partitions|português| [[::RenamingExt3Partitions/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ro | • {{#if: UbuntuHelp:RenamingExt3Partitions|română| [[::RenamingExt3Partitions/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/ru | • {{#if: UbuntuHelp:RenamingExt3Partitions|русский| [[::RenamingExt3Partitions/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/si | • {{#if: UbuntuHelp:RenamingExt3Partitions|සිංහල| [[::RenamingExt3Partitions/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/sq | • {{#if: UbuntuHelp:RenamingExt3Partitions|shqip| [[::RenamingExt3Partitions/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/sr | • {{#if: UbuntuHelp:RenamingExt3Partitions|српски / srpski| [[::RenamingExt3Partitions/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/sv | • {{#if: UbuntuHelp:RenamingExt3Partitions|svenska| [[::RenamingExt3Partitions/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/th | • {{#if: UbuntuHelp:RenamingExt3Partitions|ไทย| [[::RenamingExt3Partitions/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/tr | • {{#if: UbuntuHelp:RenamingExt3Partitions|Türkçe| [[::RenamingExt3Partitions/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/vi | • {{#if: UbuntuHelp:RenamingExt3Partitions|Tiếng Việt| [[::RenamingExt3Partitions/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/yue | • {{#if: UbuntuHelp:RenamingExt3Partitions|粵語| [[::RenamingExt3Partitions/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/zh | • {{#if: UbuntuHelp:RenamingExt3Partitions|中文| [[::RenamingExt3Partitions/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/zh-hans | • {{#if: UbuntuHelp:RenamingExt3Partitions|中文(简体)| [[::RenamingExt3Partitions/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:RenamingExt3Partitions | UbuntuHelp:RenamingExt3Partitions | {{#if: | :}}RenamingExt3Partitions/zh}}/zh-hant | • {{#if: UbuntuHelp:RenamingExt3Partitions|中文(繁體)| [[::RenamingExt3Partitions/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:RenamingExt3Partitions|:RenamingExt3Partitions/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :RenamingExt3Partitions/zh/zh | | {{#ifexist: RenamingExt3Partitions/zh/zh | | {{#ifeq: {{#titleparts:RenamingExt3Partitions/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:RenamingExt3Partitions/zh|1|-1|}} | zh | | }}
重命名移动存储设备上的Ext3分区
通常情况下我们无需特意为某个分区指定名称,因为一般你作为挂载点的文件夹名称就会被指定为该设备的名称,但当被挂载的为移动设备上的某个分区时情况有所不同,主要是因为这类USB设备通常都是由系统自动挂载的,所以你不能为它指定具体的挂载点(这里说的不能只是指更改起来比较烦杂一些).
下面这些命令可以为分区指定名称,指定之后你在任意一台安装有linux的计算机上接上该设备,它都会显示出你为它指派的名称,挂载点则为/media/下同名文件夹<---这个不知道其他发行版上是不是通用的.
要为EXT3分区指定名称,运行下面的命令(并且填入正确的相关信息)
tune2fs -L NewLabel /dev/XXX
将Newlabel替换为你想用的名称,/dev/XXX替换为你实际的设备路径,查询路径的方法很多,你可以用gparted/qtparted这类的磁盘管理软件查看想重命名的分区对应的路径,也可以在终端中执行fdisk-l查询,这样查询只能显示出你所拥有的设备.加上sudo则会显示出所有的设备.
当你设置将Newlabel和/dev/xxx设置为与你情况相符后按回车,新的信息就被写到该分区上了,不过我发现似乎要重启系统后才会生效,当你重启系统之后,你的新分区(比如我的移动硬盘)就会自动以新名称挂载到/media/newlabel下面,同时它在桌面和文件管理器里面都会以新的命名显示.
重命名内置硬盘上的EXT3分区
这里的操作较为简单,你只需要修改挂载分区的目录名称,执行下面的命令
sudo mkdir /media/新名称 <---注意,请用你喜欢的名字替换'''新名称''',尽量不要用中文名
然后修/etc/fstab(记得先备份)
sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
先对里面的格式进行说明一下:假设某句中有/dev/hde4 /home那说明你的/dev/hde4就是挂载在/home下面的.
接下来就可以开始更改某个分区的挂载点,让它自动挂到你新建的文件夹下面,假设你有/dev/hda2这一个分区,它原来是挂在/media/windows目录下的,现在我们把它挂到前面新创建的文件夹下面,只需将/media/windows更改为/media/新名称就可以了.
保存退出,重启计算机该分区就会自动挂载在新的文件夹下面了,在桌面上显示的名称也变成和该文件夹同名的了.
如果你不幸碰到什么错误,只需要恢复前面备份好的fstab文件,重启就可以恢复来原来的状态,运行下面的指令恢复它:
sudo cp /etc/fstab_backup /etc/fstab
修改之后确认无误,而且你对新的挂载很满意并且确定不想恢复原先的挂载方案,那就可以删除fstab_backup这个备份文件了
sudo rm /etc/fstab_backup
Good Luck!