Instld NTFS support to use a portableHD and BIG PROBLEM!

Discussion in 'Linux' started by darkgaze, Nov 23, 2008.

  1. darkgaze

    darkgaze

    Joined:
    Sep 23, 2008
    Messages:
    11
    Likes Received:
    0
    Hi there, people. Sorry about the short and "morse"-like title.


    i just installed NTFS-3G driver, for ntfs support (maybe i should have installed other one... softer, or whatever), to read my portable hard drive with all my music and films.

    Then i restarted and now linux doesn´t start at all. It keeps restarting once and once again...
    some friend used "esc" to see the message, and he says everything is working but... we can´t enter, some problem is going on.

    I DON´T want to recover. I want just to fix what i did. I changed everything on my AA1...
    i wanted to use a live-linux distribution with my USB pen drive, to save all my data, and after that, make trials or whatever. But keeping that stuff safe first!!

    Do you know any solution for this? I´m just quite a noob in linux, so if i get to enter linux with recovery mode or whatever its name is... i DON´T KNOW WHAT I SHOULD DO!. That´s the big problem. ... i mean, after getting all my things. I mean, recovering what i did.



    Thanks a LOT.
     
    darkgaze, Nov 23, 2008
    #1
  2. darkgaze

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    1. Boot from a live USB stick
    2. Open a terminal window
    3. sudo chroot /dev/sda1 (replace sda1 with whatever the system think your Linpus SSD/HDD is)
    4. rpm -e ntgs-3g
    Reboot into your Linpus system and all should be as it was
     
    RockDoctor, Nov 24, 2008
    #2
  3. darkgaze

    darkgaze

    Joined:
    Sep 23, 2008
    Messages:
    11
    Likes Received:
    0
    Hi there! thanks for the great answer. Now i see how to do it.. yes.


    Firstly, when i change root:
    bash: /dev/null : Permission denied
    several times.

    After that it is suposed to change. It works, i think. When i go to /, then home, it gives the user, not the knoppix user... i think that´s ok.
    When i do rpm -e ntfs-3g (you misspelled it, its with an f) but it gives:

    error: can't create transaction lock on /var/lib/rpm/__db.000


    ... what the....
    i´m using a knoppix live usb. For more information.
     
    darkgaze, Nov 25, 2008
    #3
  4. darkgaze

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    I haven't used Knoppix in a long, long time; the sudo chroot command seems to work as I expect it to going from Ubuntu to Fedora. Maybe the step-wise version here will work- I've tried to document the intended effect at each step:
    1. As the Knoppix user:
    Code:
    sudo su - 
    This should make you the root user and give you root's environment
    2.
    Code:
     chroot /mnt/sda1
    Should make you the root user on your Linpus device (assuming it's mounted at /mnt/sda1; if not substitute the proper mountpoint. If it's not mounted at all, go back and mount it before doing this step.
    3.
    Code:
    whoami
    Should tell you you're root.
    4. I typically see
    if I try to run rpm as an ordinary user.
    Code:
    sudo rpm -e ntfs-3g
    should take care of that.
     
    RockDoctor, Nov 25, 2008
    #4
  5. darkgaze

    darkgaze

    Joined:
    Sep 23, 2008
    Messages:
    11
    Likes Received:
    0
    Thanks! ...

    i see...

    I have a little problem: i used
    chroot /media/hdc1/
    i thought that was the one... maybe that´s a bad address...


    I'll try it later. Thanks a lot.

    (What's the difference between... sudo su, and sudo su - ??)
     
    darkgaze, Nov 25, 2008
    #5
  6. darkgaze

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    /media/hdc1 should be replaced (if necessary) by wherever you've mounted the Linpus partition
    sudo su preserves the user's environment (default directories and other environmental variables); sudo su - uses root's environment. The user's environment and root's environment are typically different. Sometimes it matters, sometimes it doesn't
     
    RockDoctor, Nov 25, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.