General :: How To Recover / Root Filesystem From Backup?
May 4, 2010
Suppose I have a good backup of the / root filesystem. How do I recover the / root area? Suppose I have modified the root filesystem, perhaps I do an update some of the packages and regret it, and I want to get back to the system at the time of the backup. How do most linux people recover the root area of a system from a backup?
1) I wondered if I might put a System Rescue CD in and boot off it?
2) And then NFS mount the directory containing the backup? -In my case, I have made a good backup using rsync, to a directory elsewhere on the network.
3) And then, still booted off the System Rescue CD, mount the partition that contains the / root area in question?
4) Would I then clear or empty or delete the contents from the / root partition?
5) And then copy across all the files from the backup into the / root partition?
I ask these questions because of the (very nice) way linux OS is built entirely from packages... Am I being too complicated? (By comparison, I can see it is easy to recover user data.)If, instead, I simply recovered the backup straight onto the updated root filesystem, I wonder what it would look like if I then tried to verify it with "rpm -Va", for example? Surely, all the packages would fail the verification, because it would think it has a later version of each package from the update, but the actual files would have been overwritten by the earlier version from the backup?
View 14 Replies
ADVERTISEMENT
Aug 5, 2011
On my drive I had 2 partitions for an Ubuntu 9.04 (swap, /) and one partition for Windows. I figured out that I should upgrade my Ubuntu, so I deleted the "/" partition and in its place created 2 new partitions (/, /home) .
After installing the latest Ubuntu 11.04, I realised that although I had backuped everything I needed in a 2nd disk and I could access those folders and their data from my Ubuntu 9.04, both my Windows and the 11.04 can locate neither the folders nor the data now. I have no idea why this happened (perhaps some issue with the mounting?) I have tried the trial version of Stellar Phoenix linux data recovery tool, but it cannot locate the old partitions.
View 2 Replies
View Related
Dec 21, 2010
My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:
# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs
[code]...
View 3 Replies
View Related
Aug 6, 2011
I need to make a scheduled backup of repository of subversion in ubuntu. E.g., backup the repository at 13.00 pm every Monday. May I need to write some hook scripts to do that? And I also have to recover the backup of repository. If possible, I want to backup the trunk of repository
my repository is project1
/project1
/trunk
/tags
/branches
View 6 Replies
View Related
Jul 13, 2011
I want to backup a lot of files on an external 2TB USB and sit it in a cupboard for the next 10 years. Looking for the most reliable filesystem for this. I don't care about speed, journalling, UNIX permissions or any of that stuff. All I care about is in 10 years time when the hard disk plates are rusted and unreadable and the drive hardly functions, what filesystem will be the easiest to recover my data from. Not ruling out FAT32 either for its simplicity but maybe there's a better filesystem for the job?
View 12 Replies
View Related
May 16, 2010
I installed Ubuntu 10.04 on a usb stick in persistent install mode. So I could boot the laptop or my desktop computer with the stick, at boot time. Once I needed the 8GB stick for another purposes so I thought about coyping it to my desktop doing from mac os x: dd if=/dev/disks3s of=/Users/jack/Desktop/usb_copy
Now I am trying to do the opposite, after having used the stick, which was formatted to NTFS, just doing
dd if=/Users/jack/Desktop/usb_copy of=/dev/disks3s
but although I can see that almost of the files are there, I can not boot again. IT is also strange the the file permissions are kind of strange, something like _user
View 1 Replies
View Related
Feb 16, 2010
Original disk:
XP NTFS primary
Linux / ext4 logical
Linux /home ext4 logical
Win 7 NTFS logical
NTFS data logical
swap space
NTFS recovery partition
I tried to install linux, as there was a problem with XP overwriting grub, I chose write grub to /dev/sda8 (which is where the linux install was appearing earlier).
I guess this borked the filesystem somehow. Now the NTFS data partition and the swap space are appearing as one free space.
Well actually before that some linux live CDs (including gparted were seeing the entire drive as unpartitioned). I had to go into XP and delete the /ext4 partitions.
Is there any way for me to recover the NTFS data partition ?
View 4 Replies
View Related
Mar 27, 2010
When I try to boot to OpenSUSE I get the following error during boot-up: unknown filesystem type 'reiserfs' could not mount root filesystem - exiting to /bin/sh$
This only started happening quite recently - before this I could boot to Linux quite happily.
View 6 Replies
View Related
Aug 18, 2010
I'm trying do some tests about recover root's password but I'm having some problems.My OS used to do the test is fedora 12.I'm trying to boot with ubuntu 10.04 and trying to recover the rot's password.When I edit /etc/shadown and erase the password field, the system can't logging anymore, all the other users cann't logging anymore.
View 3 Replies
View Related
Apr 17, 2010
i am using ubuntu 9.10...i want to know if there is any way to get root password...
View 4 Replies
View Related
Feb 27, 2010
I have accidentally ended up in deleting my root directory while I blindly fired command while watching movie.
I fired following command
#rm -rf ~/<SPACE>*.out
instead of this command
#rm -rf ~/*.out
Things already done:
1) Created /root directory relogged to get some of basic settings of gnome and Desktop.
2) Things went well now when I login my desktop ,gnome environment and other things looks to be working well only prompt on my terminal has changed. I can fix it any ways.
Things I want to ask:
1) I haven't studied much about contents of /root directory to best of my knowledge is it like other user's home directory with some basic configuration files for mostly required applications. SO my question is have I lost any thing important system file or something?
2) If I have lost any important configuration or system data how can I recover it without reinstalling whole system? (My opinion about this is, It is quite possible but to do so, as far as I know capabilities of linux. But I still want comments from experts before I try any things on it because I don't want to backup my whole HDD and reinstall the whole stuff again for me and also my sister's stuff in MS.)
View 4 Replies
View Related
May 27, 2011
I am using GRUB bootloader. I can boot into windows fine. But booting into linux gives me the error "kernel panic: unable to mount root fs on unknown block(0,0)I got LILO to load linux fine but GRUB always gives me this error regardless of the linux OS for this particular computer.
View 11 Replies
View Related
Jun 7, 2011
I boot up a Linux appliance entirely in RAM, ie. the image has a Linux kernel and an attached ext2 root filesystem.
Now that it's working, I would like to copy the root filesystem from RAM to a NAND flash memory.
Can I just mount the NAND, run "cp -a /* /mnt/nand", reboot with the kernel command line "root=/dev/mtdblock2 rw", and expect Linux to be happy... or is it more involved than this?
View 9 Replies
View Related
Feb 1, 2011
When i installed ubuntu. I made a seperate partition so that i could copy an ISO image onto it of an up-to-date version of ubuntu. I wanted to then boot the ISO up so i could install the new version that way. I've already tried doing it through the update manager but it'll download, almost be done with installing and it freezes on me. so i figured this would be easier. However i do not know how to gain access to the other partition to copy the ISO image. Please help.
View 1 Replies
View Related
Nov 13, 2010
Yesterday I ran an extremely dangerous command by mistake:
Acctually I intended to dump the iso to a usb disk. Soon I found the "of" is incorrect, but 1 second has passed...
Since everything happens in 1 second, only MBR and /dev/sda1 has been affected. The filesystem of sda1 is ext3.
So, can I get any luck trying to recover data from the broken partition?
View 10 Replies
View Related
Nov 30, 2010
i got stuck while booting my LINUX box.it looks likes filesystem(EXT3) currept.recover the filesystem or the altrnative to it. I have IMP data in my machine
View 1 Replies
View Related
May 5, 2011
I have just tried to update my kernel from 2.6.24.5 to 2.6.39-rc3 on a Slackware 12.1 distribution. I have successfully updated the kernel before, but it was from a newer distribution and newer kernel(Slackware 13.1 and 2.6.33.4). After I updated and rebooted, I got the following error:
Code:
List of all partitions:
0300 4194302 hda driver: ide-cdrom
0800 312571224 sda driver: sd
0801 244197560 sda1 00000000-0000-0000-0000-000000000sda1
0802 68372640 sda2 00000000-0000-0000-0000-000000000sda2
No filesystem could mount root, tried: romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (8,1)
Pid: 1, comm: swapper Not tainted 2.6.39-rc3-smp #1 .....
View 3 Replies
View Related
Oct 17, 2010
so I just installed Ubuntu 10.10 a couple of days ago and used my whole hard drive.Thing is, I decided that although I loved Ubuntu, I stll want to have dual-boot for some cases.. But now that the disks filesystem is not NTFS, Windows cannot regognise the disk as installable and cannot convert the filesystem. Gosh, Windows is a piece of junk, but I still need them for some occasions.
View 1 Replies
View Related
Feb 22, 2011
i would like to know if its safe to backup root partition with cpio. I need to do an online backup of running system so i can't unmount partition or so to dump it or dd it. Is it safe? is there any chance the backup would be inconsistent or so? What is the worst what could happend? will the files used by a running system backup correctly?
Running opensuse 11.3 and some basic daemons like ftp,www server...
BTW i did try search with tag "cpio" but there was not such a topic.
View 4 Replies
View Related
Apr 12, 2011
I'm trying to boot Emdebian Grip 1.0 built on Compact Flash on a mini PC with grub2 as bootloader. Unfortunately , the booting is unsuccessful and I got stuck into an error message :Code:No filesystem could mount root , tried : minix msdos iso9660kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (22,1)It seems grub2 hasn't tried to mount ext2 as the filesystem and my Compact flash is formatted as ext2. Here is the menuentry of the grub.cfg :
Code:
menuentry "Debian GNU/Linux, linux 2.66.2.9-custom" {
insmod ext2
[code]...
View 4 Replies
View Related
Sep 1, 2010
120 GB HDD. All ext4. Wanted to partition it into 60 gig ntfs, and 60 gig ext4 for dual install. Booted up the LiveCD. Clicked on the partition to modify. Selected /windows as mount point. Change took place. Now, my disk shows up as 57 GB FAT (almost all of which is free) and 60 GB of unallocated space. Any way to recover it? I'm sue the data is in the 60 GB of unallocated space. While I have a back up of some of the data, I'm going to be losing quite a bit if I can't recover this...
View 1 Replies
View Related
Dec 1, 2010
Recently I was forced to hard reset my computer a couple of times (mostly out of frustration) and due to my idiocy i was confronted with the standard Kernel Panic message at bootup. I tried running an fsck from live cd which corrected a bunch of errors but to no avail (as far as getting rid of the Kernel Panic msg). I then tried to mount the filesystem by accessing it from live cd (and later even installed ubuntu on a small leftover partition to get rid of the annoying live cd lag) but it says that I don't have access to my home or root folder. Mounting from command line gave the same issue.
So now to the question. Is there a general procedure to access data in my corrupt filesystem if it is encrypted?
View 7 Replies
View Related
May 3, 2010
I am running 8.04 Ubuntu server. Unfortunately a couple of days ago I thought I should upgrade as desktop upgrades usually go without a hitch and are very easy. I forgot that my server is live with a few websites and a radius server set up just the way I need (took painfully long time to figure out). Needless to say the upgrade caused many config file changes and many things stopped working. I panicked since this is a live server so I went straight to the backups to recover my system. I booted from a live CD and copied the entire system overtop the new one.
Everything that needed to work works, however now I get this message in my mail about every 10-20mins:
Subject: Cron <root@IMwebserver> [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
xargs: xargs.c:443: main: Assertion `bc_ctl.arg_max <= (131072-204' failed.
Aborted
Googling it, I found that its a problem with findutils. I tried to reinstall findutils with no luck.
My backup script looks like so:
@daily /usr/bin/rdiff-backup --exclude /dev --exclude /tmp --exclude /var/run/cups/cups.sock --exclude /var/log --exclude /mnt --exclude /media --exclude /proc --exclude /sys --exclude /var/cache/apt / /media/removable/BACKUP/rdiff/
How can I fix my system so the above e-mail no longer occurs?
View 1 Replies
View Related
Dec 6, 2009
I'm trying to recover a compressed mysql backup. As the backup is extremely large, I dont wanna decompress it before importing. How can I make a mysql variable take effect before I load this compressed file into the database.
View 7 Replies
View Related
Oct 12, 2010
Since I installed MS2 I messed up grub. Finally I got 11.3 back to its old glory.
What would be the best procedure to create a backup image with all settings and permissions ...just in case ?
View 5 Replies
View Related
Aug 31, 2010
I rsync the filesystem where I have my server to another HD. Now, when I try to boot I'm dropped at initramfs with an error. It looks like it's still looking for the root in the previous HD even tough I already changed /etc/fstab. It says it can't find the device with a certain UUID, and that UUID is from the previous HD.
Here's the full details: I'm running Ubuntu server 10.04 It has 2 hard drives. Every night it backups one to another with the command
Code:
rsync --archive --one-file-system --hard-links --numeric-ids --delete
I moved the HD where I have the backup to another machine and rsynced them with the same command I then changed /etc/fstab in the new machine. I also installed Grub on it When I boot in the new machine I get a error about not finding root. It says that a device is not present. It says the UUID of the device is looking for, and it's the UUID of the first HD.
I thought I only had to change /et/fstab but seems I am wrong.
View 5 Replies
View Related
May 26, 2010
I'm gonna buy a 1.5 TB HDD to put there backups, videos, and stuff like that, and i was wondering what Filesystem should i put there considering that it will be used for backups (mostly) and I must count with that drive in case of something going wrong.
View 9 Replies
View Related
Jun 11, 2010
in preparation for the update to Slackware64 13.1 I did a complete backup of my system with dd.
I used the Slackware 13.0 (not 64 bit) DVD to boot and executed the command:
# dd if=/dev/sda of=/dev/sdb
The command finished without any errors as expected. First I tried to boot the destination hard disk to check if the backup was successful and I can start with updating the source disk to 13.1. But at boot time I got the message that the last file system check is 197 day ago, the file system check started automatically and found errors which it could not correct. At this point I thought it was maybe a copy or a hard disk error and tried to boot the source disk. But the behaviour was exactly the same on the source disk. With the source disk I followed then the recommendation, logged in with root password and executed the recommended command which was something like e2fsck -v -h /dev/sda1. Then the system did a file system check and scrolled a lot of numbers over the screen. After a while it reported that it's ready and the system needs a restart.
I switched off and on again. Then the system bootet as usual, and seems to run okay at the moment. But now I'm unsure if really everything is okay.
What I'm confused of is, why the system reported that the last file system check was 197 days ago and why this was just after the dd backup. Shouldn't the automatic file system check at boot time run more often as every 197 days or mounts? I didn't change any default settings (as far as I know). The file system of the root partition is ext4 and my computer normally is switched on and off once every day.
My question now is, if this behaviour can have something to do with the dd backup.
Is my system after the file system check okay again, or should I expect further problems?
View 12 Replies
View Related
Feb 25, 2011
I am using software RAID in Ubuntu Server Edition 9.10 to mirror(RAID1) two 1TB harddrives. These are used for data storage and websites.I also have a 80GB harddrive for the operatigsystem. This drive has no backup or RAID at all. Should this drive crash and the system therefore to become no longer bootable, will I be able to recover the data the 1TB drives or should I backup the 80GB drive as well?
View 3 Replies
View Related
May 19, 2009
Using tar is it possible to backup different types of file system e.g.ext3, ufs, or any other file system. I know using dump it is not possible because it is reading through raw device. Then what about tar? Where I get more info about this? Means suppose I want to backup files from different file systems using tar then is it possible?
View 1 Replies
View Related