LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-21-2004, 07:45 AM   #1
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Rep: Reputation: 30
saving home partition on reinstallation


Well, I said that I'd try not to reinstall slackware rather than try to fix problems that arise, but after deleting my /boot partition accidentally when compiling a new kernel (system still boots up, however), I've caused problems I've not yet been able to solve. The main problem is that when I run lilo, it cannot find /boot/vmlinuz, although it must be finding it somewhere since it boots up. I've searched my filesystem (whereis, find) and cannot locate it. I've remade the /boot directory, but that hasn't solved the problem, so I guess I'll just reinstall.

Question: I made another partition last installation for my /home directory. When reinstalling, I assume that partition will not be overwritten unless I say so. Will there be an option on the installation menu to use the previous home directory? I just need to know how to have the installation use the old one and not try to install a new one on the /home partition or the new /root partition.

thanks
 
Old 04-21-2004, 09:51 AM   #2
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
Did you just remove the /boot partition from the partition table, or did you actually get rid of it? Have you tried mounting it in the /boot directory, with something like:

mount /dev/hda1 /boot
 
Old 04-21-2004, 10:53 AM   #3
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
I mistyped a command while compiling the kernel

intended: rm -rf /boot/System.map

typed: rm -rf /boot System.map


so the whole /boot directory was removed from /
 
Old 04-21-2004, 11:45 AM   #4
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 639
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
Removing /boot can be a problem

Quote:
Originally posted by timsch75
I mistyped a command while compiling the kernel

intended: rm -rf /boot/System.map

typed: rm -rf /boot System.map


so the whole /boot directory was removed from /
You might be able to resurrect the /boot directory and the contents by pulling them off the installation CD without performing a full installation.

First create /boot:

mkdir -p /boot

-p creates the directory if it doesn't exist, and does nothing if the dir already exists.

If you are able to boot in (either from CD, floppy, or some other means, once you're in,

mount /dev/cdrom /cdrom

or a valid mount point - perhaps /mnt, /mnt/cdrom, or whatever else is available.

Then use either tar or cp to copy the files in /boot to the disk.

For example:

(cd /cdrom/boot; tar cvf - . ) | (cd /boot; tar xvf -)
 
  


Reply



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
Saving info for reinstallation Hanj Linux - Newbie 6 05-05-2005 11:23 AM
smbfs mounted partition hangs while saving files mdkelly SUSE / openSUSE 0 12-22-2004 12:44 PM
keep "/home" after reinstallation? Boby Linux - Newbie 6 10-02-2004 06:08 PM
Whether I can saving my system, lost MBR and partition table jiawj Fedora 2 09-16-2004 02:04 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 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
Open Source Consulting | Domain Registration