Re: Can one now help?

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

 



On Sunday, July 18, 2010 15:39:43 Parshwa Murdia wrote:
> > Boot from the rescue/install CD/DVD, mount the root partition and revert
> > to the old fstab file from the backup.
> 
> Please let me know how can i mount the root partition? I have booted from
> the fedora core 11 cd and the icon 'Install to Hard Drive' is there now on
> my desktop, but i have not clicked the same, for mounting and recovering
> back the old one, please let me know.
[snip]
> Can you please explicitly let me know what and how to do? means what i did
> is just booted from the live cd, and now the icon of installing it again to
> the hard drive is coming which i am not at all touching. but the thing is
> that, how in terminal i type and what i type? to mount or backing up the
> old one??

You are right not to touch the install icon again. You do not want to install 
the system all over again. Instead, once you have booted the Live CD and have 
the desktop show up, you should do several things.

First open the terminal (find it in the menus, its exact position depends on 
KDE/Gnome Live CD, and I don't know which one you are using).

Then you need to find out which partition is the root partition of your 
installed Fedora. You do not want to confuse that to your *current* root 
partition which is on the Live CD. Hard disk partitions in Fedora are named 
sda1, sda2, ... for the master hd on the primary IDE controller,
sdb1, sdb2, ... for the slave hd on the primary IDE, then sdc1/2/... and 
sdd1/2/... for the master and slave on the secondary IDE, etc. Of course, if 
you have a SATA drive this may be different. If you have a dual-boot 
configuration (ie. Windows), then it typically takes sda1 for Windows drive C:, 
sda2 for windows drive D: (if you have one, not counting the CD/DVD drive) and 
so on, while Fedora partitions go after those.

I am writing all this to show you that partition layout depends a lot on your 
hardware and software configuration, and no one on this list can guess it for 
you --- you have to find it out yourself for your particular machine. One way 
to do it is to use fstab:

(1) once in the terminal, type "su -" to become root (without quotes)
(2) type "fdisk -l /dev/sda"
(3) fdisk will list the partition table of your hard disk --- look carefully 
on that list, and try to figure out which partition is the Linux root 
partition. If you cannot guess it yourself, post the partition table layout to 
us so we can help you with guessing.

After you have determined which partition is the Fedora root (in what follows 
I will assume that it is /dev/sda2, while you should substitute the relevant 
/dev/sd?? instead), you want to mount it somewhere --- typically to /mnt 
directory of your running LiveCD Fedora. This is done as follows:

(1) create a new directory in /mnt, by typing "mkdir /mnt/oldfedora"
(2) mount the partition to that directory by typing
"mount /dev/sda2 /mnt/oldfedora" (and don't forget to substitute /dev/sda2 
with whatever is relevant for your case)
(3) change to the mounted directory, "cd /mnt/oldfedora"
(4) list what is inside to make sure you've got it right so far, "ls -l"

If everything is ok, you should see a list of directories appear --- bin, 
boot, dev, etc, home, ... You are interested in the etc directory, and the 
fstab file is inside.

(5) Now open the fstab file in the text editor,
"gedit /mnt/oldfedora/etc/fstab"
(6) a window should open with the contents of the fstab file.
(7) delete all changes you have made to the file before --- remove all 
additional options after "defaults" in all lines where you have added them
(8) save the file and close the editor
(9) get out of the /mnt/oldfedora directory, "cd .."
(10) unmount the partition from that directory, "umount /mnt/oldfedora" (note, 
I didn't make a typo with the name of the command, it is really called 
"umount" rather than "unmount")
(11) close the terminal, reboot the computer and boot Fedora from the hard 
disk.

If everything goes right, your Fedora system should come up fine. If you get 
stuck somewhere in this procedure, let us know where and what went wrong.

HTH, :-)
Marko

P.S. All this may look very complicated, but if you want to learn how to use 
Linux, it is a worthy experience. ;-)

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux