LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-30-2005, 11:22 AM   #1
jeffbarish
LQ Newbie
 
Registered: Oct 2004
Distribution: Ubuntu
Posts: 27

Rep: Reputation: 15
Trying to create bootable backup partition


I configured my new HDD with an extra root partition. Partition 2 is for my current OS (Libranet 3) (along with partition 1 for boot and partition 6 for home) and partition 7 is for my old OS (Libranet 2.8). My new OS boots fine. I can mount partition 7 and see all the files from my old OS. However, when I try to boot the old OS, I get a complaint from reiserfsck and I am forced to single-user mode. The complaint reads:

reiserfs_open: neither new nor old reiserfs format found on /dev/hdc8
reiserfsck: Cannot not [sic] open filesystem on "/dev/hdc8"
Warning... fsck.reiserfs for device /dev/hdc8 exited with signal 6.
fsck failed. Please repair manually and reboot. Please note that the root filesystem is currently mounted readonly. To remount it read-write:
#mount -n -o remount,rw /

I can run reiserfsck from the new OS. /dev/hdc8 is fine. I can remount within single-user mode as instructed and see all my files from the old OS.

To create the partition for the old OS, I formatted the partition from the old OS and then copied (cp -ax /) everything to the partition.

I think that I am close to having this working, but at this point I am stuck.
 
Old 09-30-2005, 12:00 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,347

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
I suspect an incompatibility between the version of reiserfs in Libranet 2.8 and the version of reiserfs in Libranet 3.0. When you ran Libranet 3.0's reiserfsck it may have made changes to the old file system to where it is a hybrid between the two versions of reiserfs. That leads to the message:

"reiserfs_open: neither new nor old reiserfs format found on /dev/hdc8
reiserfsck: Cannot not [sic] open filesystem on "/dev/hdc8""

You could check out my theory by redoing this work:

"To create the partition for the old OS, I formatted the partition from the old OS and then copied (cp -ax /) everything to the partition."

and then never use the Libranet 3 version of reiserfsck against the old system.

---------------------------
Steve Stites
 
Old 09-30-2005, 12:07 PM   #3
jeffbarish
LQ Newbie
 
Registered: Oct 2004
Distribution: Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
I tried booting the old OS before I ran reiserfsck. It was only after that attempt failed that I ran reiserfsck from the new OS to be sure that nothing was mangled on the partition.
 
Old 10-03-2005, 09:35 PM   #4
jeffbarish
LQ Newbie
 
Registered: Oct 2004
Distribution: Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Is anyone familiar with dd? I'm wondering whether I should have copied the old root to the new partition using dd rather than cp -ax /. Would the command be

dd if=/dev/hdc8 of=/dev/hdd5

I don't see how the cp command could corrupt the fs though.
 
Old 10-10-2005, 02:05 PM   #5
jeffbarish
LQ Newbie
 
Registered: Oct 2004
Distribution: Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
For the record, the solution was very simple. (Aren't they all, once you know what you're doing?) When I copied the old OS from the old HDD to the new one, it moved from partition 8 to partition 5. Accordingly, the entries in fstab needed to change.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create : bootable cd. mola Linux - General 1 03-28-2005 11:25 AM
bootable cd create... navaladi Mandriva 1 01-06-2005 04:05 AM
Backup a bootable CD to another CD, thats bootable fr0zen Linux - Software 9 11-04-2004 08:45 AM
backup a kernel to a bootable CD? mipia Slackware 3 10-26-2004 01:17 PM
Create bootable VFAT partition from Linux ugenn Linux - Software 2 04-29-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration