预览加载中,请您耐心等待几秒...
1/2
2/2

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

我的是给ubuntu的空间太少了`但是主要工程都是在home下,所以格式化了一个空间来作为home,然后挂载到/下 原文链接在此 HYPERLINK"http://hi.baidu.com/macroliu_/item/10f00f172f6076078ebde4ba"http://hi.baidu.com/macroliu_/item/10f00f172f6076078ebde4ba 以root权限,在终端的窗口里输入命令,找到你要挂载的分区,这里以sda5为例 $fdisk-l Disk/dev/sda:320.1GB,320072933376bytes255heads,63sectors/track,38913cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0xf517e314DeviceBootStartEndBlocksIdSystem/dev/sda1*1522241945683+7HPFS/NTFS/dev/sda2522377121999974483Linux/dev/sda377127961199987282Linuxswap/Solaris/dev/sda47962389132486219405Extended/dev/sda579621768778124063+83Linux/dev/sda61768825520629185417HPFS/NTFS/dev/sda725521389131075792417HPFS/NTFS 这里可以看到/dev/sda5,这应该是我想挂载在home下的分区。察看sda5的UUID $ls-l/dev/disk/by-uuid 看一下sda5的UUID 总计0lrwxrwxrwx1rootroot102011-04-0316:063aa554c2-e8ea-4f35-819f-7cb4573c0d67->../../sda5lrwxrwxrwx1rootroot102011-04-0316:064E8091348091240D->../../sda7lrwxrwxrwx1rootroot102011-04-0316:067b1c60be-8b84-4459-9bef-9559d9431447->../../sda2lrwxrwxrwx1rootroot102011-04-0316:068c5324bb-9e42-422d-b507-26bafa5ac7de->../../sda3lrwxrwxrwx1rootroot102011-04-0316:06AAA87F76A87F403D->../../sda6lrwxrwxrwx1rootroot102011-04-0316:06C478ECC978ECBAF6->../../sda1将sda5的UUID填到fstab关于home的挂载那一行。 $vim/etc/fstab #/etc/fstab:staticfilesysteminformation.##Use'blkid-ovalue-sUUID'toprinttheuniversallyuniqueidentifier#foradevice;thismaybeusedwithUUID=asamorerobustwaytoname#devicesthatworksevenifdisksareaddedandremoved.Seefstab(5).##<filesystem><mountpoint><type><options><dump><pass>proc/procprocnodev,noexec,nosuid00#/wason/dev/sda2duringinstallationUUID=7b1c60be-8b84-4459-9bef-9559d9431447/ext4errors=remount-ro01#/homewason/dev/sda5duringinstallationUUID=3aa554c2-e8ea-4f35-819f-7cb4573c0d67/homeext4defaults02#/windowswason/dev/sda6duringinstallation#UUID=50C5-059A/windowsvfatutf8,umask=007,gid=4601#swapwason/dev/sda3duringinstallationUUID=8c5324bb-9e42-422d-b507-26b