fstab file got Deleted
Dear all,
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... |
Boot from a live CD, mount your Linux partition and create a new fstab.
If you need help with that feel free to ask. |
Quote:
i think i have to do something else... it will be great if you can elaborate step by step process for fstab creation... Again... Thnx for taking trouble for me... SkM... |
1. Boot from your live-CD.
2. Open a terminal. 3. Launch the command Code:
blkid Code:
tobi@dragon ~ :) % blkid 4. Now we will mount your Linux /-partition, in my case it is sda2: Code:
sudo mount /dev/sda2 /mnt 5. Create a new fstab in the mounted partition: Code:
sudo vim /mnt/etc/fstab 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: Code:
devpts /dev/pts devpts gid=5,mode=620 0 0 Code:
UUID="1f66de30-a6a5-448f-9bad-5b7a3fe22e1c" swap swap defaults 0 0 8. Save that file and close the editor. 9. Unmount the partition: Code:
sudo umount /mnt |
Okay... I got it... I will mount the '/' (in my hdd its /dev/mapper/vol0-root) to a temporary /mnt (of cd) & then i'll create the fstab file...
Thnx a lot sir... u saved my day n my linux too... |
Hey Tobi,
Sorry for troubling u again... 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)... "fdisk -l /dev/sda2" got message saying /dev/sda2 doesn't contain valid partition table... "mount /dev/mapper/vol0-root /mnt" got message saying root doesn't exist... Sorry, I can't attach the snapshot, if its required, i'll send... Thnx... SkM... |
You may have to run the blkid command as root.
|
Quote:
|
May be someone other can help here, I know nothing about LVM and how it handles partitions.
|
Are you able to login single-user or recovery mode?
If you can Quote:
/etc/fstab.bak |
Hey...
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... Anyway, Thanks for your Support... |
If you're going to try it again try it in virtual box.
|
okay... let me try it & will update you about my situation...
|
All times are GMT -5. The time now is 05:17 PM. |