fs mount problem FC4 to FC5
I had Fedora 4 on a 120 gig filesystem, split between two 60 gig drives, thats where all my data is. I'm now using a single 200 gig drive with fedora 5. Problem is, when I try to mount the fedora 4 filesystem under 5 I can't get it. Here is the output of all the regular commands to mount it.
[root@localhost zack]# mount -l /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hda1 on /boot type ext3 (rw) [/boot] tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) automount(pid2055) on /net type autofs (rw,fd=4,pgrp=2055,minproto=2,maxproto=4) [root@localhost zack]# cat /proc/partitions major minor #blocks name 3 0 58633344 hda 3 1 104391 hda1 3 2 58524795 hda2 3 64 58633344 hdb 3 65 58629186 hdb1 22 0 195360984 hdc 22 1 104391 hdc1 22 2 195254010 hdc2 253 0 193167360 dm-0 253 1 2031616 dm-1 253 2 115048448 dm-2 253 3 2031616 dm-3 [root@localhost zack]# mount -s -t /dev/hdc /mnt/backup Usage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labels So far the informational part. Next the mounting. The command is `mount [-t fstype] something somewhere'. Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount command Note that one does not really mount a device, one mounts a filesystem (of the given type) found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --move olddir newdir A device can be given by name, say /dev/hda1 or /dev/cdrom, or by label, using -L label or by uuid, using -U uuid . Other options: [-nfFrsvw] [-o options] [-p passwdfd]. For many more details, say man 8 mount . [root@localhost zack]# mount -t -s /dev/hdc /mnt/backup mount: unknown filesystem type '-s' [root@localhost zack]# mount -t ext2 /dev/hdc /mnt/backup mount: /dev/hdc already mounted or /mnt/backup busy On this system, it is HDB and HDC that contain the data, and they comprise DM-2 and I believe DM-3. I can't for the life if me figure out how to get this working and mounted before my old (2x60) drives crap out on me. Someone please help. |
Need more info. Output of ' /sbin/fdisk -l ' as root of course. Provide which partition is what and what you want it to be.
One thing you might be running into in the redhat/redhat clone system. In /etc/fstab you need to define the real /dev not the LABEL reference. Example| LABEL=/usr /usr ext3 ***** needs to like this. Your /dev may differ. /dev/hda3 /usr ext3 ****** You can use your /etc/mtab to find what each LABEL= /dev point is. Brian1 |
[root@localhost zack]# /sbin/fdisk -l
Disk /dev/hda: 60.0 GB, 60040544256 bytes 255 heads, 63 sectors/track, 7299 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 7299 58524795 8e Linux LVM Disk /dev/hdb: 60.0 GB, 60040544256 bytes 255 heads, 63 sectors/track, 7299 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 7299 58629186 8e Linux LVM Disk /dev/hdc: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 13 104391 83 Linux /dev/hdc2 14 24321 195254010 8e Linux LVM the two sixty gig hard drives are part of one 120 gig software raid volume that the fedora core 4 booted off of. |
Post contents of /etc/fstab and /etc/mtab from the fc4 bootup. I am assuming the fc4 install still works. Pretty much need to cut and paste the contents to the fc5 distro /etc/fstab.
Brian1 |
this is the /etc/fstab from the fedora core 4 install
# This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/VolGroup01/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 /dev/VolGroup01/LogVol01 swap swap defaults 0 0 |
I added the contents of of the fc4 /etc/fstab to the fstab of fc5, but I still cannot get it to work. here is the output of some of the commands I ran
[root@localhost zack]# mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/shm on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) automount(pid1951) on /net type autofs (rw,fd=4,pgrp=1951,minproto=2,maxproto=4) [root@localhost zack]# gedit /etc/fstab [root@localhost zack]# mount -t ext3fs /dev/hda2 /mnt/backup mount: unknown filesystem type 'ext3fs' [root@localhost zack]# mount -t ext3 /dev/hda2 /mnt/backup mount: /dev/hda2 already mounted or /mnt/backup busy [root@localhost zack]# mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/shm on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) automount(pid1951) on /net type autofs (rw,fd=4,pgrp=1951,minproto=2,maxproto=4) [root@localhost zack]# mount -t ext3 /dev/hda2 /mnt/backup mount: /dev/hda2 already mounted or /mnt/backup busy [root@localhost zack]# /sbin/fdisk -l Disk /dev/hda: 60.0 GB, 60040544256 bytes 255 heads, 63 sectors/track, 7299 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 7299 58524795 8e Linux LVM Disk /dev/hdb: 60.0 GB, 60040544256 bytes 255 heads, 63 sectors/track, 7299 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 7299 58629186 8e Linux LVM Disk /dev/hdc: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 13 104391 83 Linux /dev/hdc2 14 24321 195254010 8e Linux LVM |
Show the contents of the following.
FC4 /etc/fstab and /etc/mtab before changes and drive partition location FC5 /etc/fstab and /etc/mtab before changes and drive partition location modified /etc/fstab and /etc/mtab and drive partition location Brian1 |
Contents of FC5 Fstab before changes
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 Modified /etc/fstab for FC5 (What I've tried so far, is the same fc5 fstab with the fc4 fstab attached to the bottom, with carriage line of course. I've got to reboot to get the mtab, so I'll do that and post it Contents of FC5 /etc/mtab /dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 devpts /dev/pts devpts rw,gid=5,mode=620 0 0 /dev/hda1 /boot ext3 rw 0 0 tmpfs /dev/shm tmpfs rw 0 0 /dev/shm /dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0 automount(pid1939) /net autofs rw,fd=4,pgrp=1939,minproto=2,maxproto=4 0 0 this is the FC4 /etc/fstab info # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/VolGroup01/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 /dev/VolGroup01/LogVol01 swap swap defaults 0 0 |
here is the mtab from fedora core 4 on my system
/dev/mapper/VolGroup01-LogVol00 / ext3 rw 0 0 /dev/proc /proc proc rw 0 0 /dev/sys /sys sysfs rw 0 0 /dev/devpts /dev/pts devpts rw,gid=5,mode=620 0 0 /dev/hda1 /boot ext3 rw 0 0 /dev/shm /dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0 automount(pid2651) /misc autofs rw,fd=4,pgrp=2651,minproto=2,maxproto=4 0 0 automount(pid2690) /net autofs rw,fd=4,pgrp=2690,minproto=2,maxproto=4 0 0 |
Well I can't be of much help. I have never used LVM partition scheme due the issues I have seen over the years. Usually once it is trashed it is trashed where a regular partition can be recovered or rebuilt. A long process believe me. I thought maybe the mtab would make more since of it. I think you need to use the LVM tool in FC to remap LVMs. the app is called /usr/bin/system-config-lvm. There is a link in the Start Menu under Administration or on most called System Tools I think. Been modfing this setup and no longer is anything like a deafult install. Over 4 years old without a clean install. Just updates, custom source and srpms, modifing, piece of this piece of that, and a bit of hacking on the side.
Brian1 |
All times are GMT -5. The time now is 10:24 AM. |