How to access files from a migrated disc?
I am installing a new machine, but I want to copy some files from an older machine. I can access teh physical drive using a USB link, treating teh old dsik as an 'External Drive'.
When I attach the disk, it shows on the desktop as /boot, and when I open it up, I have 3 folders - efi, grub and lost+found. If I try to open lost+found, I am told that I do not have permission to access that folder. I assume that that is where all my files are, but that nice Linux is preventing unauthoruised access. How do I access those files? |
Quote:
so, therefore - they should be in the efi folder . . try installing gnome-commander in your host PC - it can be run as /root & thus give you R/W privlidges that allow you to copy / move your stuff. |
lost+found is a special directory created when an ext2/3/4 file system is formatted and can only be accessed by root. In a nutshell if fsck finds corrupted files during a check it will place them in the lost+found directory. What you see is your old OS's /boot partition which was automatically mounted when the drive was attached. I assume the files you are seeking are in the / partition.
Please post your current and old linux distributions/versions and also post the old OS partition information if known. You probably have to manually mount your / partition which could be part of a LVM. |
The 'new' system is actually running Fedora 12. I did a 'fdisk -l' and a 'df -h /' and the results are below.
Quote:
|
I guess that my problem is this:-
When I connect my disk using a USB cable, the system automatically mounts the first partition (the /boot partition). It recognises that the disk is 250 GB, but it only sees the first partiton which is about 200MB. I need to access the 2nd partition, so I must mount that. Obviously, I can make a folder such as /mnt/myotherdisk - but how can I know the 'address' of the drive (obviously NOT /dev/sda)? |
I connected the external drive via USB and it was automatically mounted by the OS. I then entered a mount command and got this output
Quote:
Quote:
|
You need to do something different to access an LVM.
Here are the basic steps: Scan for volume groups vgscan -v Once you determine the volume group set it active: vgchange -a y Volume_Group_Name Find the name of the Logical volume you want to mount: lvs –all Now mount your logical volume: mount /dev/volume_group/logical_volume /mountpoint |
Thank you michaelk. That has done the trick and I am copying files.
Great. |
Your welcome.
|
All times are GMT -5. The time now is 12:08 AM. |