[ Machiavelli... @ 02.03.2009. 23:45 ] @
Uradio sam ovo (sve je inace ja virtuelnoj masini sa snimljenim snapshot pre, znaci nije neka frka) Start Red Hat Linux. Rename your /etc/fstab configuration file. One possible name is /etc/bak.fstab. Make sure you have a boot disk that can serve as a rescue disk. If you know that your computer can boot directly from your Red Hat Linux installation CD, you're set. Otherwise, create a boot disk from the appropriate image file (boot.img, bootnet.img, or pcmcia.img). Use the reboot command to restart Linux. When you see your boot loader, probably GRUB, select your current version of Red Hat Linux. Watch the messages as they scroll across the screen. You'll probably see a message similar to: WARNING: couldn't open /etc/fstab: No such file or directory You'll probably be taken to the single-user mode maintenance login prompt. Enter your root password at this prompt. Find your currently configured partitions with the fdisk -l command. Make a note of each partition device that is formatted to a Linux filesystem. Check the labels associated with each Linux-formatted partition. For example, if one of the partitions is /dev/hda1, run the e2label /dev/hda1 command. Make a note of the label that you see, such as /boot or /. Try restoring your /etc/fstab file from your backup. It probably won't work. Reboot your computer with a Red Hat Linux installation CD or boot disk. Type linux rescue at the boot prompt. Follow the first basic steps toward installation. Direct the installation program toward the source for the Red Hat Linux installation files, as required. When you get to the Rescue menu, select Continue and press ENTER. Since Linux still can't find your /etc/fstab file, you'll see an error message that suggests that you don't have any Linux partitions. Select OK and press ENTER to continue. You are now in rescue mode. Run the df command. You probably won't see any of your normal filesystems mounted anywhere. Try running the man fstab command. You probably won't be able to see the man page for the /etc/fstab configuration file. Create the /mnt/sysimage directory as required with the mkdir command. Back in step 8, you found the partition device associated with your root directory. Mount it on the /mnt/sysimage directory. Restore the basic workings of your directory structure with the chroot /mnt/sysimage command Kad probam chroot /mnt/sysimage dobijam : chroot: cannot run command `/bin/sh`: No such file or directory |