LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 667|回复: 3

备份系统,还原后出现问题,经验教训。

[复制链接]
发表于 2009-4-7 17:41:13 | 显示全部楼层 |阅读模式
今天重整了下分区,不想重装系统,于是备份了一下系统。
备份命令:tar cvzfl xxxx.tgz / --exclude /tmp --exclude /proc --exclude /sys --exclude /var/cache  --exclude /root --exclude /dev --exclude /home
还原: tar xvzfp xxxx.tgz -C /mnt/gentoo

grub重装,fstab针对目前分区进行更改。
mkdir /dev /proc /sys
没有备份/dev需要执行以下命令,
cd /dev
MAKEDEV generic

现在的问题是不能自动挂载光盘,移动硬盘,并且xfce4里只能logout,无法restart,shutdown...
网络自动开启出错,这个手动也无所谓,不过前两个问题令人非常郁闷
哪位大侠指点一下!



  1. PID TTY          TIME CMD
  2.     1 ?        00:00:00 init
  3.     2 ?        00:00:00 kthreadd
  4.     3 ?        00:00:00 ksoftirqd/0
  5.     4 ?        00:00:00 events/0
  6.     5 ?        00:00:00 khelper
  7.   100 ?        00:00:00 kblockd/0
  8.   103 ?        00:00:00 kacpid
  9.   104 ?        00:00:00 kacpi_notify
  10.   179 ?        00:00:00 ata/0
  11.   180 ?        00:00:00 ata_aux
  12.   181 ?        00:00:00 ksuspend_usbd
  13.   187 ?        00:00:00 khubd
  14.   190 ?        00:00:00 kseriod
  15.   234 ?        00:00:00 pdflush
  16.   235 ?        00:00:00 pdflush
  17.   236 ?        00:00:00 kswapd0
  18.   237 ?        00:00:00 aio/0
  19.   893 ?        00:00:00 scsi_eh_0
  20.   895 ?        00:00:00 scsi_eh_1
  21.   959 ?        00:00:00 kpsmoused
  22.   961 ?        00:00:00 kstriped
  23.   963 ?        00:00:00 kondemand/0
  24.   965 ?        00:00:00 hid_compat
  25.   986 ?        00:00:00 reiserfs/0
  26. 1090 ?        00:00:00 udevd
  27. 1310 ?        00:00:00 ktpacpid
  28. 2062 ?        00:00:00 irda_sir_wq
  29. 2156 ?        00:00:00 pccardd
  30. 3593 ?        00:00:00 dhcpcd
  31. 4298 ?        00:00:00 syslog-ng
  32. 4356 ?        00:00:00 dbus-daemon
  33. 4554 ?        00:00:00 slim
  34. 4574 tty7     00:00:51 X
  35. 4606 ?        00:00:00 cron
  36. 4672 tty1     00:00:00 agetty
  37. 4673 tty2     00:00:00 agetty
  38. 4674 tty3     00:00:00 agetty
  39. 4675 tty4     00:00:00 agetty
  40. 4676 tty5     00:00:00 agetty
  41. 4677 tty6     00:00:00 agetty
  42. 4717 ?        00:00:00 sh
  43. 4726 ?        00:00:00 xscreensaver
  44. 4729 ?        00:00:00 ssh-agent
  45. 4734 ?        00:00:00 dbus-daemon
  46. 4735 ?        00:00:00 dbus-launch
  47. 4737 ?        00:00:00 xfce4-session
  48. 4738 ?        00:00:07 fcitx
  49. 4740 ?        00:00:00 xfconfd
  50. 4744 ?        00:00:00 xfsettingsd
  51. 4746 ?        00:00:01 xfwm4
  52. 4748 ?        00:00:00 xfce4-panel
  53. 4750 ?        00:00:00 Thunar
  54. 4761 ?        00:00:00 xfce4-settings-
  55. 4763 ?        00:00:00 gam_server
  56. 4768 ?        00:00:00 xfce4-menu-plug
  57. 4771 ?        00:00:00 xfce4-mixer-plu
  58. 4775 ?        00:00:00 sudo <defunct>
  59. 4779 ?        00:00:00 Terminal
  60. 4780 ?        00:00:00 gnome-pty-helpe
  61. 4781 pts/0    00:00:00 bash
  62. 4858 ?        00:01:13 firefox
  63. 4862 ?        00:00:00 gconfd-2
  64. 4918 ?        00:00:00 scsi_eh_2
  65. 4920 ?        00:00:00 usb-storage
  66. 5001 ?        00:00:00 sudo <defunct>
  67. 5013 ?        00:00:00 xfdesktop
  68. 5022 pts/0    00:00:00 ps
复制代码

  1. bootmisc | boot                          
  2.              checkfs | boot                          
  3.            checkroot | boot                          
  4.                clock | boot                          
  5.          consolefont | boot                          
  6.                 hald |      default                  
  7.             hostname | boot                          
  8.              keymaps | boot                          
  9.                local |      default nonetwork        
  10.           localmount | boot                          
  11.              modules | boot                          
  12.             netmount |      default                  
  13.            rmnologin | boot                          
  14.            syslog-ng |      default                  
  15.              urandom | boot                          
  16.           vixie-cron |      default                  
  17.                  xdm |      default
复制代码
发表于 2009-4-7 19:24:51 | 显示全部楼层
关注一下,等高手出现。。。
回复 支持 反对

使用道具 举报

发表于 2009-4-7 20:29:38 | 显示全部楼层
菜鸟路过,从别的系统下删了${gentoo}/dev下所有东东,删除X相关服务
重启进入gentoo,您会看到个很有趣的提示,按着做就可以了,哈哈,就这么简单
回复 支持 反对

使用道具 举报

发表于 2009-4-7 22:00:07 | 显示全部楼层
Post by nonplus;1971050
菜鸟路过,从别的系统下删了${gentoo}/dev下所有东东,删除X相关服务
重启进入gentoo,您会看到个很有趣的提示,按着做就可以了,哈哈,就这么简单

别掉人胃口了
我以前没遇到过这种问题,哪位大侠愿意牺牲下自己的系统给我们复现下???
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表