Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
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.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
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.
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
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
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
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
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.