PDA

View Full Version : Installed Windows and LILO was erased



emmbec
11-09-2004, 03:22 AM
Hi, I'm sort of new to this Linux thing, I had my Linux system installed previously and working fine. I also had windows, but it had too much viruses and I decided to format my computer(the C drive FAT32). Linux is using EXT3. So i formatted the drive C, and reinstalled Windows, which went ok, until I reboot, I found out that LILO was not displayed there, so Windows started automatically. I backed up some files in my root folder in LINUX, and now I can't access them. I tryed loading a temporary OS from the Knoppix CD to just copy the files I needed to the windows partition, but I can't access them since they are on my desktop as a root account, and some message displays something like "NOT ENOUGH PERMISSIONS TO READ THAT FOLDER". I really need those files, please if you know a way I can get them back, or a way to put LILO again it would be really nice. Thank you.

ghaze
11-09-2004, 04:08 AM
To access your files on the linux drive.
From a console:
su <enter>
mount /mnt/hdax where x is the partition number of your linux root.
You are root now,do what you want.
To restore lilo
From a console:
su <enter>
mount -o dev /mnt/hdax
chroot /mnt/hdax
lilo -v
Ctl+D to exit the chroot

emmbec
11-09-2004, 11:16 PM
Thank you, that really helped me