求助:/home被挂载到/media下面了

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
jefmq
帖子: 27
注册时间: 2010-10-25 11:27

求助:/home被挂载到/media下面了

#1

帖子 jefmq » 2012-01-12 12:37

整个硬盘就只有三个分区:/ /home swap
刚才重装系统,把/格式化了,然后装系统,忘了挂载/home了,结果现在装好系统以后重启 ,发现原来的/home分区被挂载到了/media下面了,有什么办法让它恢复啊?好像新建分区也没有啊?
附件
1.jpg
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland

Re: 求助:/home被挂载到/media下面了

#2

帖子 nmsfan » 2012-01-12 12:49

写/etc/fatab
# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda9 during installation
UUID=22d5c603-3a91-49a7-ab96-dfd47fa2b2d3 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda10 during installation
UUID=86dd2c74-4c81-4e4f-8376-028d79a6afc8 /home ext4 defaults 0 2
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
jefmq
帖子: 27
注册时间: 2010-10-25 11:27

Re: 求助:/home被挂载到/media下面了

#3

帖子 jefmq » 2012-01-12 12:52

nmsfan 写了:写/etc/fatab
# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda9 during installation
UUID=22d5c603-3a91-49a7-ab96-dfd47fa2b2d3 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda10 during installation
UUID=86dd2c74-4c81-4e4f-8376-028d79a6afc8 /home ext4 defaults 0 2

老大,没找到有这个/etc/fstab 这个文件啊?
jefmq
帖子: 27
注册时间: 2010-10-25 11:27

Re: 求助:/home被挂载到/media下面了

#4

帖子 jefmq » 2012-01-12 12:54

nmsfan 写了:写/etc/fatab
# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda9 during installation
UUID=22d5c603-3a91-49a7-ab96-dfd47fa2b2d3 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda10 during installation
UUID=86dd2c74-4c81-4e4f-8376-028d79a6afc8 /home ext4 defaults 0 2


找到了,可是这个文件该怎么整啊?
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland

Re: 求助:/home被挂载到/media下面了

#5

帖子 nmsfan » 2012-01-12 13:11

看懂了再改
sudo gedit /etc/fstab
修改文件
看懂了这个文件的写法再改,后果自负……………
先google一下吧还是…………网上东西很多的
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
头像
lotutu
帖子: 730
注册时间: 2010-12-23 16:29
来自: 北京

Re: 求助:/home被挂载到/media下面了

#6

帖子 lotutu » 2012-01-12 13:32

楼上正解
jefmq
帖子: 27
注册时间: 2010-10-25 11:27

Re: 求助:/home被挂载到/media下面了

#7

帖子 jefmq » 2012-01-12 19:13

nmsfan 写了:看懂了再改
sudo gedit /etc/fstab
修改文件
看懂了这个文件的写法再改,后果自负……………
先google一下吧还是…………网上东西很多的

呵呵,改好了,重启后就正常了。

代码: 全选

# /etc/fstab: static file system information.
#
# Use 'blkid' 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).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=d6fdd580-f5e8-4e05-98ef-f1e499c66b91 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=911c1cca-a62c-4d8e-9305-b25b44918760 none            swap    sw              0       0
#/dev/sda6
UUID=4524477b-5cc4-4184-8ad6-daf7698e04b5 /home ext4  defaults 0 2
回复