LinuxQuestions.org
Visit Jeremy's Blog.
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 07-12-2003, 06:33 AM   #1
kristalchimera
LQ Newbie
 
Registered: Jul 2003
Location: new south wales
Posts: 5

Rep: Reputation: 0
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.
 
Old 07-12-2003, 06:50 AM   #2
isme
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Rep: Reputation: 0
reinstall. don't work as root if you don't have to. perhaps set an alias to use always rm -i (ask before deletion)
 
Old 07-12-2003, 08:38 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
do you mean you deleted the device or what?
 
Old 07-12-2003, 09:07 PM   #4
kristalchimera
LQ Newbie
 
Registered: Jul 2003
Location: new south wales
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 07-12-2003, 09:47 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
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)
 
Old 07-12-2003, 11:14 PM   #6
kristalchimera
LQ Newbie
 
Registered: Jul 2003
Location: new south wales
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 07-12-2003, 11:36 PM   #7
kristalchimera
LQ Newbie
 
Registered: Jul 2003
Location: new south wales
Posts: 5

Original Poster
Rep: Reputation: 0
i got it going and its only abt 2.30 midday sunday..yippee thanks again guys. have a good one

cheers.
priyanka.
 
  


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
accidentally removed /dev/cdrom verbose Linux - General 18 10-26-2005 03:44 PM
I accidentally removed the netstat command ! markraem Solaris / OpenSolaris 6 10-03-2005 10:18 AM
'Accidentally' removed XFree86-libs, how can I bring back the desktop? freddan Fedora 3 03-22-2004 08:56 AM
I accidentally removed lilo from my bootsector. Grafbak Linux - Newbie 2 06-20-2003 03:22 PM
Accidentally supermounted hd partition hayduke Linux - Newbie 1 02-25-2003 06:48 PM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
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