Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th March 2008, 09:23 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Swap Out Hard Drives and move data

I just upgraded the hard drive in my laptop. Installed a new copy of F8 and so far so good.

However when I go to transfer the files from the old drive I have a problem. I placed the laptop drive into a USB hd caddy and the only files that show up in sdb1 /boot are a grub folder, a lost and found folder and about 8 files?

So I can go ahead and replace the drive in the laptop and reboot into my old F8 desktop. From there what do I need to do? Do I create a new partition or folder and move all of my data there? I can go ahead and move everything using a SD card but that is going to take a long time.
Reply With Quote
  #2  
Old 9th March 2008, 10:13 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
You lost me. You're saying the old drive only shows /boot and lost+found ?
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #3  
Old 9th March 2008, 11:04 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Right.

I plug it into a USB to IDE tray and it now should work like a USB storage drive.

However the only two partitions to show up are grub and Lost & found. It seems as if it's being mounted in the boot directory and I can't get up to a higher level to access my home folder.
Reply With Quote
  #4  
Old 9th March 2008, 11:13 PM
jnvilo Offline
Registered User
 
Join Date: Jun 2007
Location: Malta
Posts: 57
is there any possibility you have sdb2 and perhaps even sdb3?
__________________
----
I read the f'kn man page and it said to ask you guys.
www.jnvilo.com
Reply With Quote
  #5  
Old 9th March 2008, 11:14 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Please post
Quote:
su -
fdisk -l
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #6  
Old 9th March 2008, 11:51 PM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
This is a new install of today.

Quote:
bash: fdisk: command not found
Reply With Quote
  #7  
Old 9th March 2008, 11:56 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Doesn't matter. You should switch to root first by issuing the first command su -
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #8  
Old 10th March 2008, 12:00 AM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Thanks,
I did. Trying to see if Konqueror in admin mode makes a difference.

Nope. This is pretty much where I am stuck at:

Quote:
system:/media/sdb1

Last edited by ackray; 10th March 2008 at 12:09 AM.
Reply With Quote
  #9  
Old 10th March 2008, 12:31 AM
jnvilo Offline
Registered User
 
Join Date: Jun 2007
Location: Malta
Posts: 57
I find it hard to believe that you don't have fdisk because afaik this is always installed. Anyways it is provided by package, util-linux-ng

so do this as root:

yum install util-linux-ng

and then once that is installed,
once again as user root

fdisk -l


just like nokia said, That will list all the partitions of drives that are recognized by your system.

I suspect that your home is on another partition such as sdb3.


You can also just try to mount sdb2, and sdb3 and see what that gives you. As I said above, it is possible that your root or home is on another partition on that disk.

Also another thing you can do is df -h and see what size is /media/sdb1. If it is way less than the capacity of your drive, then that would confirm that sb2 or sb3 or more partitions exists for your drive and that is where your data exists.
__________________
----
I read the f'kn man page and it said to ask you guys.
www.jnvilo.com
Reply With Quote
  #10  
Old 10th March 2008, 12:44 AM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
OK,

Looks like I am just seeing the one partition. How do I mount sdb2 on the USB drive? What is being mounted is media/sdb1
Reply With Quote
  #11  
Old 10th March 2008, 01:24 AM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
su -
mkdir /media/sdb2
mount /dev/sdb2 /media/sdb2

But i suspect you're skipping steps or not doing things right. Before making anything else, post that fdisk -l output.
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #12  
Old 10th March 2008, 01:37 AM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
Thanks

The commands required a
Quote:
sed -i s/\$EUID/0/g /etc/profile
in order to work again. So now that I have them working:

[root@localhost ray]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c33bc

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 19457 156087540 8e Linux LVM

Disk /dev/dm-0: 157.9 GB, 157907156992 bytes
255 heads, 63 sectors/track, 19197 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 1879 MB, 1879048192 bytes
255 heads, 63 sectors/track, 228 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

The 160 gig is my new HD the old one was a hitachi 100 gig. Since that had an f8 on it then my data is probably over on sda2 as well.
Reply With Quote
  #13  
Old 10th March 2008, 01:46 AM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Where did that sed line come from ?
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #14  
Old 10th March 2008, 02:51 AM
ackray Offline
Registered User
 
Join Date: Nov 2007
Posts: 46
^^^ Nokia, Sorry I am trying to 'fix' two or three things here.

The SED line came from a post I tracked down in reference to commands not working. In my windows experience it means a PATH problem, in Linux I guess it's somewhat similar. So having run that command I can now use my commands again, ifconfig an so on. I'm also trying to find out why my RTL8185 card locks up the laptop after the latest updates.

Anyway to get back on topic

When I try to run that command I get a " mkdir: cannot create directory `/media/sdb2': File exists" error message.

To recap I pulled out my old F8 100 gig HD and put in a faster 160 gig HD. Both should have the same file structure as I simply went with a default install of F8. I'll be putting the old HD back in shortly as I need to get some work done.

Thanks for the help! However if I take a 20 gig HD and put it in the USB to HD caddy what is the best way to partition and format it so I can move my entire home folder over? I could use my XP box but I'd rather learn this now.
Reply With Quote
  #15  
Old 10th March 2008, 04:05 AM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
Quote:
Originally Posted by ackray
^^^ Nokia, Sorry I am trying to 'fix' two or three things here.

The SED line came from a post I tracked down in reference to commands not working. In my windows experience it means a PATH problem, in Linux I guess it's somewhat similar. So having run that command I can now use my commands again, ifconfig an so on. I'm also trying to find out why my RTL8185 card locks up the laptop after the latest updates.
Commands like fdisk, iwconfig, ifconfig can be run just fine as long as you log in with su - (su space dash)... unless something got messed up. "Su" is not the same as "su -".

If you just use "su" you'll have to give absolute path because you'll still be in the normal user's path (e.g. /sbin/fdisk -l, /sbin/ifconfig, etc) which is why so often you see people advising "su -".
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
Reply

Tags
data, drives, hard, swap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is my data lost? Installed Linux, no longer can I access my hard drives. Ironkey Using Fedora 11 11th July 2009 09:07 PM
FC10 RAID1 Hard Drives - Install problems with swap codechris Installation and Live Media 0 3rd April 2009 05:17 PM
Move swap partition glennzo Using Fedora 3 10th June 2007 06:49 PM
swap hard drives mighty_falcon Servers & Networking 5 19th December 2005 02:21 PM
Sharing hard-drives and mapping network hard-drives twn_onizuka Servers & Networking 0 14th June 2005 04:19 PM


Current GMT-time: 06:05 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat