Find the answer to your Linux question:
Results 1 to 10 of 10
how do you mount an external hard drive in linux. when i put my usb in it picks it up in /media but doesnt pick up the external hard drive ...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    7

    mounting an external hard drive

    how do you mount an external hard drive in linux. when i put my usb in it picks it up in /media but doesnt pick up the external hard drive when its connected. would it be located at some other file path.

    P.S. only have access to command line

    thanks

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    plug-in External Drive and execute this
    Code:
    tail -s 3 -f /var/log/messages
    check if machine recognizes and assign device name to it.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    7
    Quote Originally Posted by devils_casper View Post
    plug-in External Drive and execute this
    Code:
    tail -s 3 -f /var/log/messages
    check if machine recognizes and assign device name to it.
    got back
    tail: cannot open '/var/log/messages' for reading: Permission denied
    tail: no files remaining

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    execute su before tail command to gain root privileges.
    Code:
    su
    tail -s 3 -f /var/log/messages
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    May 2007
    Posts
    7
    command worked
    what should i be looking for in the output messages

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    device name assigned to External disk.
    this is output in my machine
    May 24 01:23:13 devils-den kernel: SCSI device sda: 121856 512-byte
    May 24 01:23:13 devils-den kernel: sda: Write Protect is on
    devie name is sda. check the output of 'fdisk -l' command and note down partition numbers of new device and mount partitions.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    May 2007
    Posts
    7
    no sign of sda or anything else that might resemble it

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    May 2007
    Posts
    7
    outpu from fdisk -l is:

    /dev/hda1 *
    /dev/hda2
    /dev/hda3
    /dev/hda5
    /dev/hda6

    hda1 hpfs/ntfs
    hda2 linux plaintext
    hda3 W95 Ext'd (LBA)
    hda5 Linux swap / Solaris
    hda6 Linux

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    post the output of 'tail' command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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