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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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?
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.
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?
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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.