LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-27-2005, 10:28 PM   #1
diana_chen23
LQ Newbie
 
Registered: Apr 2005
Posts: 11

Rep: Reputation: 0
Getting data from old boot drive


Hi-

I have a Fedora Core 3 system. The old drive was too small (but works fine), so to be safe, I pulled it out, set it aside, bought a new drive and reinstalled FC3 on it. The new drive boots just fine. I would now like to put old boot drive back in system, set as slave, and pull data files from it to the new drive and then keep the old drive for a while as backup.

Of course, on boot, FC3 does not mount the old drive as it says there is already a drive labeled /boot. Yes - that is correct. So all I have is the new drive...

How do I relabel the old drive to something else that does not conflict with the new boot drive so I can get my data? Or is there a better way?

Thank you!
DC
 
Old 06-27-2005, 11:03 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Try mounting based on partitions, rather than labels.
 
Old 06-28-2005, 10:43 PM   #3
diana_chen23
LQ Newbie
 
Registered: Apr 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Hi David-

Thank you for your reply. I did some looking around - with FC3, it is no longer just to edit /etc/fstab file with something like:

/dev/hdb1 /mnt/olddrive ext2 defaults 1 2

(I assume this is what you meant when you said to not use labels? Recall this will be first channel of ide, but slave drive, so it is hdb1 right?). The /etc/fstab file tells me to use fstab-sync. I am very confused by syntax of fstab-sync - this is not run thru a shell? There is also no hdb1 entry in the /dev folder. Plus it looks like FC3 noew uses /media as mount point and no longer /mnt. Correct?

Can you offer more assistance?

Thanks!
DC
 
Old 06-28-2005, 11:54 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Let's see what it recognizes: try running 'dmesg | grep hd' and see where it's finding that drive.
 
Old 06-29-2005, 12:24 AM   #5
diana_chen23
LQ Newbie
 
Registered: Apr 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Ok. Here is what command gave:

# dmesg | grep hd
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdcMA, hddMA
hda: Maxtor 7Y250P0, ATA DISK drive
hdb: ST380020A, ATA DISK drive
hdc: PLEXTOR DVDR PX-716A, ATAPI CD/DVD-ROM drive
hda: max request size: 1024KiB
hda: 490234752 sectors (251000 MB) w/7936KiB Cache, CHS=30515/255/63, UDMA(133)
hda: cache flushes supported
hda: hda1 hda2
hdb: max request size: 128KiB
hdb: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hdb: cache flushes not supported
hdb: hdb1 hdb2
hdc: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 8192kB Cache, UDMA(66)
SCSI device sdc: 117231408 512-byte hdwr sectors (60022 MB)
SCSI device sdc: 117231408 512-byte hdwr sectors (60022 MB)

----
I see old drive is hdb. Ok.

I will probably need more hint to get this mounted correctly (especially with fstab-sync).

Thanks!
DC
 
Old 06-29-2005, 01:13 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
According to the fstab-sync manpage, you should still be able to edit /etc/fstab for non-HAL activated devices, so I would imagine adding the proper line should be fine. Or just mounting without an fstab entry.
 
Old 06-29-2005, 11:49 PM   #7
diana_chen23
LQ Newbie
 
Registered: Apr 2005
Posts: 11

Original Poster
Rep: Reputation: 0


I think I am missing something. Here is my fstab:
-----------------
/dev/hdb1 /media/drive2 auto defaults 1 2
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,fscontext=system_ubject_r:removable_t,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,fscontext=system_ubject_r:removable_t,managed 0 0
-----------------

drive2 has been created in correct spot.

On boot, as it goes thru check, FC3 shows that there is a duplicate LABEL=/boot. Even though I have drive2 as first line in fstab file, somehow FC3 is still picking up the device by label, even though I use hdb1 for the drive2.

Q1) How to stop FC3 from looking at label of 2nd drive (the drive that used to be my boot drive) and mount by drive2?
Q2) What determine whether to use HAL or not?

Thanks!
DC
 
Old 06-29-2005, 11:51 PM   #8
diana_chen23
LQ Newbie
 
Registered: Apr 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Oops. When I do mount as in last post, I see this:
[root@localhost drive2]# ls
config-2.6.10-1.770_FC3 initrd-2.6.10-1.770_FC3.img System.map-2.6.10-1.770_FC3 vmlinuz-2.6.11-1.14_FC3
config-2.6.11-1.14_FC3 initrd-2.6.11-1.14_FC3.img System.map-2.6.11-1.14_FC3 vmlinuz-2.6.11-1.27_FC3
config-2.6.11-1.27_FC3 initrd-2.6.11-1.27_FC3.img System.map-2.6.11-1.27_FC3 vmlinuz-2.6.9-1.667
config-2.6.9-1.667 initrd-2.6.9-1.667.img System.map-2.6.9-1.667
grub lost+found vmlinuz-2.6.10-1.770_FC3


I think this tells me something big, but I don't know what (yet).

Thanks!
DC
 
Old 06-29-2005, 11:58 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
You can use 'tune2fs' to change the labels on the partitions.
 
Old 06-30-2005, 01:15 AM   #10
diana_chen23
LQ Newbie
 
Registered: Apr 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks David. That was the command I think I was looking for. I renamed the old drive to /xboot to remove the conflict when booting with the new drive. So now it boots with no errors.

I think last error is to find out why /media/drive2 show me config, initrd, System.map, and vmlinuz files... (see my last post). I thought I would see my old data and not file system internal files.

Thank you so much for all of this learning!
DC
 
Old 06-30-2005, 09:48 AM   #11
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Those are the files one would normally find in a boot partition...
 
  


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
can't repartiton hard drive for a dual boot because disk contains data near end andy101 Linux - Newbie 3 11-14-2005 02:52 PM
Using Knoppix to rescre data from a non-boot hard drive satimis Linux - General 2 05-18-2005 10:27 AM
cannot see any data on fat 32 drive idagon Mandriva 25 11-08-2004 10:05 AM
need to destroy data on drive syx Linux - Hardware 11 10-01-2004 01:56 PM
Getting Data off old hard drive artemis Linux - Hardware 6 11-02-2002 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 AM.

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