ubuntu10.04 虚拟机再次扩充分区大小

在校扩充过5G,现在又不够用了。继续扩充5G。

(1)设置扩展大小

在ubuntu10.04虚拟机上面点击右键,选择setting,然后在disk哪里,expand 5G。这样我虚拟机的虚拟磁盘就有30G了。


(2)光盘启动gparted。

还是用gparted光盘启动。

设置好光盘iso路径,只要是connet 一下光盘,重新ubuntu10.04虚拟机,(我有好几个虚拟机呢,一开始还有点糊涂改怎么让光盘识别)。

vmware会自己从光盘启动,一行vmware的白字下面好像有设置的说明,f1?f2?,速度太快,没看清楚。我按F1,弹出好多帮助的网页来。



(3)gparted分区



问题在与,分的时候,前面会有1M的空间被默认,你要改成0M才行。否则会说有boot信息被移动,就会提示下面的警告。改成0M之后,就没有这个警告了。。

















(4)激活swap分区

df看不到swap分区。







disk utility 启动不了。

重新安装disk utility :

root@ubuntu:/home/zhangbin# apt-get install diskutility
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package diskutility
root@ubuntu:/home/zhangbin# apt-get install disk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package disk

跟disk有关的软件包有这么多:
root@ubuntu:/home/zhangbin# apt-get install disk*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting libhtml-display-perl for regex 'disk*'
Note, selecting libtext-tabulardisplay-perl for regex 'disk*'
Note, selecting amiga-fdisk-bf for regex 'disk*'
Note, selecting libcpan-distnameinfo-perl for regex 'disk*'
Note, selecting disksearch for regex 'disk*'
Note, selecting iswedish for regex 'disk*'
Note, selecting libghc6-edisoncore-prof-1.2.1.3-ce2df for regex 'disk*'
Note, selecting libghc6-edison-core-prof instead of libghc6-edisoncore-prof-1.2.1.3-ce2df
Note, selecting ndiswrapper-common for regex 'disk*'
Note, selecting midisport-firmware for regex 'disk*'
Note, selecting libtest-needsdisplay-perl for regex 'disk*'
Note, selecting gnu-fdisk for regex 'disk*'
Note, selecting libdisplaymigration-dev for regex 'disk*'
Note, selecting libdisplaymigration0-dev instead of libdisplaymigration-dev
Note, selecting disktype for regex 'disk*'
Note, selecting xserver-xorg-video-displaylink for regex 'disk*'
Note, selecting mythbuntu-diskless-server for regex 'disk*'
Note, selecting libghc6-edisonapi-prof-1.2.1-0d482 for regex 'disk*'
Note, selecting libghc6-edison-api-prof instead of libghc6-edisonapi-prof-1.2.1-0d482
Note, selecting libdiscid0 for regex 'disk*'
Note, selecting netdiscover for regex 'disk*'
Note, selecting distcc-pump for regex 'disk*'
Note, selecting libdiscover1 for regex 'disk*'
Note, selecting libdiscover2 for regex 'disk*'
Note, selecting edos-distcheck for regex 'disk*'
Note, selecting libghc6-edisoncore-dev-1.2.1.3-ce2df for regex 'disk*'
Note, selecting libghc6-edison-core-dev instead of libghc6-edisoncore-dev-1.2.1.3-ce2df
Note, selecting libdisasm0 for regex 'disk*'
Note, selecting haskell-edison-core-doc for regex 'disk*'
Note, selecting gdis-data for regex 'disk*'
Note, selecting speech-dispatcher-festival for regex 'disk*'
Note, selecting udisks for regex 'disk*'
Note, selecting devicekit-disks-doc for regex 'disk*'
Note, selecting testdisk for regex 'disk*'
Note, selecting grub-disk for regex 'disk*'
Note, selecting libsnowball-swedish-perl for regex 'disk*'
Note, selecting gdisk for regex 'disk*'
Note, selecting libcommons-discovery-java for regex 'disk*'
Note, selecting php-event-dispatcher for regex 'disk*'
Note, selecting haskell-edison-api-doc for regex 'disk*'
Note, selecting audispd-plugins for regex 'disk*'
Note, selecting libdiscover1-dev for regex 'disk*'
Note, selecting acorn-fdisk for regex 'disk*'
Note, selecting madison-lite for regex 'disk*'
Note, selecting libghc6-edison-api-dev for regex 'disk*'
Note, selecting plasma-widget-indicatordisplay for regex 'disk*'
Note, selecting libdisplaymigration0-dbg for regex 'disk*'
Note, selecting libghc6-edison-api-doc for regex 'disk*'
Note, selecting libdisplaymigration0-dev for regex 'disk*'
Note, selecting udisks-doc for regex 'disk*'
Note, selecting devicekit-disks for regex 'disk*'
Note, selecting x86dis for regex 'disk*'
Note, selecting display-dhammapada for regex 'disk*'
Note, selecting libredis-perl for regex 'disk*'
Note, selecting libcommons-discovery-java-doc for regex 'disk*'
Note, selecting disc-cover for regex 'disk*'
Note, selecting midish for regex 'disk*'
Note, selecting discover for regex 'disk*'
Note, selecting ttf-radisnoir for regex 'disk*'
Note, selecting libplexus-sec-dispatcher-java for regex 'disk*'
Note, selecting ndiswrapper-utils for regex 'disk*'
Note, selecting service-discovery-applet for regex 'disk*'
Note, selecting dvdisaster-doc for regex 'disk*'
Note, selecting ndiswrapper-source for regex 'disk*'
Note, selecting liburi-todisk-perl for regex 'disk*'
Note, selecting libghc6-edison-api-prof for regex 'disk*'
Note, selecting liblog-dispatch-perl for regex 'disk*'
Note, selecting amiga-fdisk for regex 'disk*'
Note, selecting distributed-net for regex 'disk*'
Note, selecting libghc6-edison-core-dev for regex 'disk*'
Note, selecting texlive-lang-swedish for regex 'disk*'
Note, selecting libghc6-edison-core-doc for regex 'disk*'
Note, selecting gnome-disk-utility for regex 'disk*'
Note, selecting rdist for regex 'disk*'
Note, selecting dish for regex 'disk*'
Note, selecting xdiskusage for regex 'disk*'
Note, selecting dist for regex 'disk*'
Note, selecting speech-dispatcher-flite for regex 'disk*'
Note, selecting libdiscid0-dev for regex 'disk*'
Note, selecting netdisco-mibs-installer for regex 'disk*'
Note, selecting speech-dispatcher-doc-cs for regex 'disk*'
Note, selecting liblog-dispatch-filerotate-perl for regex 'disk*'
Note, selecting python-distribute-doc for regex 'disk*'
Note, selecting ltp-disc-test for regex 'disk*'
Note, selecting python-redis for regex 'disk*'
Note, selecting python-distutils-extra for regex 'disk*'
Note, selecting dis51 for regex 'disk*'
Note, selecting xfce4-diskperf-plugin for regex 'disk*'
Note, selecting gdis for regex 'disk*'
Note, selecting lphdisk for regex 'disk*'
Note, selecting libdisasm-dev for regex 'disk*'
Note, selecting libfilesys-diskspace-perl for regex 'disk*'
Note, selecting mythbuntu-diskless-client for regex 'disk*'
Note, selecting todiscgui for regex 'disk*'
Note, selecting netdisco-common for regex 'disk*'
Note, selecting netdisco-frontend for regex 'disk*'
Note, selecting ndisc6 for regex 'disk*'
Note, selecting displaycalibrator.app for regex 'disk*'
Note, selecting avahi-discover for regex 'disk*'
Note, selecting libtest-distmanifest-perl for regex 'disk*'
Note, selecting dvdisaster for regex 'disk*'
Note, selecting discover1-data for regex 'disk*'
Note, selecting libpath-dispatcher-perl for regex 'disk*'
Note, selecting ndiswrapper-modules-1.9 for regex 'disk*'
Note, selecting cil-disassembler for regex 'disk*'
Note, selecting mono-utils instead of cil-disassembler
Note, selecting createdisk for regex 'disk*'
Note, selecting wmdiskmon for regex 'disk*'
Note, selecting discus for regex 'disk*'
Note, selecting dissy for regex 'disk*'
Note, selecting libpar-dist-perl for regex 'disk*'
Note, selecting netdiscover-dbg for regex 'disk*'
Note, selecting ldiskfsck for regex 'disk*'
Note, selecting distmp3 for regex 'disk*'
Note, selecting discover-data for regex 'disk*'
Note, selecting libdisplaymigration0 for regex 'disk*'
Note, selecting ndisgtk for regex 'disk*'
Note, selecting libghc6-edison-core-prof for regex 'disk*'
Note, selecting speech-dispatcher for regex 'disk*'
Note, selecting amiga-fdisk-cross for regex 'disk*'
Note, selecting cd-discid for regex 'disk*'
Note, selecting libyadis-ruby1.8 for regex 'disk*'
Note, selecting python-dispatch for regex 'disk*'
Note, selecting distccmon-gnome for regex 'disk*'
Note, selecting redis-server for regex 'disk*'
Note, selecting libdist-zilla-perl for regex 'disk*'
Note, selecting wswedish for regex 'disk*'
Note, selecting mythbuntu-diskless-server-standalone for regex 'disk*'
Note, selecting discover1 for regex 'disk*'
Note, selecting libghc6-edisonapi-dev-1.2.1-0d482 for regex 'disk*'
Note, selecting libghc6-edison-api-dev instead of libghc6-edisonapi-dev-1.2.1-0d482
Note, selecting libdatetime-calendar-discordian-perl for regex 'disk*'
Note, selecting distcc for regex 'disk*'
Note, selecting redis-doc for regex 'disk*'
Note, selecting libtest-distribution-perl for regex 'disk*'
Note, selecting xf86-video-displaylink for regex 'disk*'
Note, selecting kdissert for regex 'disk*'
Note, selecting fdisk for regex 'disk*'
Note, selecting python-distribute for regex 'disk*'
Note, selecting python-setuptools instead of python-distribute
Note, selecting gtkdiskfree for regex 'disk*'
Note, selecting netdisco-backend for regex 'disk*'
Note, selecting x-display-manager for regex 'disk*'
Note, selecting haskell-edison-doc for regex 'disk*'
Note, selecting libdiscover-dev for regex 'disk*'
Note, selecting cl-speech-dispatcher for regex 'disk*'
Note, selecting ndiswrapper-utils-1.9 for regex 'disk*'
Note, selecting libyadis-ruby for regex 'disk*'
The following extra packages will be installed:
  acl acorn-fdisk amiga-fdisk-cross apache2 apache2-mpm-worker apache2-utils
  apache2.2-bin apache2.2-common audispd-plugins auditd automake
  avahi-discover blt bsd-mailx ca-certificates-java cd-discid cl-asdf cl-regex
  cl-speech-dispatcher common-lisp-controller debconf-utils debootstrap
  default-jre-headless devicekit-disks-doc dhcp3-client dhcp3-common
  dhcp3-server dialog dis51 disc-cover discover discover-data discover1
  discover1-data discus dish disksearch disktype display-dhammapada
  displaycalibrator.app dissy dist distcc distcc-pump distccmon-gnome distmp3
  distributed-net dump dvdauthor dvdisaster dvdisaster-doc edos-distcheck
  etherwake exo-utils expect fdutils festival festival-freebsoft-utils
  festlex-cmu festlex-poslex festvox-kallpc16k ffmpeg fxload gdis gdis-data
  gdisk ghc6 ghc6-doc ghc6-prof gnu-fdisk gnustep-back-common gnustep-back0.16
  gnustep-back0.16-art gnustep-base-common gnustep-base-runtime gnustep-common
  gnustep-gpbs gnustep-gui-common gnustep-gui-runtime grub-disk grub-rescue-pc
  gtkdiskfree haskell-edison-api-doc haskell-edison-core-doc
  icedtea-6-jre-cacao intltool ispell iswedish java-common kdelibs-data
  kdelibs4c2a kdelibs5-data kdissert lacheck latex-beamer latex-xcolor
  ldiskfsck ldm-server libalgorithm-c3-perl libany-moose-perl libao2
  libapache-dbi-perl libapache-session-perl libapache-session-wrapper-perl
  libapache2-mod-apreq2 libapache2-mod-perl2 libapache2-reload-perl
  libapache2-request-perl libapp-cmd-perl libapreq2 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libarchive-zip-perl libaudio-cd-perl libaudit0
  libautobox-perl libavahi-compat-libdnssd1 libavahi-qt3-1 libavcodec52
  libavdevice52 libavfilter0 libavformat52 libavutil49
  libb-hooks-endofscope-perl libbsd-dev libbsd-resource-perl
  libcache-cache-perl libcap2-bin libcarp-clan-perl libcdaudio1
  libclass-c3-perl libclass-c3-xs-perl libclass-container-perl
  libclass-data-inheritable-perl libclass-method-modifiers-perl
  libclass-mop-perl libclass-singleton-perl libclassworlds-java libclone-perl
  libcommon-sense-perl libcommons-discovery-java libcommons-discovery-java-doc
  libcommons-logging-java libconfig-ini-mvp-perl libconfig-ini-perl
  libconfig-mvp-perl libcpan-distnameinfo-perl libcpan-uploader-perl
  libdata-optlist-perl libdata-section-perl libdate-manip-perl
  libdatetime-calendar-discordian-perl libdatetime-locale-perl
  libdatetime-perl libdatetime-timezone-perl libdbd-pg-perl libdbi-perl
  libdc1394-22 libdevel-globaldestruction-perl libdevel-stacktrace-perl
  libdevel-symdump-perl libdigest-hmac-perl libdisasm-dev libdisasm0
  libdiscid0 libdiscid0-dev libdiscover-dev libdiscover1-dev libdiscover2
  libdisplaymigration0 libdisplaymigration0-dbg libdisplaymigration0-dev
  libdist-zilla-perl libenca0 libestools1.2 libexception-class-perl
  libexo-0.3-0 libexo-common libfile-chdir-perl libfile-find-rule-perl
  libfile-homedir-perl libfile-sharedir-install-perl libfile-slurp-perl
  libfile-spec-perl libfilesys-diskspace-perl libflite1 libfltk1.1
  libgetopt-long-descriptive-perl libghc6-edison-api-dev
  libghc6-edison-api-prof libghc6-edison-core-dev libghc6-edison-core-prof
  libghc6-mtl-dev libghc6-mtl-prof libghc6-quickcheck1-dev
  libghc6-quickcheck1-prof libgmp3-dev libgmpxx4ldbl libgnomecups1.0-1
  libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0
  libgnomeprintui2.2-common libgnustep-base1.19 libgnustep-gui0.16 libgsm1
  libhash-merge-simple-perl libhtml-display-perl libhtml-mason-perl
  libhtml-tokeparser-simple-perl libio-stringy-perl libipc-sharelite-perl
  libiso9660-7 libjaxp1.3-java libjson-perl libjson-xs-perl
  liblog-dispatch-filerotate-perl liblog-dispatch-perl liblog-log4perl-perl
  liblua5.1-0 liblua50 liblualib50 liblzo2-2
  libmasonx-request-withapachesession-perl libmixin-extrafields-param-perl
  libmixin-extrafields-perl libmixin-linewise-perl libmjpegtools-1.9
  libmodule-manifest-perl libmono0 libmoose-autobox-perl libmoose-perl
  libmoosex-getopt-perl libmoosex-types-path-class-perl libmoosex-types-perl
  libmouse-perl libmpcdec3 libmro-compat-perl libnamespace-autoclean-perl
  libnamespace-clean-perl libnet-daemon-perl libnet-dns-perl libnet-ip-perl
  libnet1 libnuma1 libnumber-compare-perl libobjc2 libopenal1 libopencryptoki0
  libpar-dist-perl libparams-util-perl libparams-validate-perl libparent-perl
  libparted0 libparted0debian1 libpath-class-perl libpath-dispatcher-perl
  libperl-version-perl libperl6-junction-perl libplexus-cipher-java
  libplexus-container-default-java libplexus-interpolation-java
  libplexus-sec-dispatcher-java libplexus-utils-java libplrpc-perl
  libpod-coverage-perl libpod-eventual-perl libpostproc51 libppi-perl libpq5
  libprelude2 libqt3-mt libquicktime1 libreadline5 libredis-perl librpm0
  librpmbuild0 librpmio0 libruby1.8 libschroedinger-1.0-0 libscope-guard-perl
  libsnmp-info-perl libsnmp-perl libsnowball-swedish-perl
  libsoftware-license-perl libsox-fmt-all libsox-fmt-alsa libsox-fmt-ao
  libsox-fmt-base libsox-fmt-ffmpeg libsox-fmt-mp3 libsox-fmt-oss
  libsox-fmt-pulse libsox1a libstring-flogger-perl libstring-formatter-perl
  libstring-rewriteprefix-perl libsub-exporter-perl libsub-identify-perl
  libsub-install-perl libsub-uplevel-perl libsvga1 libswscale0
  libtask-weaken-perl libtest-deep-perl libtest-distmanifest-perl
  libtest-distribution-perl libtest-exception-perl libtest-needsdisplay-perl
  libtest-pod-coverage-perl libtest-pod-perl libtext-glob-perl
  libtext-tabulardisplay-perl libtext-template-perl libtpm-unseal0
  libtry-tiny-perl libtspi1 liburi-todisk-perl libvariable-magic-perl
  libvcdinfo0 libx264-85 libxalan2-java libxerces2-java libxfce4util-bin
  libxfce4util-common libxfce4util4 libxfcegui4-4 libxfconf-0-2 libyadis-ruby
  libyadis-ruby1.8 libyaml-syck-perl libyaml-tiny-perl lmodern lphdisk ltp
  ltp-commands-test ltp-disc-test ltp-kernel-test ltp-misc-test
  ltp-network-test ltp-tools ltsp-client-core ltsp-server ltspfs luatex
  madison-lite mencoder midish midisport-firmware mjpegtools mkelfimage
  mono-utils mplayer mythbuntu-diskless-client mythbuntu-diskless-server
  mythbuntu-diskless-server-standalone nbd-client nbd-server ndisc6 ndisgtk
  ndiswrapper-common ndiswrapper-utils-1.9 netdisco-backend netdisco-common
  netdisco-frontend netdisco-mibs-installer netdiscover netdiscover-dbg
  numactl numlockx opencryptoki openjdk-6-jre-headless openjdk-6-jre-lib
  openssh-client openssh-server pgf php-event-dispatcher php-pear php5-cli
  php5-common postfix prosper ps2eps python-bugbuddy python-decoratortools
  python-dispatch python-distribute-doc python-distutils-extra python-evince
  python-evolution python-gnome2-desktop python-gnomeapplet
  python-gnomedesktop python-gnomekeyring python-gnomeprint python-gtop
  python-mediaprofiles python-metacity python-protocols python-redis
  python-rsvg python-setuptools python-tk python-totem-plparser python-wnck
  quota rdist realpath redis-doc redis-server rpm rpm-common rpm2cpio
  rstat-client rusers rwho rwhod sbcl service-discovery-applet sound-icons sox
  speech-dispatcher-doc-cs speech-dispatcher-festival speech-dispatcher-flite
  squashfs-tools tcl8.5 testdisk tex-common texlive-base texlive-binaries
  texlive-common texlive-doc-base texlive-extra-utils texlive-font-utils
  texlive-fonts-recommended texlive-fonts-recommended-doc
  texlive-generic-recommended texlive-lang-swedish texlive-latex-base
  texlive-latex-base-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-luatex texlive-pstricks
  texlive-pstricks-doc tftp-hpa tftpd-hpa tipa tk8.5 todiscgui tovid tpm-tools
  transcode transcode-doc trousers ttf-radisnoir twolame tzdata tzdata-java
  udhcpc udisks-doc vcdimager vorbis-tools wakeonlan wmdiskmon wswedish x86dis
  xbase-clients xdiskusage xfce-keyboard-shortcuts xfce4-diskperf-plugin
  xfce4-panel xfconf xinetd xserver-common xserver-xorg-video-displaylink xvfb
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom blt-demo default-jre
  resolvconf dhcp3-server-ldap ccache abcde apmd expectk pidgin-festival
  openbabel haskell-doc gnustep-base-doc gnustep-gui-doc spell equivs
  perl-suid kate kaffe texlive kile openoffice.org kpresenter auctex
  libcap-dev libclassworlds-java-doc libservlet2.5-java liblog4j1.2-java
  libexcalibur-logkit-java libavalon-framework-java
  libcommons-logging-java-doc dbishell libghc6-edison-api-doc
  libghc6-edison-core-doc libghc6-mtl-doc libghc6-quickcheck1-doc libgmp3-doc
  libmpfr-dev speedy-cgi-perl libfcgi-perl libhtml-mason-perl-doc
  libjaxp1.3-java-gcj libdbd-csv-perl libxml-dom-perl libipc-shareable-perl
  libparted0-dev libparted0-i18n libplexus-container-default-java-doc
  libplexus-utils-java-doc libqt3-mt-psql libqt3-mt-mysql libqt3-mt-odbc
  libxalan2-java-doc libbsf-java libxsltc-java libxalan2-java-gcj
  libxerces2-java-doc libxerces2-java-gcj rsh-server ftp-server telnet-server
  fingerd rstatd rusersd ssh-server ipsec-tools ethtool sdm audiooss
  mplayer-doc mpeg2dec a52dec netselect fping ndiswrapper-source
  libnet-nbname-perl libgraph-perl libgraphviz-perl sun-java6-fonts
  ttf-dejavu-extra ttf-sazanami-gothic ttf-kochi-gothic ttf-sazanami-mincho
  ttf-kochi-mincho ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts
  ttf-bengali-fonts libpam-ssh keychain openssh-blacklist
  openssh-blacklist-extra rssh molly-guard php5-dev php5-suhosin procmail
  postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
  dovecot-common postfix-cdb bug-buddy devscripts python-gnome2-desktop-doc
  python-gnome2-desktop-dbg tix python-tk-dbg libnet-ldap-perl alien elfutils
  rpm-i18n sbcl-doc sbcl-source slime tclreadline perl-tk dvidvi fragmaster
  latexmk xindy purifyeps psutils t1utils syslinux-common libavformat-extra-52
  libavcodec-extra-52 xvidconf
Recommended packages:
  mailx
The following packages will be REMOVED:
  openbsd-inetd tftp tftpd
The following NEW packages will be installed:
  acl acorn-fdisk amiga-fdisk-cross apache2 apache2-mpm-worker apache2-utils
  apache2.2-bin apache2.2-common audispd-plugins auditd automake
  avahi-discover blt bsd-mailx ca-certificates-java cd-discid cl-asdf cl-regex
  cl-speech-dispatcher common-lisp-controller debconf-utils debootstrap
  default-jre-headless devicekit-disks-doc dhcp3-server dialog dis51
  disc-cover discover discover-data discover1 discover1-data discus dish
  disksearch disktype display-dhammapada displaycalibrator.app dissy dist
  distcc distcc-pump distccmon-gnome distmp3 distributed-net dump dvdauthor
  dvdisaster dvdisaster-doc edos-distcheck etherwake exo-utils expect fdutils
  festival festival-freebsoft-utils festlex-cmu festlex-poslex
  festvox-kallpc16k ffmpeg fxload gdis gdis-data gdisk ghc6 ghc6-doc ghc6-prof
  gnu-fdisk gnustep-back-common gnustep-back0.16 gnustep-back0.16-art
  gnustep-base-common gnustep-base-runtime gnustep-common gnustep-gpbs
  gnustep-gui-common gnustep-gui-runtime grub-disk grub-rescue-pc gtkdiskfree
  haskell-edison-api-doc haskell-edison-core-doc icedtea-6-jre-cacao intltool
  ispell iswedish java-common kdelibs-data kdelibs4c2a kdelibs5-data kdissert
  lacheck latex-beamer latex-xcolor ldiskfsck ldm-server libalgorithm-c3-perl
  libany-moose-perl libao2 libapache-dbi-perl libapache-session-perl
  libapache-session-wrapper-perl libapache2-mod-apreq2 libapache2-mod-perl2
  libapache2-reload-perl libapache2-request-perl libapp-cmd-perl libapreq2
  libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-zip-perl
  libaudio-cd-perl libaudit0 libautobox-perl libavahi-compat-libdnssd1
  libavahi-qt3-1 libavcodec52 libavdevice52 libavfilter0 libavformat52
  libavutil49 libb-hooks-endofscope-perl libbsd-dev libbsd-resource-perl
  libcache-cache-perl libcap2-bin libcarp-clan-perl libcdaudio1
  libclass-c3-perl libclass-c3-xs-perl libclass-container-perl
  libclass-data-inheritable-perl libclass-method-modifiers-perl
  libclass-mop-perl libclass-singleton-perl libclassworlds-java libclone-perl
  libcommon-sense-perl libcommons-discovery-java libcommons-discovery-java-doc
  libcommons-logging-java libconfig-ini-mvp-perl libconfig-ini-perl
  libconfig-mvp-perl libcpan-distnameinfo-perl libcpan-uploader-perl
  libdata-optlist-perl libdata-section-perl libdate-manip-perl
  libdatetime-calendar-discordian-perl libdatetime-locale-perl
  libdatetime-perl libdatetime-timezone-perl libdbd-pg-perl libdbi-perl
  libdc1394-22 libdevel-globaldestruction-perl libdevel-stacktrace-perl
  libdevel-symdump-perl libdigest-hmac-perl libdisasm-dev libdisasm0
  libdiscid0 libdiscid0-dev libdiscover-dev libdiscover1-dev libdiscover2
  libdisplaymigration0 libdisplaymigration0-dbg libdisplaymigration0-dev
  libdist-zilla-perl libenca0 libestools1.2 libexception-class-perl
  libexo-0.3-0 libexo-common libfile-chdir-perl libfile-find-rule-perl
  libfile-homedir-perl libfile-sharedir-install-perl libfile-slurp-perl
  libfile-spec-perl libfilesys-diskspace-perl libflite1 libfltk1.1
  libgetopt-long-descriptive-perl libghc6-edison-api-dev
  libghc6-edison-api-prof libghc6-edison-core-dev libghc6-edison-core-prof
  libghc6-mtl-dev libghc6-mtl-prof libghc6-quickcheck1-dev
  libghc6-quickcheck1-prof libgmp3-dev libgmpxx4ldbl libgnomecups1.0-1
  libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0
  libgnomeprintui2.2-common libgnustep-base1.19 libgnustep-gui0.16 libgsm1
  libhash-merge-simple-perl libhtml-display-perl libhtml-mason-perl
  libhtml-tokeparser-simple-perl libio-stringy-perl libipc-sharelite-perl
  libiso9660-7 libjaxp1.3-java libjson-perl libjson-xs-perl
  liblog-dispatch-filerotate-perl liblog-dispatch-perl liblog-log4perl-perl
  liblua5.1-0 liblua50 liblualib50 liblzo2-2
  libmasonx-request-withapachesession-perl libmixin-extrafields-param-perl
  libmixin-extrafields-perl libmixin-linewise-perl libmjpegtools-1.9
  libmodule-manifest-perl libmono0 libmoose-autobox-perl libmoose-perl
  libmoosex-getopt-perl libmoosex-types-path-class-perl libmoosex-types-perl
  libmouse-perl libmpcdec3 libmro-compat-perl libnamespace-autoclean-perl
  libnamespace-clean-perl libnet-daemon-perl libnet-dns-perl libnet-ip-perl
  libnet1 libnuma1 libnumber-compare-perl libobjc2 libopenal1 libopencryptoki0
  libpar-dist-perl libparams-util-perl libparams-validate-perl libparent-perl
  libparted0 libpath-class-perl libpath-dispatcher-perl libperl-version-perl
  libperl6-junction-perl libplexus-cipher-java
  libplexus-container-default-java libplexus-interpolation-java
  libplexus-sec-dispatcher-java libplexus-utils-java libplrpc-perl
  libpod-coverage-perl libpod-eventual-perl libpostproc51 libppi-perl libpq5
  libprelude2 libqt3-mt libquicktime1 libreadline5 libredis-perl librpm0
  librpmbuild0 librpmio0 libruby1.8 libschroedinger-1.0-0 libscope-guard-perl
  libsnmp-info-perl libsnmp-perl libsnowball-swedish-perl
  libsoftware-license-perl libsox-fmt-all libsox-fmt-alsa libsox-fmt-ao
  libsox-fmt-base libsox-fmt-ffmpeg libsox-fmt-mp3 libsox-fmt-oss
  libsox-fmt-pulse libsox1a libstring-flogger-perl libstring-formatter-perl
  libstring-rewriteprefix-perl libsub-exporter-perl libsub-identify-perl
  libsub-install-perl libsub-uplevel-perl libsvga1 libswscale0
  libtask-weaken-perl libtest-deep-perl libtest-distmanifest-perl
  libtest-distribution-perl libtest-exception-perl libtest-needsdisplay-perl
  libtest-pod-coverage-perl libtest-pod-perl libtext-glob-perl
  libtext-tabulardisplay-perl libtext-template-perl libtpm-unseal0
  libtry-tiny-perl libtspi1 liburi-todisk-perl libvariable-magic-perl
  libvcdinfo0 libx264-85 libxalan2-java libxerces2-java libxfce4util-bin
  libxfce4util-common libxfce4util4 libxfcegui4-4 libxfconf-0-2 libyadis-ruby
  libyadis-ruby1.8 libyaml-syck-perl libyaml-tiny-perl lmodern lphdisk ltp
  ltp-commands-test ltp-disc-test ltp-kernel-test ltp-misc-test
  ltp-network-test ltp-tools ltsp-client-core ltsp-server ltspfs luatex
  madison-lite mencoder midish midisport-firmware mjpegtools mkelfimage
  mono-utils mplayer mythbuntu-diskless-client mythbuntu-diskless-server
  mythbuntu-diskless-server-standalone nbd-client nbd-server ndisc6 ndisgtk
  ndiswrapper-common ndiswrapper-utils-1.9 netdisco-backend netdisco-common
  netdisco-frontend netdisco-mibs-installer netdiscover netdiscover-dbg
  numactl numlockx opencryptoki openjdk-6-jre-headless openjdk-6-jre-lib
  openssh-server pgf php-event-dispatcher php-pear php5-cli php5-common
  postfix prosper ps2eps python-bugbuddy python-decoratortools python-dispatch
  python-distribute-doc python-distutils-extra python-evince python-evolution
  python-gnome2-desktop python-gnomedesktop python-gnomeprint python-gtop
  python-mediaprofiles python-metacity python-protocols python-redis
  python-rsvg python-setuptools python-tk python-totem-plparser quota rdist
  realpath redis-doc redis-server rpm rpm-common rpm2cpio rstat-client rusers
  rwho rwhod sbcl service-discovery-applet sound-icons sox
  speech-dispatcher-doc-cs speech-dispatcher-festival speech-dispatcher-flite
  squashfs-tools tcl8.5 testdisk tex-common texlive-base texlive-binaries
  texlive-common texlive-doc-base texlive-extra-utils texlive-font-utils
  texlive-fonts-recommended texlive-fonts-recommended-doc
  texlive-generic-recommended texlive-lang-swedish texlive-latex-base
  texlive-latex-base-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-luatex texlive-pstricks
  texlive-pstricks-doc tftp-hpa tftpd-hpa tipa tk8.5 todiscgui tovid tpm-tools
  transcode transcode-doc trousers ttf-radisnoir twolame tzdata-java udhcpc
  udisks-doc vcdimager vorbis-tools wakeonlan wmdiskmon wswedish x86dis
  xbase-clients xdiskusage xfce-keyboard-shortcuts xfce4-diskperf-plugin
  xfce4-panel xfconf xinetd xserver-xorg-video-displaylink xvfb
The following packages will be upgraded:
  dhcp3-client dhcp3-common libparted0debian1 openssh-client
  python-gnomeapplet python-gnomekeyring python-wnck tzdata xserver-common
9 upgraded, 468 newly installed, 3 to remove and 254 not upgraded.
Need to get 519MB of archives.
After this operation, 1,503MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.


安装disk utility:

先卸载,再安装。
root@ubuntu:/home/zhangbin# apt-get install gnome-disk-utility

Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnome-disk-utility is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 263 not upgraded.

root@ubuntu:/home/zhangbin# apt-get remove gnome-disk-utility

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  gnome-disk-utility
0 upgraded, 0 newly installed, 1 to remove and 263 not upgraded.
After this operation, 8,040kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 163934 files and directories currently installed.)
Removing gnome-disk-utility ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-support ...
root@ubuntu:/home/zhangbin# apt-get install gnome-disk-utility
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  gnome-disk-utility
0 upgraded, 1 newly installed, 0 to remove and 263 not upgraded.
Need to get 461kB of archives.
After this operation, 8,040kB of additional disk space will be used.
Get:1 http://Ubuntu.cn99.com/ubuntu/ lucid/main gnome-disk-utility 2.30.1-1 [461kB]
Fetched 461kB in 2s (214kB/s)        
Selecting previously deselected package gnome-disk-utility.
(Reading database ... 163726 files and directories currently installed.)
Unpacking gnome-disk-utility (from .../gnome-disk-utility_2.30.1-1_i386.deb) ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for python-support ...
Setting up gnome-disk-utility (2.30.1-1) ...
root@ubuntu:/home/zhangbin# 

还是启动不了。


依靠gparted了:

右键swapon,就让swap在active状态了。



但是,为啥还是会有1M在分区前面呢?




df查看分区信息还是没有swap。
root@ubuntu:/home/zhangbin# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             30446620  23595272   5304760  82% /
none                    249948       252    249696   1% /dev
none                    254580      1044    253536   1% /dev/shm
none                    254580       108    254472   1% /var/run
none                    254580         0    254580   0% /var/lock
none                    254580         0    254580   0% /lib/init/rw
root@ubuntu:/home/zhangbin# fdisk


Usage:
 fdisk [options]    change partition table
 fdisk [options] -l list partition table(s)
 fdisk -s      give partition size(s) in blocks


Options:
 -b                 sector size (512, 1024, 2048 or 4096)
 -c                        switch off DOS-compatible mode
 -h                        print help
 -u                 give sizes in sectors instead of cylinders
 -v                        print version
 -C               specify the number of cylinders
 -H               specify the number of heads
 -S               specify the number of sectors per track


fdisk是可以看到swap分区信息的:
root@ubuntu:/home/zhangbin# fdisk -l


Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00030124


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3851    30931968   83  Linux
/dev/sda2            3851        3917      524288   82  Linux swap / Solaris
root@ubuntu:/home/zhangbin# 


你可能感兴趣的:(linux菜鸟手记)