Jeremy Huntwork <[EMAIL PROTECTED]> writes: >> Note that I understand the error. My question is how could it be >> different from hda1 and 2 when the fs has been made by the same FC4 fs >> system. > > Hrm. Indeed. And I'm not sure about that one. I know there's been > reports before now concerning issues with FC4 and ext3, but I can't > remember the details. > > It might be a silly question, but are the contents of that partition > important? If not you could always reformat it with another file > system using the tools on the livecd. The livecd supports ext2, ext3, > reiserfs, reiser4fs, and xfs.
I finally manage to solve my problem. The answer to my question is that for FC4 (and apparently before that) the "normal file system" is not used anymore. There is one partition hda1 that use ext3 for boot but the rest is under the control of LVM. Here is how I managed to mount FC4 from LiveCD: Problem: You are using FC4(could work for any system using LVM). You decide to build a LFS system using the LiveCD and would like to acces your data of your FC4 while doing it. Say FC4 is on hda1 and hda2, from inside the LiveCD you try: #mount /dev/hda1 /FC4-1/ and it works nicely. Then: #mount /dev/hda2 /FC4-2 and it fails giving an error message. (Note1: it is NOT about building LFS using FC4 as a host Note2: I found out about LVM because of my problem, and know very little about it, so you really should read the How-to) Checking the source of the problem: Your FC4 system may be using LVM to check use fdisk: #/sbin/fdisk -l /dev/hda Disk /dev/hda: 33.8 GB, 33820286976 bytes 255 heads, 63 sectors/track, 4111 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 4111 32917185 8e Linux LVM You can see that hda2 is using Linux LVM, and so cannot be mounted by a simple mount command. Solution: 1 read the LVM How-to.(use google to find it) 2 start the liveCD and get the internet connection. >From inside LiveCD: 3 Download and make device-mapper #tar xvzf device-mapper-stable-.tgz #cd device-mapper #./configure #make #make install #cd .. 4 Download and make LVM2: #tar xvzf LVM2.xxx.tgz #cd LVM2.xxx #./configure #make #make install 5 add the device-mapper module to the kernel #modprobe dm-mod 6check for your LVM #vgscan You should see the volume group you want to mount. In my case: Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2 7activate the group volume #vgscan -a y VolGroup00 8 check what logicalVolume you have in it: #ls /dev/VolGroup00/ LogVol00 LogVol01 9 create and mount the directory #make /FC4-1 #mount /dev/VolGroup00/LogVo100 /FC4-1 #make /FC4-2 #mount /dev/VolGroup00/LogVo101 /FC4-2 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
