LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-22-2004, 05:09 PM   #1
acidstars
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
reinstall. can i back up the current install and restore?


Hi. Thanks in advance for any help. My apologies for asking stupid questions and tending to type too much.

I currently dualboot slack 9.1 and winxp. It's looking like I have to format and tackle re-installs, which is causing a lot of stress. I'm almost certain that I won't be able to get my hardware working and the OS secured when I redo this box!#! A computer/OS-savvy friend handled the install, and it took him three days to get things good. I don't have a fragment of the knowledge that he did, so, uhm, it's looking bad for me. I'm starting to love Linux and would hate to part with it, but at the same time, don't have the luxury of time to spend going back to the beginning and fighting my way towards the place that I am now. Note: I have installed slack on other PCs with sucess, but this machine is a problem child.

There's nothing wrong with the install itself and I'm DESPERATE to keep it, so I was wondering... could I create a new partition on my second HD, copy the contents of my slack partition there and copy it all back when done with the format/reinstall? If so, would I have a functioning OS with my settings as they were, and: what tool should be used to create partitions on the 2nd drive?

The reason that I have to format is due to the first disc's partition table being screwed. I reinstalled XP yesterday, and for some reason, its partition is overlapping slack's :/
 
Old 03-22-2004, 08:03 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,592

Rep: Reputation: 188Reputation: 188
"could I create a new partition on my second HD, copy the contents of my slack partition there and copy it all back when done with the format/reinstall? If so, would I have a functioning OS with my settings as they were, and: what tool should be used to create partitions on the 2nd drive?"

I suggest that you copy your Slackware partition to the second hard drive and make the new partition a functional Slackware system. Configure the second hard drive partition table using fdisk. Create a swap and a / partition. Then create a file system in the / partition:
mkfs.ext2 /dev/hdb2

Then mount your new system and copy your Slackware system:
mkdir /newslack
mount -t ext2 /dev/hdb2 /newslack
Copy your Slackware system to your new partition by using the cp -pR command:
cp -pR / /newslack
The -p option is absolutely necessary to preserve ownership and permissions during the copy. Edit the bootloader config file (lilo.conf or grub.conf) and /etc/fstab on your new Slackware system to reflect the new partition arrangement. Then create a boot floppy that will boot into your new Slackware system. Test out your second Slackware system. You will then have your current Slackware system running on your second drive and bootable no matter what you do to your first hard drive.

---------------------------------------------------------------------------------------------------------------------
If you want to stick with your original plan then follow the above instructions but do not change lilo.conf, grub.conf, or /etc/fstab. Also don't bother with the boot floppy.
After you get your first disk straightened out then you can copy Slackware back with by booting a rescue CD such as Knoppix, mounting the two partitions and using cp -pR to copy Slackware.

The advantage of the first plan is that you have a chance to test the copied Slackware before you destroy the old Slackware. With the second plan you copy Slackware twice and then hope it works.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 03-22-2004 at 08:13 PM.
 
Old 03-23-2004, 10:36 AM   #3
acidstars
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the reponse. tried carrying it out, but ran into a whole new problem. maybe i'm mistyping commands or doing something dumb, but the current slack install refuses to boot or mount, so i can't copy it to /hdb

booting with the slack CD and typing "mount -t ext2 /dev/hda2 /mnt/slack" results in "wrong fs type, bad option, bad superblock on /dev/hda2 or too many mounted file systems".

boting with the CD and trying to boot the actual install results in:
fat: bogus logical sector
umsdos: msdos_read_super failed, mount aborted.
read_superblock_: can't find a reiserfs file system on (dev 03:02, block 64, size 1024)

of course it can't find a reiserfs -- i've never had one, heh. fdisk still sees the current slack partition, and i've made no changes to it, so i dont know what is going on. oh well, back to playing with it while i pray this isn't hopeless.
 
Old 03-23-2004, 11:10 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,592

Rep: Reputation: 188Reputation: 188
"booting with the slack CD and typing "mount -t ext2 /dev/hda2 /mnt/slack" results in "wrong fs type, bad option, bad superblock on /dev/hda2 or too many mounted file systems"."

Try booting your Slackware CD and running fsck. It is important to tell fsck the correct filesystem type. So assumming that the filesystem really is ext2 then you should do:

fsck -t ext2 /dev/hda2

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 03-23-2004, 12:43 PM   #5
acidstars
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
couldn't find ext superblock, trying backup blocks.
e2fsck: bad magic number in super-block while trying to open /dev/hda2

superblock could not be read or does not describe a correct ext filesystem. if the device is valid and it really contains an ext2 filesystem, then the superblock is corrupt and you might try running e2fsck with an alternate superblock.

tried two alternates, no luck. wondering if the overlapping partition issue finally hit me where it hurt. oh well, have a fresh install of slack on /dev/hdb and am trying to set it up, but would still like to save the old, if possible. however, at this point, it's seeming a bit futile.
 
Old 03-23-2004, 01:56 PM   #6
acidstars
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
odd. got the fresh install in and running in about 40 mins. got my hardware recognized and functioning, and i'm online under slackware now. amazing what a girl can do with a bottle of mt. dew and a pack of smokes

on that note, i'm giving up on the previous install and will just format that drive. while there are things i'd like to salvage, starting fresh pushes me to learn... and i guess that's for the best.

thanks for the help.
 
  


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
restore or reinstall? blizunt7 Fedora 3 09-27-2005 10:10 AM
restore or reinstall the start-menu?!? mindkill Linux - Software 1 09-12-2005 07:24 AM
Howto restore lvm2 after OS reinstall? HeLL Linux - Software 1 09-04-2004 10:34 AM
reinstall or restore kde dave37 Red Hat 2 05-28-2004 10:27 AM
RH9 reinstall - dump/restore - DNS info not seen gandalf2041 Red Hat 0 02-08-2004 05:16 PM


All times are GMT -5. The time now is 08:10 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration