Quote:
Originally posted by NomDeGuerre
yapp: I did what you said. When I got to the prompt I tried typing in what you wrote.
mount -t ext2 /dev/hdb/disk (I assumed that "hd.." wasn't what I should type) and some text appeared. I tried chroot /disk and got "No such file or directory". I tried lilo and got "No such file or directory".
|
hehe
indeed, the "hd.." shouldn't be taken literally. it's something like /dev/hd
a1, or /dev/hd
a3, or even /dev/hd
b1 it it's stored on the second disk.
a = master on primary ide
b = slave on primary ide
c = master on secondary ide
d = slave on secondary ide
and the number is the partition number.
Mount shouldn't return "with some message". A basic UNIX rule is, only tell something if you have something to say. commands line cp (copy) will never tell you they've copied the file. It's pointless. However, if the operation failed, they will give you an error message.
and the other commands only work the others worked too
Here is what the commands are supposed to do:
-
mount -t ext2 /dev/hd.. /disk
"mounts" the drive as a certain folder. the UNIX file hierarchy is one large tree where all devices are attached to. When I insert+mount a cd-rom drive, it's file system will be attached to /mnt/cdrom. The mount command I gave you attaches your root-partition to the /disk, and
you should put a space between /dev/hd.. and /disk The
-t ext2 specifies the file system type. I assumed it was ext2 (or ext3), since this is the default file system used by linux machines. perhaps you've used "reiserfs" as file system.
-
chroot /disk
runs a command with a different folder as file system root (in this case, a new shell)
In other words, /disk becomes your root, and when read /etc/lilo.conf, you're actually reading /disk/etc/lilo.conf. You need this command to make lilo work.
-
lilo
just typing lilo causes the lilo-bootloader to reinstall itself. Again, you're actually running /disk/sbin/lilo
-
exit
quits the shell, and you're returned to the original shell where you'd logged into. (and your root folder is also restored)
hope this helps.