Results 1 to 5 of 5

Thread: [FIX]cannot lock media/.hal-mtab Error

  1. #1
    Senior Member secure_it's Avatar
    Join Date
    Feb 2010
    Location
    在這兩者之間 BackTrack是4 FwdTrack4
    Posts
    854

    Post [FIX]cannot lock media/.hal-mtab Error

    if you are trying to attach mass storage device(USB) or DVD Drive or Windows Partition then it won't automount it and instead will return an error citing "cannot lock media/.hal-mtab" .while try to access the device.here is quick fix-

    make a directory mkdir /mnt/sdb1 #sdb1 is for Pen drive,change it with the desired partition like /hda or /sda1,/sda2 etc.

    mkdir /mnt/sr0 #for mounting DVD/CD Drive

    add the USB device/HDD Partition/DVD/CD entries to /etc/fstab
    for example if its sdb1 it should look like
    nano /etc/fstab
    /dev/sdb1 /mnt/sdb1 vfat auto,noatime,users,suid,dev,exec 0 0 #Autoupdate
    change vfat & /dev/sdb1 with the format e.g ntfs-3g etc & corresponding file system.

    Read my tutorial on Dual Boot BT4 with Windows and there I have mentioned how to mount different partitions including NTFS-3g,vfat etc.

    http://forums.remote-exploit.org/showthread.php?t=20140

  2. #2
    Junior Member
    Join Date
    Feb 2010
    Posts
    27

    Default

    "cannot lock media/.hal-mtab"

    # mkdir /media
    # touch /media/.hal-mtab

  3. #3
    Just burned his ISO
    Join Date
    Feb 2010
    Posts
    10

    Default what happens.

    Thanks for this. It did the job, and was simple. The thing is, I'd like to know what is happening when I do this 'touch /media/.hal-mtab'. How can I find out?

  4. #4
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by fergzcm View Post
    Thanks for this. It did the job, and was simple. The thing is, I'd like to know what is happening when I do this 'touch /media/.hal-mtab'. How can I find out?
    Yeah
    #man touch
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  5. #5
    Just burned his ISO
    Join Date
    Feb 2010
    Posts
    10

    Lightbulb thanks for the obvious.

    Thanks Archangel for reminding me of the obvious. The help and man commands. And google.

Posting Permissions

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