红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

/home目录怎么重新挂载?

发布时间:2011-03-25 21:37:03来源:红联作者:yehg01
我的/home目录原本都在一个/分区上,现在我重新分出了一个新分区,想把/home目录挂到新分区上,应该怎么做?原本/home目录下的文件不会丢失吧?
以下为现有的fstab文件:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
# /etc/fstab: static file system information.
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb7 during installation
UUID=f91baee6-633c-4e5b-adf9-7a014525563a / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb8
#UUID=0675fc26-a771-4c17-8894-8686ceed34f2 /home ext3 defaults, 0 1
/dev/sdb9 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sda1 /mnt/sda1 vfat utf8,umask=0,ro 0 0
/dev/sda5 /mnt/sda5 ntfs-3g utf8,umask=0,rw,nonempty 0 0
/dev/sda6 /mnt/sda6 ntfs-3g utf8,umask=0,rw,nonempty 0 0
/dev/sda7 /mnt/sda7 ntfs-3g utf8,umask=0,ro,nonempty 0 0
/dev/sda8 /mnt/sda8 vfat utf8,umask=0,rw 0 0
/dev/sdb1 /mnt/sdb1 vfat utf8,umask=0,rw 0 0
/dev/sdb5 /mnt/sdb5 ntfs-3g utf8,umask=0,rw,nonempty 0 0
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
?上面那个UUID 和后面的一串东西是什么意思?我不确定那个代码有用,所以先注释掉了。
文章评论

共有 1 条评论

  1. hantu 于 2011-03-26 10:59:10发表:

    用tar迁移文件,然后做个链接就可以了,当然也可以改fstab挂上.