automount interview questions
Top automount frequently asked interview questions
I just noticed that if a insert a CD or a DVD of any kind, the Drive will start spinning but it will not show the mounted disc. Earlier it used to ask me what to do with the media inserted. Now it doesn't even do that. I ran the following commands in terminal:
$ eject -n
eject: device is `/dev/sr0'
$ sudo mount -o ro,unhide,uid=1000 /dev/cdrom /mnt/cdrom
mount: mount point /mnt/cdrom does not exist
What can I do to get the functionality back on my drive? I am running Ubuntu 11.10.
Updates
thanks Waltinator: I ran the 'dmesg' but don't know what I'm looking for. Im a newbie on this. The same thing with the 'ls -rlt /var/log' command. Should I create the directory for the mount? at this point really don't know what to do. – Cisco Sán 7 hours ago
After I successfully inserted a CD, following are the first 3 lines of dmesg
command:
$ dmesg
[ 4804.416018] wlan0: no IPv6 routers present
[ 8214.125450] ISdit ISO 9660 Extensions: Microsoft Joliet Level 3
[ 8214.136556] ISO 9660 Extensions: RRIP_1991A
Reply by Waltinator:
The first line is a previous event, my wireless going online. The next 2 lines are a good result. The number in square brackets is "seconds since boot", the rest of the line is usually helpful. And no, you should NOT create the mount point. Let's try to get the automatic mounting to work. – waltinator
These are my last 3 lines of dmesg
:
[ 18.130819] init: plymouth-stop pre-start process (1396) terminated with status 1
[ 28.780011] wlan0: no IPv6 routers present
[ 505.632119] CE: hpet increased min_delta_ns to 20113 nsec
Reply by waltinator:
It looks like your CD/DVD drive is not connected to the data bus, and not causing an interrupt when you insert a platter. Try dmesg | grep -A8 CD-ROM
which should show you what the system thought was available when it came up. – waltinator
This is my terminal output:
$ dmesg | grep -A8 CD-ROM
[0.774351] scsi 0:0:0:0: CD-ROM HL-DT-ST DVD+-RW GSA-T40N A100 PQ: 0 ANSI: 5
[0.778117] sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[0.778122] cdrom: Uniform CD-ROM driver Revision: 3.20
[0.778282] sr 0:0:0:0: Attached scsi CD-ROM sr0
[0.778340] sr 0:0:0:0: Attached scsi generic sg0 type 5
[0.780416] Freeing unused kernel memory: 984k freed
[0.780732] Write protecting the kernel read-only data: 10240k
[0.780986] Freeing unused kernel memory: 20k freed
[0.786331] Freeing unused kernel memory: 1400k freed
[0.804912] udevd[90]: starting version 173
[0.874178] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[0.874208] r8169 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Reply by waltinator:
OK, your system sees the drive. Can you open and close the tray with eject
and eject -t
? Run udevadm monitor
while you insert a CD (type ^C when done) and see if you get "change" and "add" messages. – waltinator
eject
works perfectly; eject -t
does nothing.
$ udevadm monitor
KERNEL[13771.009267] change /devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/block/sr0 (block)
UDEV [13773.878887] change /devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0 /block/sr0 (block)
Terminal output of sudo hwinfo --cdrom
:
$ sudo hwinfo --cdrom
hal.1: read hal dataprocess 2753: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file ../../dbus/dbus-errors.c line 280.
This is normally a bug in some application using the D-Bus library.
libhal.c 3483 : Error unsubscribing to signals, error=The name org.freedesktop.Hal was not provided by any .service files
22: SCSI 00.0: 10602 CD-ROM (DVD)
[Created at block.247]
Unique ID: KD9E.JgkxTS4hgl2
Parent ID: 3p2J.gdUMCD83e+E
SysFS ID: /class/block/sr0
SysFS BusID: 0:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0
Hardware Class: cdrom
Model: "HL-DT-ST DVD+-RW GSA-T40N"
Vendor: "HL-DT-ST"
Device: "DVD+-RW GSA-T40N"
Revision: "A100"
Driver: "ata_piix", "sr"
Driver Modules: "ata_piix"
Device File: /dev/sr0 (/dev/sg0)
Device Files: /dev/sr0, /dev/scd0, /dev/disk/by-id/ata-HL-DT-ST_DVD+_-RW_GSA-T40N_K048BJ74257, /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0, /dev/cdrom, /dev/cdrw, /dev/dvd, /dev/dvdrw
Device Number: block 11:0 (char 21:0)
Features: DVD
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #17 (IDE interface)
Drive Speed: 31
Volume ID: "Movie"
Publisher: "INTERVIDEO"
Creation date: "20050424162207000"
Source: (StackOverflow)
I am using Ubuntu 11.10 (64 bits) and I do not want to mount automatically USB thumb drives in my system. I tried the command dconf-editor and gconf-editor but there isn't the icon to disable it in nautilus preferences (apps|nautilus|preferences|media_automount).
Thanks.
Source: (StackOverflow)
My Dropbox folder is on another partition on my harddrive and Dropbox loads on start up. But since the separate partition has't been opened yet, Dropbox complains that my Dropbox folder is missing. So Ihave to close Dropbox, make sure my separate partition is mounted, then load Dropbox again.
Is there a way to auto-mount my drive before Dropbox loads on startup?
Source: (StackOverflow)
Every time I plug a USB stick in, nautilus opens a new window with the contents of the drive. I would like to disable this auto-opening of the nautilus window, but I would like the actual auto-mount to keep working. Is this possible?
Source: (StackOverflow)
I have two NTFS partitions, and I don't want to mount them everytime I start Ubuntu.
- How can I do this?
- Is there a tool or a code to use?
- If so, is it safe to automount? specially when they are being used by another OS?
Source: (StackOverflow)
I've got Ubuntu 13.10 installed in Virtualbox 4.3. The host machine is Windows.
I have a couple of Virtualbox shared folders being mounted by /etc/fstab. Until recently this setup worked just fine, but after upgrading from Ubuntu 13.04 and Virtualbox 4.2 (at essentially the same time) the fstab mounting stopped working. I get the following error during boot:
An error occurred while mounting /home/benme/Documents.
keys:Press S to skip mounting or M for manual recovery
Pressing M for manual recovery and then trying to mount manually also fails:
root@benme-vb:~# cd /home/benme
root@benme-vb:/home/benme# mount Documents
/sbin/mount.vboxsf: mounting failed with the error: No such device
But if I instead skip mounting during boot, wait for Unity to start and then mount manually in a shell, everything works fine:
benme-vb ~ % ls Documents
benme-vb ~ % sudo mount Documents
[sudo] password for benme:
benme-vb ~ % ls Documents
# actual file list omitted
Note that when I mount manually I'm letting mount take all the options from /etc/fstab, and it works. This suggests to me that it's some sort of timing issue, where Virtualbox isn't "ready" to provide the shared file mounts at the point /etc/fstab mounts are run during bootup.
Here's the fstab line, just for completeness:
Documents /home/benme/Documents vboxsf uid=benme,gid=benme,dmode=774,fmode=664 0 0
Is there something I can do about this from the Ubuntu side? Or does anyone happen to know more about this from the Virtualbox angle?
I've found an old report on the Virtualbox bug-tracker with identical symptoms, but in that case the user had updated Virtualbox without updating their guest additions and resolving that fixed the problem; this isn't happening here, I've definitely got the 4.3 guest additions installed.
Source: (StackOverflow)
I use Ubuntu 11.10 and Windows7 dual boot with Ubuntu as my primary OS.
Every time I need to access a document I need to mount the respective drive, though this is not at all tiresome, still, is there any way that drives becomes automatically mounted when I login?
Source: (StackOverflow)
I recently upgraded from Mint 12 to Ubuntu 12.10 + Cinnamon. I have an external usb drive that when I plug it in, automatically mounts to /media/[username]/Backup/
. Thing is, under Mint, it didn't include the [username] portion. It just mounted to /media/Backup
. My question is, how do I switch back to that format? I don't need the drive mounted under my username. Just under media.
Thanks in advance.
Source: (StackOverflow)
I read recently that someone demonstrated a security attack on a PC via the use of automount and a USB stick.
How vulnerable am I to this attack and what steps are developers doing to be proactive against this sort of thing?
Source: (StackOverflow)
How do you make HDDs and partitions mount at startup with the ubuntu system?
I always keep my media and data files on separate partitions - one 2tb HDD and a 400 odd gig partition. I have been trying to swap the default folder location for the home directory to my other drives.
It works when I change the /home/user_name/.config/user-dirs.dirs
file to the directories I want, but only until I reboot the system. I am only assuming that the drives not mounting is the problem with it, but it would be helpful either way. If any one knows another reason for why the directories change back to default each time that would be good also.
Source: (StackOverflow)
After a nasty episode (my second, you'd think I'd learn) caused by unsupervised automated podcast downloads filling my entire partition, I've finally moved just ~/Music
to its own partition. The partition I'm using was already formatted NTFS (this is the genius part: when I got this computer three years ago, I actually set it up with a 20G music partition precisely because I'd had this problem before, but I never actually organized myself to store music on it. So that's my backstory. Here's what I need now:
I have two partitions that I want to start mounting on startup:
/dev/sda3 /mnt/devel ext4 defaults 0 2
/dev/sda2 /mnt/excess ntfs defaults 0 2
The ext4 partion mounts fine (owned by me, writeable only by me), but the ntfs mounts owned by root with read and write permission for all. I'm not sure how to fix this. Is there something quirky about ntfs or did I do something elsewhere that's causing this problem?
drwxr-xr-x 7 amanda amanda 4096 2012-03-14 19:07 devel
drwxrwxrwx 1 root root 4096 2012-03-14 22:38 excess
Source: (StackOverflow)
I have a dual boot Windows 7, Ubuntu 11.10 system.
Ubuntu was pretty much a vanilla installation and it was able to automount my two Win partitions.
I used to see them in Nautilus. To recover this problem I manipulated the /etc/fstab
which is operated under roots and that I am not able to unmount from Nautilus as Admin (unless I sudo from terminal)
How can I restore the original behavior (from my admin non-root account)?
Thank you
Source: (StackOverflow)
On Ubuntu 12.10, when I want to mount a hard drive, I can just click on the unmounted drive and everything works fine (by mounting to /media/username/partitionlabel
).
Basically, I would like to do exactly that via command line (for a script I'm working on).
Since I do not want to automount on boot, fstab is out of the question (right?).
When I use mount on CLI, I need to specify a mountpoint (which needs to have a previously created mountpoint; also, I need to take care of permissions and whatnot) -- what I don't understand is where does the GUI take all its infos from? The mountpoint seems to depend on the partition's label, but such a directory doesn't exist before mounting. Also, the GUI way doesn't seem to care too much about a user not being root.
Is there an "easy" way to mount via CLI, just like it does on the GUI by clicking on an unmounted drive?
Source: (StackOverflow)
I want to stop a USB device from automounting in Ubuntu 13.04. For example, when I connect my iPhone 5 to my desktop I am consistently prompted for what I want to do (whether or not I want to erase the "iPod" connected to my machine, etc). Since I don't use the computer as anything more than a way to charge the device, is there a way to prevent the device from mounting and still allow the device to draw current from the machine?
Source: (StackOverflow)