系统提示空间不足问题
Tofloor
poster avatar
zhenglingkun
deepin
2014-01-05 20:47
Author
我之前安装了ubuntu系统,在安装linux deepin时,选择的是覆盖ubuntu系统安装(不想再从新分区,感觉麻烦),安装成功后,接着安装了一些软件,提示我空间不足,我在文件管理里面看了一下,原来是我之前分ubuntu空间没有格式化,安装linux deepin只是用了一部分,现在 我想把没有格式化的那部分空间添加到已经安装好linux deepin上,这个要怎么操作?
zlk@zlk-Lenovo-IdeaPad-Y400:~$ df -h
文件系统        容量  已用  可用 已用% 挂载点
/dev/sda11      9.3G  8.7G  183M   98% /
none            4.0K     0  4.0K    0% /sys/fs/cgroup
udev            1.9G  4.0K  1.9G    1% /dev
tmpfs           391M  920K  390M    1% /run
none            5.0M     0  5.0M    0% /run/lock
none            2.0G  212K  2.0G    1% /run/shm
none            100M     0  100M    0% /run/user
/dev/sda17      206G   53G  143G   28% /media/zlk/157b8be9-cce9-427f-82be-372f404ac972
/dev/sda16       94G  682M   89G    1% /media/zlk/e4144d81-7876-4ffe-b628-68edc5aaaa84
/dev/sda15       94G  3.8G   86G    5% /media/zlk/1444edd7-24e5-4aaa-942d-c36fe864d6f7
/dev/sda14       94G  690M   89G    1% /media/zlk/3a2b3fde-180d-49e6-95ff-0bb13bdb1ac0
/dev/sda13      2.9G  795M  1.9G   30% /media/zlk/5f5064c9-a224-46a7-934c-34820abf02c8
/dev/sda12      962M   18M  896M    2% /media/zlk/6806ed51-e3fa-4111-af26-7d995d1481e3
/dev/sda9        88M   47M   38M   56% /media/zlk/82961c11-2004-44eb-873a-909328306e32
下面是没有格式化的空间,怎样才能把它们分配到已安装的Linux Deepin上面:
/dev/sda17      206G   53G  143G   28% /media/zlk/157b8be9-cce9-427f-82be-372f404ac972
/dev/sda16       94G  682M   89G    1% /media/zlk/e4144d81-7876-4ffe-b628-68edc5aaaa84
/dev/sda15       94G  3.8G   86G    5% /media/zlk/1444edd7-24e5-4aaa-942d-c36fe864d6f7
/dev/sda14       94G  690M   89G    1% /media/zlk/3a2b3fde-180d-49e6-95ff-0bb13bdb1ac0
/dev/sda13      2.9G  795M  1.9G   30% /media/zlk/5f5064c9-a224-46a7-934c-34820abf02c8
/dev/sda12      962M   18M  896M    2% /media/zlk/6806ed51-e3fa-4111-af26-7d995d1481e3
/dev/sda9        88M   47M   38M   56% /media/zlk/82961c11-2004-44eb-873a-909328306e32
帮帮忙,谢谢了!前提是不重新装系统
Reply Favorite View the author
All Replies
2 / 2
To page
zhenglingkun
deepin
2014-01-10 03:25
#21
[quote]sudo mount /dev/sda7 /mnt
mount: 您必须指定文件系统类型[/quote]
1. 你貼上來的圖 並沒有顯示 /dev/sda7 的分割形態
2. 如果是 ext2 (Grub 2 預設可能是這個) 或 沒有指定
sudo mount -t ext2 /dev/sda7 /mnt
3. 如果是 fat32 或 沒有指定
sudo mount -t vfat /dev/sda7 /mnt
3-1. 如果你要掛載 /dev/sda2 (fat32)
sudo umount /dev/sda7 (需先把 /mnt 卸載 才能再 掛載)
sudo mount -t vfat /dev/sda2 /mnt
4. 參閱
https://help.ubuntu.com/community/Fstab[/quote]
zlk@zlk-Lenovo-IdeaPad-Y400:~$ sudo mount -t ext2 /dev/sda7 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda7,
       missing codepage or helper program, or other error
       系统日志中可能有一些重要的信息,
       试试用 dmesg | tail 之类的命令查看。

zlk@zlk-Lenovo-IdeaPad-Y400:~$ sudo mount -t vfat /dev/sda7 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda7,
       missing codepage or helper program, or other error
       系统日志中可能有一些重要的信息,
       试试用 dmesg | tail 之类的命令查看。
能给出什么具体的操作步骤吗?你前面说的那些方法我现在不敢轻易尝试,能不能给个比较好的、风险小的操作方法让我试试啊?
Reply View the author
woodelf
deepin
2014-01-10 03:47
#22
mount命令很久以前就不需要-t来手动指定文件系统类型了,早就可以自动判断目标文件系统类型了。
胡乱加-t并且指定了错误的文件系统只会导致挂载失败而已。
在什么情况下可能需要-t?
1、目标文件系统的元数据块有损坏,而又无法通过fsck来修正文件系统错误的情况下,可能可以通过-t指定文件系统类型并添加-f强制挂载来拯救数据。
2、mount命令判断出来的文件系统有误,这可能是由于意外更改文件系统ID所导致。
Reply View the author
poloshiao
deepin
2014-01-10 05:26
#23
mount命令很久以前就不需要-t来手动指定文件系统类型了,早就可以自动判断目标文件系统类型了。
1. 如果要 自动判断目标文件系统类型 需要 加 auto 參數
You may either use auto or specify a file system. Auto will attempt to automatically detect the file system of the target file system and in general works well.
2. 一般 auto 參數使用在 移動裝置
In general auto is used for removable devices and a specific file system or network protocol for network shares.
3. 如果分割區的 檔案系統類型 已經明確 不需要猜測 或 偵測 可以直接指定 -t 檔案系統類型 還沒看過有什麼不好的後遺症的 Bug Report
4. 如果在 /etc/fstab 或 /etc/mtab 已經有掛載了 卸載後要以原來的檔案系統類型重新掛載 可以不必加 -t

資料來源
1. https://help.ubuntu.com/community/Fstab ... c_Examples
2. http://manpages.ubuntu.com/manpages/rar ... tab.5.html
3. http://manpages.ubuntu.com/manpages/rar ... unt.8.html
Reply View the author
zhenglingkun
deepin
2014-01-10 05:35
#24
[quote]mount命令很久以前就不需要-t来手动指定文件系统类型了,早就可以自动判断目标文件系统类型了。
1. 如果要 自动判断目标文件系统类型 需要 加 auto 參數
You may either use auto or specify a file system. Auto will attempt to automatically detect the file system of the target file system and in general works well.
2. 一般 auto 參數使用在 移動裝置
In general auto is used for removable devices and a specific file system or network protocol for network shares.
3. 如果分割區的 檔案系統類型 已經明確 不需要猜測 或 偵測 可以直接指定 -t 檔案系統類型 還沒看過有什麼不好的後遺症的 Bug Report
4. 如果在 /etc/fstab 或 /etc/mtab 已經有掛載了 卸載後要以原來的檔案系統類型重新掛載 可以不必加 -t

資料來源
1. https://help.ubuntu.com/community/Fstab ... c_Examples
2. http://manpages.ubuntu.com/manpages/rar ... tab.5.html
3. http://manpages.ubuntu.com/manpages/rar ... unt.8.html[/quote]
有什么具体的操作步骤吗?
Reply View the author
poloshiao
deepin
2014-01-10 06:04
#25
有什么具体的操作步骤吗?
這樣的問法 很廣泛 不容易給你回答
參見
http://www.linuxdeepin.com/forum/topic?p=78907#p78907
Reply View the author
woodelf
deepin
2014-01-10 06:51
#26
[quote]mount命令很久以前就不需要-t来手动指定文件系统类型了,早就可以自动判断目标文件系统类型了。
1. 如果要 自动判断目标文件系统类型 需要 加 auto 參數
You may either use auto or specify a file system. Auto will attempt to automatically detect the file system of the target file system and in general works well.
2. 一般 auto 參數使用在 移動裝置
In general auto is used for removable devices and a specific file system or network protocol for network shares.
3. 如果分割區的 檔案系統類型 已經明確 不需要猜測 或 偵測 可以直接指定 -t 檔案系統類型 還沒看過有什麼不好的後遺症的 Bug Report
4. 如果在 /etc/fstab 或 /etc/mtab 已經有掛載了 卸載後要以原來的檔案系統類型重新掛載 可以不必加 -t

資料來源
1. https://help.ubuntu.com/community/Fstab ... c_Examples
2. http://manpages.ubuntu.com/manpages/rar ... tab.5.html
3. http://manpages.ubuntu.com/manpages/rar ... unt.8.html[/quote]
不需要,直接mount target dest即可实现自动识别文件系统并挂载。
不过,始终指定具体的文件系统类型和详细的挂载参数确实是个非常良好的使用习惯,有助于进一步管理自己的系统。
Reply View the author
2 / 2
To page