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.
The warning message is telling you in a roundabout way what the problem is. Since you have no fstab, you need to specify both the device and the mountpoint in your mount command. If your root partition is /dev/sda3, then use :
I have deleted /etc/fstab file in RHEL5
tried to boot the system in single user mode and emergency mode
unable to edit the file and the file is missing , cannot create it, as i am loggged in as read only mode ,
tried to run mount -o remount,rw /dev/sda
but issue is not resolved
please suggest
Hi mitesh,
Please login as 'root' in single user mode & issue following commands,
First write down and save the output information to the following commands
1. #fdisk -l
2. #mount
3. #cat /proc/mounts
I don't know why you can't mount your partitions, but what should work is using a live cd. You can reboot with a "live cd", mount /dev/sda3, and then create /etc/fstab manually on /dev/sda3.
If you don't know what to write in your /etc/fstab, I suggest you provide the output of the 3 commands listed above.
i was just wondering if i can use th econtents of /boot partition , to load the os ..
this was i can enter read write mode
using the small linux , can anyone help me booting my system using small linux.
hey every one
i got the solution without using the cd . thsi is what i did
1. logged in emergency mode
2.mount /dev/sda2 /boot
3.cd /dev
4.mkdir tmp
5.cp /boot/initrd(xyz).img /dev/tmp/.
6.cd /tmp
7.mkdir tmp2
8.gunzip -v -S .img /dev/tmp/initrd(xyz).img // THIS WILL UNZIP THE FILE
9.cd tmp2
10.cpoi -id < ..initrd(xyz) // THIS WILL EXTRACT THE INITRD FILE
11. make the fstab in etc directory thus extracted here
12. edit the init file to mount the / partion and the swap partition
13. find . | cpoi --create --format='newc' > /dev/tmp/newinitrd
14. gzip newinitrd // this will create neinitrd.gz
15. cd ..
16. mv newinitrd.gz initrd(xyz).img
17. cp /dev/tmp/initrd(xyz).img /boot/initrd(xyz).img
18. reboot the system
19. work as you want
hey every one
i got the solution without using the cd . thsi is what i did
1. logged in emergency mode
2.mount /dev/sda2 /boot
3.cd /dev
4.mkdir tmp
5.cp /boot/initrd(xyz).img /dev/tmp/.
6.cd /tmp
7.mkdir tmp2
8.gunzip -v -S .img /dev/tmp/initrd(xyz).img // THIS WILL UNZIP THE FILE
9.cd tmp2
10.cpoi -id < ..initrd(xyz) // THIS WILL EXTRACT THE INITRD FILE
11. make the fstab in etc directory thus extracted here
12. edit the init file to mount the / partion and the swap partition
13. find . | cpoi --create --format='newc' > /dev/tmp/newinitrd
14. gzip newinitrd // this will create neinitrd.gz
15. cd ..
16. mv newinitrd.gz initrd(xyz).img
17. cp /dev/tmp/initrd(xyz).img /boot/initrd(xyz).img
18. reboot the system
19. work as you want
Hi Every one good to see it is still going on, But i guess you did not see the solution i posted.
1. logged in emergency mode
2.mount /dev/sda2 /boot
3.cd /dev
4.mkdir tmp
5.cp /boot/initrd(xyz).img /dev/tmp/.
6.cd /tmp
7.mkdir tmp2
8.gunzip -v -S .img /dev/tmp/initrd(xyz).img // THIS WILL UNZIP THE FILE
9.cd tmp2
10.cpoi -id < ..initrd(xyz) // THIS WILL EXTRACT THE INITRD FILE
11. make the fstab in etc directory thus extracted here
12. edit the init file to mount the / partion and the swap partition
13. find . | cpoi --create --format='newc' > /dev/tmp/newinitrd
14. gzip newinitrd // this will create neinitrd.gz
15. cd ..
16. mv newinitrd.gz initrd(xyz).img
17. cp /dev/tmp/initrd(xyz).img /boot/initrd(xyz).img
18. reboot the system
19. work as you want
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.