"cannot lock media/.hal-mtab"
# mkdir /media
# touch /media/.hal-mtab
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
"cannot lock media/.hal-mtab"
# mkdir /media
# touch /media/.hal-mtab
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.
Thanks Archangel for reminding me of the obvious. The help and man commands. And google.