#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    38
    Rep Power
    6

    Issue with nano editing grub.conf though commandline


    Hi all,

    I have to edit the grub.conf as there was a issue in running in virtual box, so i went to edit the /boot/grub/grub.conf file ( centos )
    and run

    Code:
    nano /boot/grub/grub.conf
    though the commandline and edited the bit i needed save it and rebooted and it coming up

    Code:
    error 11: unrecognized device string
    so luckly i backed up the grub.conf and reloaded that and it was back to normal . I tried this a few times just in case i did something wrong and everytime i do this the same result happens. So instead of running it though commandline i used

    Code:
    gedit /boot/grub/grub.conf
    gedit pops up and i edit it and there no error even though it was the same tags i enter though nano


    Any ideas what the problem could be? white spaces or something maybe?

    Many thanks
    Last edited by amd64; October 12th, 2010 at 06:59 AM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    38
    Rep Power
    6
    Anyone??
  4. #3
  5. kill 9, $$;
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2001
    Location
    Shanghai, An tSín
    Posts
    6,897
    Rep Power
    3886
    It'd be worth running a "diff" on the two versions of the file: the one edited with nano and the one edited with gedit. That may shed some light on it.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    38
    Rep Power
    6
    Thanks for that , i'll give it a go
  8. #5
  9. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,424
    Rep Power
    4539
    Also as a guess, maybe there is some setting that is putting Microsoft-style line breaks in your edited file. But I'm not a nano user.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain

IMN logo majestic logo threadwatch logo seochat tools logo