LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-10-2006, 06:35 AM   #1
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Rep: Reputation: 15
how to transfer files from fedora to debian


hi there its me again. i just want to know how can i transfer my old files from fedora core 4 to debian?

this is my setting

Primary HD ---> Debian Partition
Decondary HD ---> Fedora Core 4 Partition

actually i try the same Fedora but my new fedora cant read the old files from the other hard drive.

is this posible or imposible?
 
Old 03-10-2006, 06:38 AM   #2
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
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.
 
Old 03-10-2006, 07:02 AM   #3
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
my webfiles and mysql files. and other downloaded files....
 
Old 03-10-2006, 10:40 AM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
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.
 
Old 03-10-2006, 11:07 AM   #5
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
the only showing in computer is (Cd Romm, File System, Networking)

i cant see the other hard disk.
 
Old 03-10-2006, 12:15 PM   #6
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,828

Rep: Reputation: 256Reputation: 256Reputation: 256
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>.
 
Old 03-10-2006, 12:28 PM   #7
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
hi! thank you for help i think your guide maybe work, but i have problem while entering the command.

i also create /mnt/oldfedora folder for mounting.

v-rockro:~# /dev/hdb /mnt/oldfedora ext3 defaults 0 0
bash: /dev/hdb: Permission denied
v-rockro:~#

EDIT: ok... sorry im noob

Last edited by an2ny_18; 03-10-2006 at 04:06 PM.
 
Old 03-10-2006, 03:36 PM   #8
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
You have to write that line into your fstab file. You can find that file in the directory /etc.
Just use your favourite text editor and edit the file.
 
Old 03-10-2006, 03:47 PM   #9
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Rep: Reputation: 30
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)
 
Old 03-10-2006, 04:00 PM   #10
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
i have problem about my old drive boot settings and kernel(not the hard ware). so i cant fix it.

EDIT: i use the

/dev/hdb1 /mnt/oldfedora ext2 defaults 0 0

But it is only 93mb and the only folder is lost+found i think this is the MBR of my old fedora.

Last edited by an2ny_18; 03-10-2006 at 04:33 PM.
 
Old 03-10-2006, 04:47 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
What is the output of fdisk -l
 
Old 03-10-2006, 04:49 PM   #12
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
v-rockro:~# fdisk -l /dev/hda (New Debian)

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:~#
 
Old 03-10-2006, 05:28 PM   #13
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
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.
 
Old 03-11-2006, 12:20 AM   #14
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,828

Rep: Reputation: 256Reputation: 256Reputation: 256
Mount drives as root

Quote:
Originally Posted by an2ny_18
hi! thank you for help i think your guide maybe work, but i have problem while entering the command.

i also create /mnt/oldfedora folder for mounting.

v-rockro:~# /dev/hdb /mnt/oldfedora ext3 defaults 0 0
bash: /dev/hdb: Permission denied
v-rockro:~#

EDIT: ok... sorry im noob
OK, /etc/fstab is a file. You make an entry in /etc/fstab, and mount the partition as root.

mount /mnt/oldfedora
 
Old 03-11-2006, 05:00 AM   #15
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
my fstab

Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdb /mnt/oldfedora ext3 defaults 0 0
and when i use the command mount:
Quote:
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

Last edited by an2ny_18; 03-11-2006 at 05:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How transfer files? zpxykm Linux - Newbie 4 11-24-2005 04:03 AM
Can't Transfer Files derek-888 Linux - General 9 11-29-2003 01:41 PM
how do I transfer files dogma Linux - Newbie 5 05-27-2003 07:11 PM
Transfer files ust Linux - General 1 04-10-2003 08:19 AM
Best Way to Transfer Files? Cynthia Blue Linux - Newbie 20 12-14-2002 03:43 PM


All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration