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.
hi ,
I am back witha problem
my fstab is deleted
i have my / on /dev/sda3
boot on /dev/sda2
now since while logging on to single user mode i cannot edit /etc to create fstab
i ran
mount /dev/sda2 /boot
zcat /boot/initrd-2.6..... | cpio --extract --make-directories --verbose
this extracted the initrd on /boot
now i created /boot/etc/fstab
can i now enter the rw mode ..
for notice
while on sinle user mode
mount -o remount,rw /dev/sda3 / is not working ( even when i am root )
please assist
thanks
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.