LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2007, 11:21 PM   #1
samnjugu
Member
 
Registered: Apr 2006
Location: Atlanta
Distribution: Centos, knoppix, Fedora, Mepis, Zenwalk, Mint
Posts: 142

Rep: Reputation: 16
fc5 unable to boot


i tried to add a new harddrive to my system and i seem to have run into a problem as the computer cant see the harddrive and since i had edited the file /etc/fstub the machine gives an error on boot about /dev/hdb1 it goes to a black screen and asks for root password if i want to try and fix the system. The problem is after proceeding I enter vi /etc/fstub but the file only opens in readonly mode and even after making the necesarry changes i cant save them, I even enter ! to overide and save the changes but nothing works it keeps saying it cant save the changes and giving some error codes. So how else do i go around this am thinking of dl a bootable linux system and see if that will let me do the changes on /etc/fstab any help will be greatly appreciated.
 
Old 04-30-2007, 05:51 AM   #2
bryankaplan
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware
Posts: 22

Rep: Reputation: 15
Quote:
Originally Posted by samnjugu
i tried to add a new harddrive to my system and i seem to have run into a problem as the computer cant see the harddrive and since i had edited the file /etc/fstub the machine gives an error on boot about /dev/hdb1 it goes to a black screen and asks for root password if i want to try and fix the system. The problem is after proceeding I enter vi /etc/fstub but the file only opens in readonly mode and even after making the necesarry changes i cant save them, I even enter ! to overide and save the changes but nothing works it keeps saying it cant save the changes and giving some error codes. So how else do i go around this am thinking of dl a bootable linux system and see if that will let me do the changes on /etc/fstab any help will be greatly appreciated.
You need root privileges to edit fstab, so type sudo vi /etc/fstab . And yes, it's a good idea to keep a bootable linux disk on hand for times like this.
 
Old 05-01-2007, 05:57 PM   #3
samnjugu
Member
 
Registered: Apr 2006
Location: Atlanta
Distribution: Centos, knoppix, Fedora, Mepis, Zenwalk, Mint
Posts: 142

Original Poster
Rep: Reputation: 16
i did as asked but when i make the change i get an error E303: unable to open swap file for "/etc/fstab", recovery impossible.

on trying to exit after changes i get error "/etc/fstab" E212: can't open file for writing and am using this exit cmd :x!

I will keep trying other methods as the knoppix cd is only reading the boot sector of the drive which has grub but cant read the other sectors
 
Old 05-01-2007, 06:22 PM   #4
samnjugu
Member
 
Registered: Apr 2006
Location: Atlanta
Distribution: Centos, knoppix, Fedora, Mepis, Zenwalk, Mint
Posts: 142

Original Poster
Rep: Reputation: 16
solved

here are the steps i was given to fix it from fedoraforum by stoat:

You don't need to download anything if you used CDs or a DVD to install Fedora...

1. Boot with the first Fedora installation CD or the DVD
2. At the boot prompt, enter linux rescue
3. Follow directions & respond to prompts (answer "No" to network)
4. When you reach the sh prompt, enter chroot /mnt/sysimage
5. At the sh prompt, enter nano /etc/fstab
6. Edit the fstab file
7. Exit nano with Ctrl+X, agree and save your changes
8. At the sh prompt, enter exit
9. Enter exit again to reboot
10. Remove the CD or DVD

i hope this helps someone else someday.
 
Old 05-01-2007, 06:24 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I believe you might have gone about it the wrong way.

First to prove if FC5 can see the new disk you should use the terminal command (in root)
Code:
fdisk -l
As this will list every partition in every hard disk the Linux can see in your PC.

Secondly you should create and then format the partitions in the new hard disk before you can mount them. Mounting a hard disk means you want to use it as a "file folder". Unless the hard disk partition has been formatted so that there is a filing system inside there is no way a Linux can mount or access a raw disk. I hope this makes sense to you. I take it as you can't mount the new hard drive then it must be a raw disk without a partition inside. When you format a partition you don't need to mount it as the operation is done at a hardware level.

You can use fdisk command to create partitions in the new disk. The "fdisk -l" sees a raw disk and will show no partition inside. After the partitions have been created you have to format them before they can be mounted.

Thirdly you should mount the partitions manually first instead asking Linux to mount it during a boot up by /etc/fstab. Mounting it manually by the "mount" command will enable Linux report to you the first hurdle it cannot pass through and this enables you to diagnose the fault quicker.
 
Old 05-02-2007, 10:02 PM   #6
samnjugu
Member
 
Registered: Apr 2006
Location: Atlanta
Distribution: Centos, knoppix, Fedora, Mepis, Zenwalk, Mint
Posts: 142

Original Poster
Rep: Reputation: 16
thanks that makes a lot of sense as i was trying to mount a raw hard disk i will try and re-install the hdd again as i have learned from my mistake thank you for the directions on how to do it.
 
  


Reply



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
Unable to update FC5 & FC6 martin78 Fedora 3 03-30-2007 07:41 AM
Unable to install FC5 64 bit ravisagar Linux - Software 2 07-31-2006 07:18 AM
FC5 RT61 unable to dhcp worldwise001 Linux - Networking 1 05-30-2006 08:13 PM
Unable to connect using browser in FC5 deep_jyotsingh Linux - Software 6 05-20-2006 02:02 PM
Boot failure after upgrading FC5 TR3 to FC5 Official Release fsb1284 Fedora 3 03-25-2006 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

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
Open Source Consulting | Domain Registration