Linux 为何对病毒免疫?
Gentoo下如何编译安装xetex-dev

我的Gentoo系统备份与还原方案

lyanry posted @ 2007年10月09日 07:49 in 我爱用Gentoo with tags gentoo 备份 , 9013 阅读

系统备份

这是我个人的习惯作法,未必适合其他人,写下来仅是供大家做个参考。

首先,我有个分区装了个后备系统。这样每当其他系统出了问题,我不至于没机子用。这个后备系统我平时很少用,更不会去瞎调;但我机子的 Grub是从这儿装的,备份或抢修其它分区也是在这儿做的。我这个后备系统用的是 Fedora 7,主要是因为使用 Fedora 7 的 live cd 安装系统比较容易,且占用空间小。

首先become root,准备备份装在 sda7 上的 gentoo 内核,以及 sda8 上的 gentoo 系统:

# mount /dev/sda7 /mnt/gentoo-boot
# mount /dev/sda8 /mnt/gentoo-sys

备份位于 sda7 上的 gentoo boot 分区:

# cd /mnt/gentoo-boot
# tar -czpivf /opt/gentoo-bak/gentoo-boot-sda7-xxxxxxxx.tar.gz *

备份位于 sda8 上的 gentoo 系统,将整个分区备份到 /opt/gentoo-bak 目录,但不包括/mnt/linux/usr/portage/distfiles下的东西:

# cd /mnt/gentoo-sys
# tar -cz --exclude=usr/portage/distfiles -pivf /opt/gentoo-bak/gentoo-sda8-xxxxxxxx.tar.gz *

系统还原

还原之前,最好将 sda7 与 sda8 格式化一下,如:

# mke2fs -j /dev/sda7
# mke2fs -j /dev/sda8

所谓还原,其实就是将备份包解开分别放置在原分区下:

# mount /dev/sda7 /mnt/gentoo-boot
# cd /mnt/gentoo_boot
# tar -zxvf /opt/gentoo-bak/gentoo-boot-sda7-xxxxxxxx.tar.gz

# mount /dev/sda8 /mnt/gentoo_sys
# cd /mnt/gentoo_sys
# tar xzvf /opt/gentoo-bak/gentoo-sda8-xxxxxxxx.tar.gz
Avatar_small
blogecho 说:
2007年10月12日 17:10 不好意思,我在这里:http://blogecho.cn/archives/101.html引用了你的文章,没有注明出处,实在抱歉。 事实上,我当时给自己的博客定位只是把它当作自己的网络记事本了,所以对于很多文章都是直接copy过来,没有考虑版权的问题,十分抱歉。我已经加上了出处。呵呵
Avatar_small
gentoo 说:
2008年6月12日 07:12

我的failsafe用的debian stable,不加X的话300M,加X和gparted之类的图形话工具800M,绝对比fc7小几倍。

Avatar_small
basketball legends 说:
2020年4月14日 12:47

I do not know what to say really what you share very well and useful to the community, I feel that it makes our community much more developed, thanks

Avatar_small
ch 说:
2021年6月03日 06:36

Somebody Sometimes with visits your website consistently and prescribed it as far as I can tell to peruse also. The method for composing is magnificent furthermore the substance is first class. A debt of gratitude is in order for that knowledge you give the perusers!  click here

Avatar_small
ch 说:
2021年6月04日 16:48

A debt of gratitude is in order for setting aside an ideal opportunity to examine this, I feel unequivocally about it and adoration adapting more on this point. In the event that conceivable, as you pick up aptitude, would you psyche upgrading your online journal with additional data? It is to a great degree supportive for me.  rent a car čačak

Avatar_small
chalsea 说:
2021年6月06日 23:43

Thanks for a wonderful share. Your article has proved  your hard work and experience you have got in this field. Brilliant .i love it reading. click here

Avatar_small
chalsea 说:
2021年6月07日 05:01

All influencers are provided a Social media scheduling, posting and unified communications platform that helps have all the conversations in one place and connected to a influencer bot Influencer synonym

Avatar_small
amelia 说:
2021年6月10日 20:09

counting sensible remarks here...  read more

Avatar_small
amelia 说:
2021年6月16日 04:42

A debt of gratitude is in order for sharing us.  sex doll online

Avatar_small
amelia 说:
2021年6月16日 04:42

That is truly decent to listen. much obliged to you for the upgrade and good fortunes.  packaging manufacturers

Avatar_small
amelia 说:
2021年6月17日 23:38

A debt of gratitude is in order for the decent blog. It was extremely helpful for me. I'm cheerful I discovered this site. Much obliged to you for offering to us,I too dependably discover some new information from your post.  cytocare s line

Avatar_small
amelia 说:
2021年6月22日 19:27

this is truly decent to read..informative post is great to read..thanks a considerable measure!  PON EDFA

Avatar_small
amelia 说:
2021年6月22日 19:28

I have been looking at a couple of your stories and i can state really well done. I will bookmark your online journal  canni

Avatar_small
ch 说:
2021年7月05日 19:02

I welcomed your work exceptionally thanks  Outdoor chair

Avatar_small
ch 说:
2021年7月05日 19:02

Truly an extraordinary expansion. I have perused this brilliant post. A debt of gratitude is in order for sharing data about it. I truly like that. Much obliged so parcel for your assemble.  car sunshade

Avatar_small
ch 说:
2021年7月13日 03:57

I might want to say this online journal truly persuaded me to do it! Much appreciated, great post.  mobile mechanic porter heights

Avatar_small
ch 说:
2021年8月20日 18:30

Awesome post I might want to thank you for the endeavors you have made in composing this fascinating and learned article.  cbd

Avatar_small
ch 说:
2021年10月09日 01:31

A debt of gratitude is in order for your data, it was truly exceptionally helpfull..  my lowes life

Avatar_small
ch 说:
2021年10月23日 23:28

Incredible Information sharing .. I am exceptionally glad to peruse this article .. much obliged for giving us experience info.Fantastic pleasant. I value this post.  corsi di inglese online

Avatar_small
ch 说:
2021年10月25日 02:30

This sort of message continually rousing and I like to peruse quality substance, so glad to discover great spot to numerous here in the post, the written work is simply awesome, a debt of gratitude is in order for the post. Agendas

Avatar_small
ch 说:
2021年11月01日 18:42

A debt of gratitude is in order for the significant data and bits of knowledge you have so given here... custom motorcycle patches

Avatar_small
ch 说:
2021年11月15日 21:40

I haven't any word to welcome this post.....Really i am inspired from this post....the individual who make this post it was an awesome human..thanks for imparted this to us. custom motorcycle vest patches

Avatar_small
Things to do 说:
2021年11月16日 23:27

A new adventure is waiting for you to discover, let's find out the most visited places on Things to do post

Avatar_small
ch 说:
2021年12月15日 04:46

Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. CHARDON MARIE

Avatar_small
ch 说:
2022年1月18日 03:52

Much obliged for your post. I've been pondering written work an extremely similar post in the course of the last couple of weeks, I'll most likely keep it straightforward and connection to this rather if thats cool. Much obliged. computer software program

Avatar_small
ch 说:
2022年1月19日 03:25

I as of late ran over your online journal and have been perusing along. I thought I would leave my first remark. I don't realize what to say with the exception of that I have delighted in perusing. Pleasant website. I will continue going by this web journal all the time. https://www.5g999.co/baccarat

Avatar_small
ch 说:
2022年2月08日 19:58

I appreciate what you have done here. I like the part where you say you are doing this to give back yet I would expect by every one of the remarks this is working for you too. facial machines at home

Avatar_small
ch 说:
2022年2月10日 05:12

Awesome! It sounds great. A debt of gratitude is in order for sharing.. Tricouri

Avatar_small
ch 说:
2022年2月14日 03:27

Pleasant to be going by your website afresh, it has been months for me. Well this article ive been sat tight for accordingly long. i need this article to complete my task inside of the personnel, and it has same subject together with your article. Much appreciated, decent share. https://oaiwehfj.com

Avatar_small
ch 说:
2022年2月14日 03:27

On the off chance that you set out to make me think today; mission fulfilled! I truly like you're composing style and how you express your thoughts. Much obliged to you. https://betflix898.com

Avatar_small
ch 说:
2022年3月18日 05:53

In the event that more individuals that compose articles truly fretted about composing awesome substance like you, more perusers would be occupied with their compositions. Much thanks to you for thinking about your substance. Heavy-R

Avatar_small
amelia 说:
2022年4月14日 03:57

I read that Post and got it fine and enlightening. If you don't mind share more like that... https://www.5g999.co/baccarat

Avatar_small
슬롯머신사이트 说:
2022年5月02日 11:17

I am a new blogger and I have to say that I started to visit ShoutMeLoud after finding a very interesting post about some info that I was looking for. I have to admit that after receiving some of these great post on my email and reading through them, I have found on this blog a huge source of valuable information that helps me climb to a higher level every day.
Thanks for the tips. I now understand how commenting can create value and show other bloggers my blog at the same time.Thanks again.
I did like the honest approach in the article accepting that we are all trying to promote our blog or business, we want to promote but at the same time add value. I also think it highlights the difficulty some of us who are probably ‘old school’ about building our brand. I am also conscious that I could spend hours a day commenting on blogs when I should actually be concentrating on my business itself. Blogging is serious business and it’s not easy to get it right.
https://711casino.net

Avatar_small
샌즈카지노 说:
2022年5月02日 11:18

I think you did a good work with this article. You always share great info, You have rocked it. Blog Commenting is a very powerful solution to get a backlink from other high quality site and targeted traffic. I am getting lot of comments everyday Blog commenting is one of the best off page SEO techniques.
Yes that’s right. Commenting is the best way to get backlinks and increase your ranking on search engines. By the way, I would like to congratulate Harsh because ShoutMeLoud is again back on track with <10k Alexa ranking.
Hello Harsh. I am still confuse a little bit. What am I basically suppose to do? I read an article on a blog and I wrote a nice and detailed comment. In the end of the comment, I should leave a link to my blog. Right?
<A HREF="https://main7.net/%ec%83%8c%ec%a6%88%ec%b9%b4%ec%a7%80%eb%85%b8/" TARGET='_blank'>샌즈카지노</A>

Avatar_small
amelia 说:
2022年7月03日 20:57

A fascinating dialog is value remark. I feel that it is best to compose more on this matter, it may not be an unthinkable theme however more often than not people are insufficient to chat on such subjects. To the following. Salud. headquarters address

Avatar_small
amelia 说:
2022年7月05日 22:22

Great Article it its really informative and innovative keep us posted with new updates. menu with prices

Avatar_small
amelia 说:
2022年7月11日 01:48

I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You. https aka ms remoteconnect anmelden

Avatar_small
amelia 说:
2022年7月12日 01:52

This blog website is pretty cool! How was it made ! Santander retirement interest-only mortgages

Avatar_small
amelia 说:
2022年7月12日 01:52

This article gives the light in which we can watch the truth. This is exceptionally decent one and gives indepth data. A debt of gratitude is in order for this decent article. Concise Finance Mortgages

Avatar_small
amelia 说:
2022年7月12日 01:52

If it's not too much trouble proceed with this incredible work and I anticipate a greater amount of your wonderful blog entries. Life Insurance2000 specialist cases

Avatar_small
amelia 说:
2022年7月12日 01:52

I haven't any word to welcome this post.....Really i am inspired from this post....the individual who make this post it was an awesome human..thanks for imparted this to us. Nations Finance UK Putney 2022

Avatar_small
amelia 说:
2022年8月24日 03:42

Thanks for providing recent updates regarding the concern, I look forward to read more. kroger express hr

Avatar_small
ch 说:
2022年9月23日 04:19

This is a shrewd site. I would not joke about this. You have such a great amount of information about this issue, thus much energy. You additionally know how to make individuals rally behind it, clearly from the reactions. streameast live

Avatar_small
ch 说:
2022年9月24日 00:10

That is the incredible mentality, in any case is simply not make each sence at all proclaiming about that mather. Practically any strategy an abundance of thanks notwithstanding i had try to advance your own particular article into delicius all things considered it is obviously a quandary utilizing your data locales would you be able to please recheck the thought. much appreciated yet again. roadrunner login email

Avatar_small
ch 说:
2022年11月08日 22:13

Your web journal furnished us with significant data to work with. Each and every tips of your post are marvelous. You're the best to share. Continue blogging.. streameast live nfl

Avatar_small
ch 说:
2022年11月11日 04:51

Extraordinary Information sharing .. I am exceptionally cheerful to peruse this article .. a debt of gratitude is in order for giving us experience info.Fantastic pleasant. I welcome this post. usps employee login

Avatar_small
ch 说:
2022年11月12日 04:36

Great outlined data. I thank you about that. Doubtlessly it will be extremely helpful for my future tasks. Might want to see some different posts on the same subject! minecraft crossplay

Avatar_small
ch 说:
2022年11月19日 20:07

I've been surfing online over three hours today, yet I never discovered any fascinating article like yours. It's really sufficiently worth for me. As I would see it, if all website admins and bloggers made great substance as you did, the web will be significantly more helpful than any other time in recent memory. headquarterscomplaints.org

Avatar_small
ch 说:
2022年11月25日 00:57

Incredible! It sounds great. A debt of gratitude is in order for sharing.. behavior camps for teenagers

Avatar_small
amelia 说:
2023年1月04日 22:22

Awesome post, and extraordinary site. A debt of gratitude is in order for the data! hesgoal alternatives

Avatar_small
amelia 说:
2023年3月29日 21:38

This is really the sort of data I have been attempting to discover. Much thanks to you for composing this data. fixer upper houses for sale

Avatar_small
ch 说:
2023年8月09日 04:43

I truly thank you for the profitable data on this incredible subject and anticipate more extraordinary posts. Much appreciated for getting a charge out of this magnificence article with me. I am valuing it all that much! Anticipating another extraordinary article. Good fortunes to the creator! All the best! Ac repair las vegas

Avatar_small
ch 说:
2023年8月28日 04:42

Much thanks to you for setting aside an ideal opportunity to distribute this data extremely valuable! open

Avatar_small
ch 说:
2023年9月02日 17:38

Much thanks to you for setting aside an ideal opportunity to distribute this data extremely valuable! 먹튀검증업체순위

Avatar_small
ch 说:
2023年10月12日 05:48

This is a decent post. This post gives genuinely quality data. I'm unquestionably going to investigate it. Truly exceptionally helpful tips are given here. Much thanks to you to such an extent. Keep up the acts of kindness. https://www.xenicalshop.com/product


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter