Hello Linux stalwarts. Running SuSE 9.2 on an AMD64 system. Screwed up bigtime. Needed some more space so I deleted a rarely used partition to make more room. Failed to follow through with proper changes to my fstab file. On my next reboot the system failed. Managed to boot the system as root from the CLI. After figuring out what the problem was, I tried to edit the fstab file in vi (vim actually) Couldn't figure out how to make it work. Couldn't even call up the 'help' manual (via F1) to be able to proceed. Can somebody, PLEASE, give me a step by step so that I can edit that file? Bob S.
Screwed up bigtime. Needed some more space so I deleted a rarely used partition to make more room. Failed to follow through with proper changes to my fstab file. On my next reboot the system failed. Managed to boot the system as root from the CLI. After figuring out what the problem was, I tried to edit the fstab file in vi (vim actually) Couldn't figure out how to make it work. Couldn't even call up the 'help' manual (via F1) to be able to proceed. If you're using vi or vim before you type something you must press 'i'. After you make the changes press ESC then :wq. You can try other editor
On Thursday 15 December 2005 03:42, B Stia wrote: like mcedit or nano. Check also if the partition is mounted with write access. If it's not you can do a mount -o remount / Cheers, -- Liviu Mihai Damian Mobile: +40 741 226993; Fax: +1 347-632-4117 Phone : +1 360-526-6441; +49 1801 6666266027 URL: http://liviudm.blogspot.com
On Thursday 15 December 2005 03:42, B Stia wrote:
Hello Linux stalwarts.
Running SuSE 9.2 on an AMD64 system.
Screwed up bigtime. Needed some more space so I deleted a rarely used partition to make more room. Failed to follow through with proper changes to my fstab file. On my next reboot the system failed. Managed to boot the system as root from the CLI. After figuring out what the problem was, I tried to edit the fstab file in vi (vim actually) Couldn't figure out how to make it work. Couldn't even call up the 'help' manual (via F1) to be able to proceed.
Can somebody, PLEASE, give me a step by step so that I can edit that file?
Have you tried using "joe" instead of vi? With "joe" you can see the commands on screen, starting with [Ctrl+K+H] for help. Other alternative would be "mcedit". Is vi the only editor you have available? If so, here are the quickest steps to get something done: 1. press [Insert] or [i] (this puts you in editing mode) 2. edit your file 3. press [Esc] (this gets you out of editing mode into command mode) 4. type ":wq" (write changes and quit)
Hello Linux stalwarts.
Running SuSE 9.2 on an AMD64 system.
Screwed up bigtime. Needed some more space so I deleted a rarely used partition to make more room. Failed to follow through with proper changes to my fstab file. On my next reboot the system failed. Managed to boot the system as root from the CLI. After figuring out what the problem was, I tried to edit the fstab file in vi (vim actually) Couldn't figure out how to make it work. Couldn't even call up the 'help' manual (via F1) to be able to proceed.
Can somebody, PLEASE, give me a step by step so that I can edit that file?
Bob S. There is an easy way to fix this if you haven´t deleted the old fstab file... open your Konsole, type sux, when asked enter the root password,
On Wednesday 14 December 2005 8:42 pm, B Stia wrote: then cd to /etc mv fstab fstab-broken then rename your old fstab which should be there as ~fstab or similar to mv ~fstab fstab exit and close the console you may have to reboot, but it should then read the old fstab that has the correct partitions in it.. Be aware that linux doesn´t ask "are you sure?" so be careful of that mv command and the rm command especially. rm will overwrite any file you have that has the same name ; rm will remove permanently any file or directory you tell it to. There aren't any cute little file recovery programs available . -- j Morning, Evolution in action. only the grumpy will survive Don't try to change my attitude or rearrange my latitude; Don't tell me what I think, I got to get me some boat drinks
On Thursday 15 December 2005 12:22 pm, jfweber@bellsouth.net wrote:
On Wednesday 14 December 2005 8:42 pm, B Stia wrote:
Hello Linux stalwarts. <Snipped> rm will overwrite any file you have that has the same name ; rm will remove permanently any file or directory you tell it to. There aren't any cute little file recovery programs available .
Mea culpa, mistyped, the sentence above which starts *rm will overwrite* should say mv will overwrite ... the rest IIIRC is correct . -- j Morning, Evolution in action. only the grumpy will survive Don't try to change my attitude or rearrange my latitude; Don't tell me what I think, I got to get me some boat drinks
jfweber@bellsouth.net wrote:
On Thursday 15 December 2005 12:22 pm, jfweber@bellsouth.net wrote:
On Wednesday 14 December 2005 8:42 pm, B Stia wrote:
Hello Linux stalwarts.
<Snipped>
rm will overwrite any file you have that has the same name ; rm will remove permanently any file or directory you tell it to. There aren't any cute little file recovery programs available .
Mea culpa, mistyped, the sentence above which starts *rm will overwrite* should say mv will overwrite ... the rest IIIRC is correct .
I knew that but thanks for the clarification. Thanks also, for that tip. Don't know why I didn't think of that. Saved editing fstab. Trouble is that it didn't work. More to my problem than just a simple rewrite of fstab. Now Bob, repeat after me. NEVER NEVER mess with the partition table UNLESS you are prepared with a full backup and/or are ready to reinstall. Bob S.
participants (4)
-
B Stia
-
Damian Mihai Liviu
-
jfweber@bellsouth.net
-
Silviu Marin-Caea