Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: How to use CD

  1. #1
    Join Date
    Apr 2008
    Beans
    11

    Question How to use CD

    Hello,
    I'm new to Linux and I'm trying to navigate in terminal. I have a second drive hooked to my system. I can use the CD command to navigate around my boot drive but I can't figure out how to get to the second drive. I can see it is mounted on my desktop. And how can I use dir to list all the devices/mount points?

  2. #2
    Join Date
    Jun 2007
    Location
    England
    Beans
    760
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to use CD

    use this to list all mounted drives:
    Code:
    mount
    then you would get the mount point for the drive you wanted eg. /media/my_files
    Code:
    cd /media/my_files
    hope that helps,
    dje

  3. #3
    Join Date
    May 2008
    Location
    /home/fxtrem
    Beans
    11
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to use CD

    List your devices, where they are mounted, etc.(mounted devices*):
    Code:
    df -h
    To navigate on the terminal on your device:
    Code:
    cd /media/<device>
    Last edited by fxtrem; July 28th, 2008 at 04:33 PM.

  4. #4
    Join Date
    Apr 2008
    Beans
    11

    Re: How to use CD

    thanks, big help. so now I have navigated to it but it says permission denied. can I unlock the permissions in terminal?

  5. #5
    Join Date
    May 2008
    Location
    /home/fxtrem
    Beans
    11
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to use CD

    Quote Originally Posted by byteguy View Post
    thanks, big help. so now I have navigated to it but it says permission denied. can I unlock the permissions in terminal?
    I didn't have this problem, can you navigate in the device as superuser?

  6. #6
    Join Date
    Apr 2008
    Beans
    11

    Re: How to use CD

    I typed sudo $ first. I guess that makes me a superuser.. The permission tab in properties shows the owner as root. I can't login as root. could that be the problem. Also, the drive I am trying to access is a clients drive so there may be security features set. Client doesn't know either as a company set up the system for them. The only directory in their main folder is a lost+found dir. I am hoping all of their files are in their but i can't access it. It's probably simple but I'm just too new to Linux terminal commands. The book I have is hard to extract info from.

  7. #7
    Join Date
    May 2008
    Location
    /home/fxtrem
    Beans
    11
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to use CD

    Quote Originally Posted by byteguy View Post
    (...) I can't login as root (...)
    Try:
    Code:
    sudo -i
    Note:
    I've edited my first post with a better way to list devices (df -h)
    Last edited by fxtrem; July 28th, 2008 at 04:40 PM.

  8. #8
    Join Date
    Apr 2008
    Beans
    11

    Re: How to use CD

    OK, gettin closer. Before it said permission denied. Now it will go to that lost+foind directory but instead if just listing lost+found, it lists it as lost+found#. How can I run the equivalent of "chkdsk" on the volume first to fix any possible problems?

  9. #9
    Join Date
    May 2008
    Location
    /home/fxtrem
    Beans
    11
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to use CD

    Try this:
    Code:
    fsck -p -v <device>
    Note:
    Don't use this on a mounted device.

  10. #10
    Join Date
    Apr 2008
    Beans
    11

    Re: How to use CD

    so the command would be "fsck -p -v <sdb2>"

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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