Re: Having a hard time copying root filesystem to new drive...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel B. Thurman wrote:

mount: could not find filesystem '/dev/root'
8)  mounted the new / partition to /mnt
9)  cd /mnt
10) cp -a /{bin,dev,etc,home,lib,opt,proc,root,opt,sbin,selinux,srv,sys,tftpboot,usr,var} .
    Note: Copy of dev, proc and sys does report errors as far as links and sockets, but
          otherwise I assume this is ok, since how else is one to get these copied over?
11) Manually added the mount directories: boot, mnt, media
12) Manually added the otherwise empty directories: misc, net, tmp
    and manually set the chmods and permissions

A 'cp --one-file-system -a / /mnt' should have done the same...

11) edited /etc/fstab with new labels - different from original fstab
[...]
21) edit /etc/fstab and ensure labels are correct

You also have to edit /etc/grub.conf (actually the target of its symlink which may not be there if you haven't mounted your /boot in its relative position). From rescue mode you might mount the /boot partition somewhere, then look for grub/grub.conf. The root= in the kernel lines have to match where your new / partition will be.

Hmmm... You should be able to hit a key to get to the grub prompt when booting and edit this on the fly instead of a rescue boot again. Then once you are running, edit /etc/grub.conf.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux