Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I tried to delete a partition (/hdc12) to increase Mandriva /home partion (/hdc9) but I was only halfway sucessful, Now, Mandriva booting gets struck halfway to locate the deleted partion. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    fstab not any more in /etc/fstab


    I tried to delete a partition (/hdc12) to increase Mandriva /home partion (/hdc9) but I was only halfway sucessful, Now, Mandriva booting gets struck halfway to locate the deleted partion.

    I wish to remedy this by deleting the mention in /fstab
    the problem is:
    in midnight commander, I cannot locate /fstab in /etc/fstab..
    I cannot therefore boot into Mandriva 2008..
    How can I locate /fstab to delete mention of the no longer lasting partion.

    cat /fstab echoes valid results
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Boot up from any LiveCD and mount / ( root) partition Or boot up in Rescue mode. Delete /dev/hdc12 mount line from /etc/fstab.
    Code:
    nano /etc/fstab
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    How to locate /fstab is my problem

    Its what I plan to do but there's no /fstab in /etc..

    How to locate /fstab..

    it exists as cat /fstab proves it..

    I am offered [FileSystem Repair]# promt when the boot fails..
    then I can do:

    cat /fstab
    and
    mc (midnight commander)

    By the while searching older threads for /fstab.. A mexican was all praise for INDIANS --- thanks to you DC..
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    How to locate /fstab is my problem

    Its what I plan to do but there's no /fstab in /etc..

    How to locate /fstab..

    it exists as cat /fstab proves it..

    I am offered [FileSystem Repair]# promt when the boot fails..
    then I can do:

    cat /fstab
    and
    mc (midnight commander)

    By the way, while searching older threads for /fstab.. A mexican was all praise for INDIANS --- thanks to you DC..
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  6. #5
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191
    Code:
    updatedb && slocate fstab

    If it isn't anywhere to be seen you can always just make a new one. Copy one from a live cd then make adjustments if you want a template.
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Have you tried any LiveCD?

    Post the output of fdisk -l command and details about each partition, if possible.
    We will create new /etc/fstab file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #7
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171

    noob mistake

    I was looking for /fstab in MC under /etc but I had to look for fstab instead..
    I edited fstab

    Challenge beaten to half:-
    I now can reach login screen of mandriva but putting in username and password (for default desktop KDE).. the circling around mouse arrow loops on and on and on..
    I tried other desktops-- ICEWM, I am logged in but my every maneuvre echoes a warning No Suffiecient rights. If I su in console, it says wrong password.

    Can this possilbly have a relation to moving /usr (I am not sure but I may have very well deleted /usr in this process)
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  9. #8
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191
    If I su in console, it says wrong password.
    As your normal user execute "groups"

    If the group "wheel" doesn't show up then your user won't be able to su to root.

    gpasswd -a <user> wheel

    If wheel was in your user's groups, then I would ask this question: If you exit your x session and just go to a terminal, can you log in as root from there?
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

  10. #9
    Linux Newbie dr_smit's Avatar
    Join Date
    Dec 2006
    Location
    Raipur
    Posts
    171
    Quote Originally Posted by sdimhoff View Post
    As your normal user execute "groups"

    If the group "wheel" doesn't show up then your user won't be able to su to root.

    gpasswd -a <user> wheel
    I could not follow this.


    I can login as root if I do console login; but I can not login as root (su) in a terminal opened in ICEWM, it returns - Wrong Password
    dr_smit
    Registered Linux User # 442381
    You get life once....... If you live right, once is enough!
    Mandriva 2008, CentOS 5, Sabalyon..

  11. #10
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191
    Sorry if I was unclear.
    1.) Log in as your non-root user from the terminal (without x running)
    2.) Give the following command:
    groups

    Here is the output of mine:
    $ groups
    wheel audio cdrom video games usb users scanner

    You will notice that wheel is one of these groups. Being in the "wheel" group allows my normal user to "su root". If my normal user was not in the wheel group then I wouldn't be able to. It was just a thought.

    To add yourself to the "wheel" group you would give this command:

    gpasswd <username> wheel

    If your user is already in the wheel group then there is something else amiss, but this was the only thing I could think of. At that point hopefully devils_casper will have an idea.
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •