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.
When you say files what you mean? Like text docs and stuff? Or you mean programs that are installed? The problem you will have with programs is they have libs and what not that would have to be transfered, this could be a mess. Would be better just to apt-get or yum install whatever.
Assuming you're using a Gnome destop, there should be a desktop icon named 'Computer.' It works just like 'My Computer' on Windows. You should be able to navigate from there to see any file on any drive, and use copy and paste, drag 'n drop or whatever to move them around.
When you say you can't see the hard drive that is probably because it is not mounted. Every linux partition, in fact, every disk partition needs an entry in "/etc/fstab". That is the file that lists all your file systems, and various things about each one. An fstab entry works like this:
/dev/hdb /mnt/oldfedora ext3 defaults 0 0
"/dev/hdb" is the device file for the partition, in "/dev".
"/mnt/oldfedora" is an ordinary directory you make with "mkdir"
"ext3" is the file system type. This needs to be set for the type of file system, so it might need to be "ext2", "reiserfs" or something like that.
"defaults" gives read/write access, and typical options.
"0 0" tells linux not to check the drive on boot up. "0 1" tells linux to check the drive first on boot up. "0 2" tells it to check that drive second on bootup. You cannot have two drives with identical numbers in this spot unless they are "0 0"
Once you have an fstab line for your old fedora partition, you just go to the "/mnt" directory in any file browser, or a shell, mount the drive with "mount /mnt/oldfedora", and cd to it with "cd /mnt/oldfedora". Then, do "ls" and make sure the files are available. Do "cp -r *" /home/<user>". This will transfer all the files. But, if you only want to transfer "/home" from the old install do "cp -r /home/* /home/<user>.
why dont you just burn the files on a cd, or copy them onto a usb drive, switch into whatever system you want them on, and paste(unless this isn't a one-time thing, but a continuous one)
Disk /dev/hda: 41.1 GB, 41109061120 bytes
255 heads, 63 sectors/track, 4997 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4791 38483676 83 Linux
/dev/hda2 4792 4997 1654695 5 Extended
/dev/hda5 4792 4997 1654663+ 82 Linux swap / Solaris
v-rockro:~# fdisk -l /dev/hdb (Old Fedora i need the files here)
Disk /dev/hdb: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 9729 78043770 8e Linux LVM
v-rockro:~#
It looks like your data is installed on /dev/hdb2. The only problem is it is an LVM (logical volume manager?) I'm not sure if you can just mount that like normal. I've never worked with them, but there might be special tools required to retrieve data from a LVM.
v-rockro:~# mount /mnt/oldfedora
mount: /dev/hdb is not a valid block device
v-rockro:~# mount /mnt/oldfedora
mount: /dev/hdb1 is not a valid block device
v-rockro:~#
also when im using the webmin to mount:
Quote:
Failed to save mount : Remount failed :
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.