On 04/04/06, <b class="gmail_sendername">Julian Hall</b> <<a href="mailto:lists@kaotic.co.uk">lists@kaotic.co.uk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Neil Greenwood wrote:<br><br>> Julian,<br>><br>> The way I used the live CD is as follows (since I didn't make it<br>> clear earlier):<br>><br>> 1. Boot the live CD
<br>> 2. Mount the broken root partition into any directory of the running<br>> live CD: in my case, I mounted it in /mnt<br><br>Problem straight away here.  Knoppix mounted all the partitions except<br>the broken one.  Ubuntu (
5.10 Live) didn't mount any so I had to<br>create the root user login just to be able to do it manually.  I<br>mounted hda1 using the commands:<br><br>mkdir /mnt/test$a<br>mount /dev/hda1 /mnt/test1<br><br>That worked.  However trying to mount /dev/hda2 as /mnt/test2
<br>complains about not knowing the fstype.  Why would this one be<br>complaining when the first didn't?  Incidentally hda1 is the Windows<br>C: drive.<br><br></blockquote></div><br>Julian,<br><br>If you're trying to fix the Linux installation, I wouldn't mount the Windows partitions, just in case :-)
<br><br>Is /dev/hda2 the root partition that's broken? Can you remember what file system is on there?<br><br>You might be able to find out using fdisk with the -l (lower-case L) option, on the whole disk (not the hda2 partition), like so:
<br>  fdisk -l /dev/hda<br>This should list all the partitions on the disc, together with the partition table's idea of what file system is on there. This isn't 100% reliable, since both ext2 and ext3 have the same identifier (0x82, 
i.e. 130 in base-10, but you enter it in hex), and I had a case recently where I managed to format a FAT32 (0xB) partition with ext2...<br><br>When you know what partition type it is, use the -t option on the mount command, 
e.g.:<br>  mount /dev/hda2 -t ext2 /mnt/test2<br>Obviously, this is just an example and you need to change the values appropriately. cat /proc/filesystems will tell you what fstypes the current kernel knows about - this list can change when you load extra filesystem modules.
<br><br><br>If you can't find out what file system type it is, you could try a couple of likely fstype values after the -t option, and use "-o ro" to mount read-only. *WARNING* This may corrupt the filesystem, but I don't think it's very likely - I haven't tested it though. But at this point, your partition might be hosed anyway...
<br><br><br>You do have a backup, don't you ;-)<br><br>Cheers,<br>Neil.<br>