根分区“/”空间不够,我该怎么办?
大家好,我现在该怎么办,是重装呢,还是有别的解决办法?我刚刚接触linux,一周前装了Fedora 7,用了近一周多的 时间把好多软件装好,却发现“跟分区/”不够用了,只剩下几百M了,硬盘上又没有剩余空白空间了,哎,都怪自己在装系统的 时候不注意分区。
系统空间:
# df -lh
文件系统 容量已用 可用 已用% 挂载点
/dev/sda9 4.9G4.5G184M97% /
/dev/sda8 99M 12M 82M13% /boot
tmpfs 217M 0217M 0% /dev/shm
/dev/sda11 17G694M 16G 5% /home
/dev/sda5 10G7.0G3.1G70% /mnt/wind
/dev/sda6 21G9.5G 11G48% /mnt/wine
/dev/sda7 15G8.0G7.1G53% /mnt/winf
/dev/sda1 8.1G4.4G3.7G55% /mnt/winc
分区信息:
# fdisk -l
Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks IdSystem
/dev/sda1 * 1 1049 8426061 cW95 FAT32 (LBA)
/dev/sda2 1050 9964 71609737+ fW95 Ext'd (LBA)
/dev/sda5 1050 2354 10482381 7HPFS/NTFS
/dev/sda6 2355 4965 20972826 7HPFS/NTFS
/dev/sda7 4966 6923 15727603+ 7HPFS/NTFS
/dev/sda8 6924 6936 104391 83Linux
/dev/sda9 6937 7590 5253223+83Linux
/dev/sda10 7591 7721 1052226 82Linux swap / Solaris
/dev/sda11 7722 9964 18016866 83Linux
挂载点:
# mount
/dev/sda9 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda8 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda11 on /home type ext3 (rw,usrquota,grpquota)
/dev/sda5 on /mnt/wind type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda6 on /mnt/wine type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda7 on /mnt/winf type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda1 on /mnt/winc type vfat (rw,codepage=936,iocharset=cp936)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
去网上搜索,发现好像不能把已知分区的空间转到另外的分区上去,去搜下想把分区/home的空间挂载到跟分区/上,又好像不行。现在想装一些应用程序,用yum自动安装,又不会设置安装软件到分区/home上(上网搜了yum的用法,还是不会)结果造成根分区/空间不够,软件安装不了,我知道也可以先下载rpm包,然后用--prefix=<PATH>,但有时,软件的 依赖性很多,自己手动得花费很多时间,还是yum方便,但又好像yum对--prefix不支持(主要是我不会用,上网搜了 很久也还是不会该yum的安装路径)。
搞到现在我有重装的冲动,请问大侠们,我现在该怎样做,我很不想重装啊,重装单装个驱动就害死我了。
主板:集成显卡、声卡、网卡(这里装驱动,我都装到很辛苦)昂达N61G,芯片组:
内存:512MB
处理器:AMD Athlon(tm)64 Processor 3000+ (64位的,也被害的不惨啊,很多软件64位装很麻烦)
请问大侠们,我现在该怎么办,是重装呢,还是有别的解决办法? 空间不够,提示安装不了:
# yum install qt*
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Loading mirror speeds from cached hostfile
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package qt-sqlite.x86_64 1:3.3.8-7.fc7 set to be updated
---> Package qt-PostgreSQL.x86_64 1:3.3.8-7.fc7 set to be dated
。。。。。。。。。。。
---> Package exiv2.x86_64 0:0.14-1.fc7 set to be updated
---> Package jfsutils.x86_64 0:1.1.10-4.1 set to be updated
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
qt i386 1:3.3.8-7.fc7 7 updates 1.9 M
qt-devel i386 1:3.3.8-7.fc7 updates 11 M
。。。。。。。。。。。。。
xfsprogs x86_64 2.9.4-3.fc7 updates 1.3 M
Transaction Summary
=============================================================================
Install 31 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 79 M
Is this ok : y
Downloading Packages:
(1/32): qt4-devel-4.3.2-1 100% |=========================| 6.2 MB 03:40
。。。。。。。。。。。。
(32/32): qt-sqlite-3.3.8- 100% |=========================| 229 kB 00:08
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
installing package qt-devel-3.3.8-7.fc7 needs 8MB on the / filesystem
installing package qt-3.3.8-7.fc7 needs 8MB on the / filesystem
installing package exiv2-0.14-1.fc7 needs 9MB on the / filesystem
installing package qt-designer-3.3.8-7.fc7 needs 14MB on the / filesystem
installing package qt-ODBC-3.3.8-7.fc7 needs 14MB on the / filesystem
installing package jfsutils-1.1.10-4.1 needs 16MB on the / filesystem
installing package qt-config-3.3.8-7.fc7 needs 16MB on the / filesystem
installing package qtpfsgui-1.8.12-1.fc7 needs 19MB on the / filesystem
installing package qt4-qsa-devel-1.2.2-4.fc7 needs 21MB on the / filesystem
installing package qt4-qsa-devel-1.2.2-4.fc7 needs 21MB on the / filesystem
installing package qt4-mysql-4.3.2-1.fc7 needs 21MB on the / filesystem
installing package qt4-devel-4.3.2-1.fc7 needs 33MB on the / filesystem
Error Summary
-------------
Disk Requirements:
At least 200MB needed on the / filesystem.
上网搜到:把一些没多大用处的文件删掉还一些空间,例如:
/usr/share/doc/
/tmp
/var/tmp
等等,但终究不是长久之计。 硬件信息:
# lspci -v
00:00.0 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
Flags: bus master, 66MHz, fast devsel, latency 0
Capabilities: HyperTransport: Slave or Primary Interface
Capabilities: HyperTransport: MSI Mapping
00:00.1 RAM memory: nVidia Corporation C51 Memory Controller 0 (rev a2)
Flags: 66MHz, fast devsel
00:00.2 RAM memory: nVidia Corporation C51 Memory Controller 1 (rev a2)
Flags: 66MHz, fast devsel
00:00.3 RAM memory: nVidia Corporation C51 Memory Controller 5 (rev a2)
Flags: 66MHz, fast devsel
00:00.4 RAM memory: nVidia Corporation C51 Memory Controller 4 (rev a2)
Flags: bus master, 66MHz, fast devsel, latency 0
00:00.5 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
Flags: bus master, 66MHz, fast devsel, latency 0
Capabilities: #00
Capabilities: #00
00:00.6 RAM memory: nVidia Corporation C51 Memory Controller 3 (rev a2)
Flags: 66MHz, fast devsel
00:00.7 RAM memory: nVidia Corporation C51 Memory Controller 2 (rev a2)
Flags: 66MHz, fast devsel
00:02.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1) (prog-if 00 )
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: fd700000-fd7fffff
Prefetchable memory behind bridge: 00000000fde00000-00000000fdefffff
Capabilities: Subsystem: nVidia Corporation Unknown device 0000
Capabilities: Power Management version 2
Capabilities: Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable-
Capabilities: HyperTransport: MSI Mapping
Capabilities: Express Root Port (Slot+) IRQ 0
00:03.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1) (prog-if 00 )
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00009000-00009fff
Memory behind bridge: fdd00000-fddfffff
Prefetchable memory behind bridge: 00000000fdc00000-00000000fdcfffff
Capabilities: Subsystem: nVidia Corporation Unknown device 0000
Capabilities: Power Management version 2
Capabilities: Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable-
Capabilities: HyperTransport: MSI Mapping
Capabilities: Express Root Port (Slot+) IRQ 0
00:04.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1) (prog-if 00 )
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000b000-0000bfff
Memory behind bridge: fd900000-fd9fffff
Prefetchable memory behind bridge: 00000000fd800000-00000000fd8fffff
Capabilities: Subsystem: nVidia Corporation Unknown device 0000
Capabilities: Power Management version 2
Capabilities: Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable-
Capabilities: HyperTransport: MSI Mapping
Capabilities: Express Root Port (Slot+) IRQ 0
00:05.0 VGA compatible controller: nVidia Corporation C51G (rev a2) (prog-if 00 )
Subsystem: nVidia Corporation Unknown device 0222
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 16
Memory at fb000000 (32-bit, non-prefetchable)
Memory at e0000000 (64-bit, prefetchable)
Memory at fc000000 (64-bit, non-prefetchable)
Expansion ROM at 30000000
Capabilities: Power Management version 2
Capabilities: Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
00:09.0 RAM memory: nVidia Corporation MCP51 Host Bridge (rev a2)
Subsystem: nVidia Corporation Unknown device cb84
Flags: bus master, 66MHz, fast devsel, latency 0
Capabilities: HyperTransport: Slave or Primary Interface
Capabilities: HyperTransport: MSI Mapping
00:0a.0 ISA bridge: nVidia Corporation MCP51 LPC Bridge (rev a2)
Subsystem: nVidia Corporation Unknown device cb84
Flags: bus master, 66MHz, fast devsel, latency 0
[ 本帖最后由 heshanxingzhe 于 2007-11-5 01:03 编辑 ] 谢谢大家看我的贴!!
现在好怀念WINDOWS XP 啊,还是WINDOWS 方便。 windows XP 一样分区小了也这样。
但 Linux 能让你用, Win XP 你想进系统都难了。
Linux 有一种软件可以把一个分区的空间和另一个分区合并起来,就像使用一个分区一样。
你可以找找。
不然就把 / 分区所有文件压缩打包,重新分区,之后解压缩回来,修复 grub 引导应该也行的。 /分区会磁盘空间不足??Linux下的磁盘管理系统应该不会出现这样的情况吧~~除非你的可用磁盘空间不够。在linux下应该会自动分配磁盘空间的大小,这就是Linux下磁盘管理比windows优越之处。 自动分配磁盘空间大小?楼上听谁说的?空间不足当然有可能的。而且不足以后也较容易出问题。
/分区空间不足的话,可以考虑把/var,/home之类的移出/分区。再另挂一个分区就行了。比win下的处理要容易。不用调整现在的/分区的大小的。 楼主执行
du -sh /usr
du -sh /var
du -sh /var/cache/yum/
这3条命令
同时把结果放上来
页:
[1]