【已解决】分区被挂载成光驱了
Tofloor
poster avatar
herdde
deepin
2017-08-06 17:32
Author
本帖最后由 herdde 于 2017-8-6 20:26 编辑

怎么解决?
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
herdde
deepin
2017-08-06 17:41
#1
所有新建的分区都会被挂载成光驱
Reply View the author
avatar
jingle
deepin
2017-08-06 20:12
#2
终端显示呢
Reply View the author
avatar
herdde
deepin
2017-08-06 20:16
#3

如图           
Reply View the author
avatar
herdde
deepin
2017-08-07 01:12
#4
her@her-PC:~$ cat /etc/fstab
# /dev/sda2
UUID=a83b53e8-fc78-4e46-bdc1-538de6e89547        /                 ext4              rw,relatime,data=ordered        0 1
Reply View the author
avatar
herdde
deepin
2017-08-07 01:13
#5
her@her-PC:~$ cat /etc/mtab
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=4012924k,nr_inodes=1003231,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=807308k,mode=755 0 0
/dev/sda2 / ext4 rw,relatime,data=ordered 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1664 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=807304k,mode=700,uid=1000,gid=1000 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/fuse /run/user/1000/doc fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/sda1 /media/her/CDROM ext4 rw,nosuid,nodev,relatime,data=ordered 0 0

Reply View the author
avatar
herdde
deepin
2017-08-07 01:15
#6
her@her-PC:~$ sudo grub-install /dev/sda
[sudo] password for her:
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
Reply View the author
avatar
deepinwang
deepin
2017-08-07 02:41
#7
  1. /dev/sda1 /media/her/CDROM ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
Copy the Code

看见没,虽然它的挂载点叫"CDROM",但是系统还是按照ext来对待的,可读可写。
感觉看得别扭的话,用e2label改一下卷标就好。
Reply View the author
avatar
herdde
deepin
2017-08-07 02:45
#8
本帖最后由 herdde 于 2017-8-6 18:47 编辑
https://bbs.deepin.org/post/143782
看见没,虽然它的挂载点叫"CDROM",但是系统还是按照ext来对待的,可读可写。
感觉看得别扭的话,用e2labe ...

怎么能变成原来的样子?一串数字那样的
还有个问题,grub装不上,不知道是不是因为这个

Reply View the author
avatar
deepinwang
deepin
2017-08-07 02:47
#9
https://bbs.deepin.org/post/143782
怎么能变成原来的样子?

因为你的fstab里面没有涉及/dev/sda1,所以我猜你是在文件管理器中点击它然后自动挂载的。
如果是这样的话,就只能用e2label给/dev/sda1改卷标。因为udisks自动挂载的时候会根据分区的卷标来命名它的挂载点。
Reply View the author
avatar
deepinwang
deepin
2017-08-07 02:48
#10
https://bbs.deepin.org/post/143782
怎么能变成原来的样子?一串数字那样的
还有个问题,grub装不上,不知道是不是因为这个

把卷标设置成空的就行。

grub装不上的表现是什么?grub-install的输出内容呢?
Reply View the author
avatar
herdde
deepin
2017-08-07 02:50
#11
https://bbs.deepin.org/post/143782
把卷标设置成空的就行。

grub装不上的表现是什么?grub-install的输出内容呢? ...

her@her-PC:~$ sudo grub-install /dev/sda
[sudo] password for her:
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
Reply View the author
avatar
deepinwang
deepin
2017-08-07 02:54
#12
可能是之前的GRUB没装好。
  1. sudo mv /boot/grub /boot/grub.bak
Copy the Code

然后再安装试试。
如果你是在Live系统中安装GRUB,还需要做额外的处理。
Reply View the author
avatar
herdde
deepin
2017-08-07 02:57
#13
https://bbs.deepin.org/post/143782
可能是之前的GRUB没装好。

然后再安装试试。

如图         
Reply View the author
avatar
deepinwang
deepin
2017-08-07 03:36
#14
说实话,看到stage1的时候,我就觉得你的grub可能有问题。
上网一查,发现出现这个问题的都是用了GRUB1,而不是当下常见的GRUB2。
建议你看看你的GRUB版本有没有问题。
  1. dpkg -l | grep -i grub
Copy the Code
Reply View the author
avatar
herdde
deepin
2017-08-07 03:52
#15
https://bbs.deepin.org/post/143782
说实话,看到stage1的时候,我就觉得你的grub可能有问题。
上网一查,发现出现这个问题的都是用了GRUB1,而 ...

her@her-PC:~$ dpkg -l | grep -i grub
ii  grub-common                              2.02~beta3-4                        amd64        GRand Unified Bootloader (common files)
ii  grub-legacy                              0.97-72                             amd64        GRand Unified Bootloader (Legacy version)
rc  grub-pc                                  2.02~beta3-4                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
rc  grub2                                    2.02~beta3-4                        amd64        GRand Unified Bootloader, version 2 (dummy package)
Reply View the author
avatar
deepinwang
deepin
2017-08-07 04:07
#16
你的GRUB2组件缺失。
  1. sudo apt install grub2 grub2-common
Copy the Code
Reply View the author
avatar
herdde
deepin
2017-08-07 04:11
#17
https://bbs.deepin.org/post/143782
你的GRUB2组件缺失。

her@her-PC:~$ sudo grub-install /dev/sda
[sudo] password for her:
Installing for i386-pc platform.
grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels.  This is not supported yet..
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
Reply View the author
avatar
herdde
deepin
2017-08-07 04:27
#18
https://bbs.deepin.org/post/143782
你的GRUB2组件缺失。

终于能正常开机了,这个也正常了
Reply View the author
avatar
deepinwang
deepin
2017-08-07 04:31
#19
https://bbs.archlinux.org/viewtopic.php?id=144254

如果你的/dev/sda是硬盘(而不是移动设备的话),很可能是之前装Win7之类的系统时引入了Hybrid MBR,导致GRUB不能正确判断分区表的类型。
如果你的sda上没有重要数据,建议把分区都删了,重新建一个纯GPT或者纯MBR分区表(用gparted或者parted都可)。
如果有重要数据,就先用parted看看,第一个分区的起始位置,然后参考这个文章(http://www.jianshu.com/p/e9ca1a678018)用dd填零。

警告:分区操作有危险,数据备份宜当先。
Reply View the author
avatar
herdde
deepin
2017-08-07 04:33
#20
挂载到光驱可能是做启动盘时字母变了(u盘一般是sdb),导致镜像写到硬盘上去了,分区是用分区助手找回的,而win7没找回来
Reply View the author
1 / 2
To page