LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   newbie - removed partition accidentally (https://www.linuxquestions.org/questions/debian-26/newbie-removed-partition-accidentally-72106/)

kristalchimera 07-12-2003 06:33 AM

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.

isme 07-12-2003 06:50 AM

reinstall. don't work as root if you don't have to. perhaps set an alias to use always rm -i (ask before deletion)

whansard 07-12-2003 08:38 AM

do you mean you deleted the device or what?

kristalchimera 07-12-2003 09:07 PM

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.

whansard 07-12-2003 09:47 PM

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)

kristalchimera 07-12-2003 11:14 PM

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.

kristalchimera 07-12-2003 11:36 PM

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 11:58 PM.