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.
Background: This problem is with a Fedora 5 installation, on a machine with previously one
hard drive. The machine and install has never given any problems in the past year. I installed an additional data disk which I can see but cannot write to, I now assume because the permissions are set incorrectly.
What I did to cause the problem: I have changed the /etc/fstab file and now the machine will not boot.
I can boot the machine with a Knoppix 5.1.1 Live DVD, however I do not understand how to mount my original hda1, and work on the fstab file. I kept a virgin copy in the /etc folder, so I believe it is a matter of renaming the fstab.old file to fstab.
I have figured out how to set a password to be able to log on as root, but I seem not to understand how to open my original hard drive, ie where mangled /etc/fstab resides.
Can anyone point me to a good article on this so I get an understanding of how to use a rescue disk in a case like this.
Once you get in a terminal (as root): fdisk -l to see all the drives and partitions mkdir /mnt/somename to make a mount point mount /dev/hda1 /mnt/somename to mount the partition to the mountpoint cd /mnt/somename AND ls to see the contents
(replace "somename" and "hda1" with appropriate entries)
To edit fstab: nano etc/fstab (Not no leading "/"--you want the etc/fstab that is on /mnt/somename (AKA /dev/hda1))
If nano is not installed, then kedit, kwrite, or whatever editor IS there.
It is best to use the distribution's install disc, for Fedora, try this:
1: Boot from Fedora Core Linux 1st CD or DVD:
Set BIOS to boot from CD/DVD rom. At boot: prompt type command linux rescue
Code:
boot: linux rescue
Just follow on screen instructions, when prompted let the installer search for your Linux installation. If the search operation is successful, your old Linux installation will be available at special directory called /mnt/sysimage.
Code:
# chroot /mnt/sysimage
From a root shell, it may be best to remove /etc/fstab first before moving (renaming) /etc/fstab.old to /etc/fstab.
From a live CD with /dev/sda2 as an example for your Fedora / partition, mount the device in read/write by first un-mounting it, assuming the live CD sees it as /media/sda2, and the file system is ext3:
Thank you for your input. At this point my results were not successful.
Junior Hacker - The problem here is that is still a problem with the extra data drive that I added (hdb1 and hdb2), and this stops the install per your directions, only offering me the option to reboot. This happend with the drive present, and again after I pulled the data drive, so something in the configuration files must not like the way I have the hdb1 and hdb2 set up.
Quote:
Originally Posted by pixellany
Once you get in a terminal (as root): fdisk -l to see all the drives and partitions mkdir /mnt/somename to make a mount point mount /dev/hda1 /mnt/somename to mount the partition to the mountpoint cd /mnt/somename AND ls to see the contents
(replace "somename" and "hda1" with appropriate entries)
To edit fstab: nano etc/fstab (Not no leading "/"--you want the etc/fstab that is on /mnt/somename (AKA /dev/hda1))
If nano is not installed, then kedit, kwrite, or whatever editor IS there.
Thank you for your input. At this point my results were not successful.
Although your instructions seem simple, it is not within my skillset
yet. I will review the man commands for your suggestions a bit more to see if I can follow this.
All help is appreciated, as it is how I have actually learned how to use and install Linux. Thank you again for your efforts.
I will likely wait a day or two to see if other suggestions appear. If not, I will pull the hard drives, install a small spare, reinstall, and look for a way to recover any files that need to be backed up.
mg92865
Quote:
Originally Posted by pixellany
Once you get in a terminal (as root): fdisk -l to see all the drives and partitions mkdir /mnt/somename to make a mount point mount /dev/hda1 /mnt/somename to mount the partition to the mountpoint cd /mnt/somename AND ls to see the contents
(replace "somename" and "hda1" with appropriate entries)
To edit fstab: nano etc/fstab (Not no leading "/"--you want the etc/fstab that is on /mnt/somename (AKA /dev/hda1))
If nano is not installed, then kedit, kwrite, or whatever editor IS there.
Is it possible for you to post the output of the command: fdisk -l here, that is if you can boot Knoppix with the second drive installed and run that command. You can highlight/copy the output from the terminal and paste it in kwrite editor and save it to a USB flash drive or floppy with a name ending in .rtf which will not be changed around when viewing the file from Wordpad in Windows. Than we can give assistance in writing the proper configuration in /etc/fstab of the Linux.
Also post the /etc/fstab file would be a great help.
OK, this is the results of the fdisk command. If you wanted to see the contents of my (not knoppix created fstab) fstab, I will need help in determining how to do that. If there is anything I can provide, please ask. Thank you again for your assistance.
mg92865
RESULTS:
knoppix@Knoppix:~$ fdisk -l
knoppix@Knoppix:~$ su
root@Knoppix:/ramdisk/home/knoppix# fdisk -l
/dev/hdb1 1 44458 357108853+ b W95 FAT32
/dev/hdb2 44459 48641 33599947+ 83 Linux
root@Knoppix:/ramdisk/home/knoppix#
Quote:
Originally Posted by Junior Hacker
Is it possible for you to post the output of the command: fdisk -l here, that is if you can boot Knoppix with the second drive installed and run that command. You can highlight/copy the output from the terminal and paste it in kwrite editor and save it to a USB flash drive or floppy with a name ending in .rtf which will not be changed around when viewing the file from Wordpad in Windows. Than we can give assistance in writing the proper configuration in /etc/fstab of the Linux.
Also post the /etc/fstab file would be a great help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.