Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-12-2003, 07:33 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: new south wales
Posts: 5
Rep:
|
newbie - removed partition accidentally
i 'accidentally' did rm hda2 and now i cant even boot the system 
it keeps keeps checking the file system on every reboot and saying hda2 not found which'd be rite cos i sorta deleted it somehow, any ideas on how i can get it to run again.
any help much appreciated.
|
|
|
07-12-2003, 07:50 AM
|
#2
|
LQ Newbie
Registered: Jul 2003
Posts: 12
Rep:
|
reinstall. don't work as root if you don't have to. perhaps set an alias to use always rm -i (ask before deletion)
|
|
|
07-12-2003, 09:38 AM
|
#3
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
do you mean you deleted the device or what?
|
|
|
07-12-2003, 10:07 PM
|
#4
|
LQ Newbie
Registered: Jul 2003
Location: new south wales
Posts: 5
Original Poster
Rep:
|
i deleted the device, yep.
cfdisk shows the two partitions still but apparently when checking file system during boot up hda2 cant be found - cos it ws deleted.
mite just have to reinstall i suppose, its just tht it was the dhcp, dns and the proxy, had the mail for outlook users, had apache, had mysql php etc etc..basically a pretty crucial machine which i've only just realized..thanks heaps though, i'll have to spend the sunday on it i guess.
|
|
|
07-12-2003, 10:47 PM
|
#5
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
you can boot with the cdrom rescue, then create the
device.
boot, mount the partition with linux, and go in the
device directory /dev
then /mnt/bin/mknod hda2 b 3 2
should create the device.
the full command just depends on where the partition
is mounted mknod ( make device node) b (block)
3 (first hard drive) 2(second partition)
|
|
|
07-13-2003, 12:14 AM
|
#6
|
LQ Newbie
Registered: Jul 2003
Location: new south wales
Posts: 5
Original Poster
Rep:
|
i didnt have a cd but somehow managed to get it to a stage where it mounts the root , i.e. hda2 and then runs fsck cos its got errors on it.
gets to the point where it says -
unattached inode 96768
/dev/hda2: unexpected inconsistency run fsck manually and reboot
i havent a clue how to attach an inode or anything..is it as simple as saying attach inode 96768, cant be..?
umm, its greek to me atm so i'm at a loss yet again, but thanks very much for the suggestions everyone.
|
|
|
07-13-2003, 12:36 AM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: new south wales
Posts: 5
Original Poster
Rep:
|
i got it going and its only abt 2.30 midday sunday..yippee thanks again guys. have a good one
cheers.
priyanka.
|
|
|
All times are GMT -5. The time now is 12:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|