On Wednesday 31 May 2006 2:53 pm, William Steibel wrote: > Having problems with samba, I foolishly edited the fstab file. Of course > fedora 5 will no longer boot. I have used knoppix and the fc5 rescue disk > to get into the system and edit the fstab file back to the original. In > each method I run into the same problem. I cannot edit the file because it > is a read only file. All attempts to save the edited file fails. > I am a linux novice,so excuse my stupidity. I appreciate the solution to > this problem > > Bill Steibel > bsteibel@xxxxxxxx Maybe this will help. If you use Knoppix 1) Boot the system using Knoppix (rescue disk). 2) as root A) fdisk -l ( list all partitions of all disks) B) Enter the proper data (example below) [root@localhost ~]# fdisk -l Disk /dev/hda: 60.0 GB, 60022480896 bytes 16 heads, 63 sectors/track, 116301 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 105 52888+ 83 Linux /dev/hda2 106 12435 6214320 83 Linux /dev/hda4 12436 116295 52345440 5 Extended /dev/hda5 12436 115800 52095928+ 83 Linux /dev/hda6 115801 116295 249448+ 82 Linux swap / Sola Disk /dev/hdb: 8447 MB, 8447459328 bytes 16 heads, 63 sectors/track, 16368 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 16368 8249440+ 83 Linux -------------------------------------------------------------------------------------------------------------- --->From my fstab ( Note also all the system stuff that does not have mount points! ) /dev/hda2 / ext3 defaults 1 1 /dev/hda1 /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/hda5 /usr ext3 defaults 1 2 /dev/hdb1 /home ext3 defaults 1 2 /dev/hda6 swap swap defaults 0 0 /dev/hdd /media auto ro,user,noauto 0 0 ------------------------------------------------------------------------------------------------------------- 3) Put all the proper hard drive info in as well as all non-mounting "file systems" 4) Verify that the file has been written. [root@localhost ~]# cat /etc/fstab /dev/hda2 / ext3 defaults 1 1 /dev/hda1 /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/hda5 /usr ext3 defaults 1 2 /dev/hdb1 /home ext3 defaults 1 2 /dev/hda6 swap swap defaults 0 0 /dev/hdd /media auto ro,user,noauto 0 0 J Ludwig -- Some people have convictions. Some people have opinions I think I'll have a cheeseburger! -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list