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.
my mistake I deleted fstab file, now after booting I am getting error message saying "you don't have any Linux Partition..."
I know Kernel is not able to mount the partitions coz that file is missing... any idea what to do now; I tried rescue mode but I don't know how to proceed...
forgot to mention that /boot is a standard partition @ /dev/sda1; while /, /home, /var are LV's with address /dev/mapper/vol0-root, /dev/mapper/vol0-home, /dev/mapper/vol0-var...
Plz Help... Thnx in Advance...
SkM...
Last edited by SkM007; 08-24-2011 at 03:34 PM.
Reason: missed some information
Click here to see the post LQ members have rated as the most helpful post in this thread.
Boot from a live CD, mount your Linux partition and create a new fstab.
If you need help with that feel free to ask.
Thanx for your help... I do have a Live CD but how m I gonna create fstab file... should i copy fstab file from live cd to /etc/; but how will get my fstab's detail, i mean i use UUID for mounting the partitions...
i think i have to do something else... it will be great if you can elaborate step by step process for fstab creation...
You can see that I have three partitions on drive sda (which is my internal disk) and one partition on an attached SD-card. The SD-card is not needed in the fstab, so we will omit that.
4. Now we will mount your Linux /-partition, in my case it is sda2:
Code:
sudo mount /dev/sda2 /mnt
You now can access all files on that partition under /mnt.
5. Create a new fstab in the mounted partition:
Code:
sudo vim /mnt/etc/fstab
Substitute vim in this command with your favorite text-editor.
6. At first we add some mounts that are necessary for a system to run properly, I just copied the entries from my fstab, you may want to have a look at your live CD's fstab to compare:
Of course you have to adapt that to your needs. Substitude my UUIDs with the ones shown to you from the blkid-command. Also, if you don't have a separate /home-partition just omit that line.
8. Save that file and close the editor.
9. Unmount the partition:
I tried it, but I am getting different output than what u have written...
"df -h" doesn't gave any detail about the partitions in my HDD...
"blkid" there was not output
"fdisk -l" output is
/dev/sda1 Linux
/dev/sda2 Linux LVM
/dev/sda3 swap
sda2 is a PV with all LV's inside (/, /home, /var)...
sorry for the delay... I tried booting thru a Live CD, after that I was getting error message "System is sleeping forever" something like that... I was not able to get Grub loading screen... that's the reason Single User was not possible... & i didn't tried Rescue Mode... actually I re installed the OS, but I'll try it again... I wanna see how to recover it if fstab is missing...
I'll keep this thread open & let me try once again; I'll update here...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.