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. |
reinstall. don't work as root if you don't have to. perhaps set an alias to use always rm -i (ask before deletion)
|
do you mean you deleted the device or what?
|
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. |
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) |
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. |
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. |