| Set XBMC to Automount Drives |
| Written by Josh Lyon | |||||||||||||||||||||||
| Wednesday, 30 June 2010 20:19 | |||||||||||||||||||||||
|
Whenever I install XBMC, one of the first settings I change is I enable auto mounting of drives. It's a relatively simple change, but requires you modify a file on the filesystem. For Ubuntu Lucid 10.04: I've noticed that it's not necessary to manually remove the nodiskmount option on 10.04 (grub2). The modifications that I used to make in /boot/grub/menu.lst on Ubuntu Karmic, I now have to make in /etc/default/grub on Ubuntu Lucid.. When I removed the nodiskmount on Ubuntu Lucid I started having some issues with the disks being mounted in odd ways (eg. my NTFS drive being mounted directly to /media). What I found is that instead of removing nodiskmount, if I just properly labeled my partitions, they would automatically show up properly -- you can label your partitions using the e2label command. As I noted in the comments below, you may still need to remove nodiskmount in Ubuntu Lucid to get your eSATA drive to mount (especially true for people who followed my Revo 1600 guide). What I found is that because the internal drive on the Revo 1600 is NTFS, it will cause the weird issues I mentioned above. If you happen to fall into this case, I would highly recommend you check out my article on Drives Being Mounted with Odd IDs. The article explains how to find the unique identifier (UUID) for your drive and manually create an FSTAB entry to mount your drive with your specifications each time the system loads. Now that I've wrapped my head around how FSTAB works, I prefer to use this method as it lets me set my own unique name, path, and other settings for how the drive is mounted. However, if you'd still like to modify the grub parameters for other reasons, I've included the details below... Open the file /etc/default/grub: sudo nano /etc/default/grub Find the line for loading your system (usually starts with GRUB_CMDLINE_LINUXDEFAULT) and make sure it's not the commented out line that often comes default at the top of the file. Modify this line so it no longer has the nodiskmount option in it. Save the file and close it. Ctrl+O, Enter, Ctrl+X. Run the following line to update grub and then reboot: sudo update-grub sudo reboot For Ubuntu Karmic: If you are still booting from the XBMC-Live 9.11 Camelot USB stick directly, this will be in the syslinux.cfg file. If you have installed XBMC to disk, this is in the /boot/grub/menu.lst file.
Bookmark
Email This
Hits: 2379 Comments (7)
![]()
NotShorty
said:
|
|
Automount MULTIPLE drives? Hi! Stumbled across your blog and I was hoping you may have some advice with the following problem since I can't find a solution elsewhere. I'm unable to automount more than 1 internal hard drive with the latest build of XBMCFreak Live 10.08 (worked fine on all previous builds). Removed nodiskmount anywhere it appeared in ootgrubgrub.cfg and syslinux.cfg Mounts my IDE drive fine, but my 2 SATA drives aren't being mounted. Am I missing something? If I go to "System info - Storage information" I can see /media 931.5 GiB (1TB SATA) /media 0.1 GiB (system reserved space?) /media 298.0 GiB (320GB SATA) /media 232.9 GiB (250GB IDE) /live/image 3.5 GiB (4GB USB, used for XBMCFreak boot disk) But as you can see, all the HDDs appear to be mapped to the /media directory (unlike /media/sda, /media/sdb, etc. in previous builds), and if I navigate to that directory from the file browser, I can only view the contents of the IDE drive. Thanks in advance for any help! |
|
XDoKToR
said:
|
Thanks for the great help Josh Hey Josh, really appreciate the the help you have posted re: XBMC on Linux This post enabled me to finally get my Windows 7 NTFS Partion used for 'storage only' now accessable in XBMC on Lucid 10.08 Ubuntu older posts have guides to edit menu.lst which i did not seem to find? I edited the /etc/default/grub file as you instructed and worked a dream! cheers mate Andrew |
|
Anton
said:
|
Opposite problem: Disable XBMC to Automount Drives Surfing across I've found your post. I hope you'll be so kind and help with the opposite case. The thing is that I want to disable automount since I've every thing mounted with fstab, but XBMC constantly mount my external drive and add it as a video source. I have my sources set up, but the drive appears on top of the list and makes me nerves How can I get rid of that? Thank you in advance. I've got 10.04 and latest XBMC from svn |
|
Anton
said:
|
... Yep. I've got "nodiskmount" and the disk has a label. However it still appears to be auto-sourced by xbmc |
|
sean.waches
said:
|
replica watches chopard watches replicas I like your theory. It explains a lot about Holmes/Watson too (both old and new), which, while not incest, always has turn-century-homophobia giving it a charge. Even if the writer doesn't choose to deal with the question of transgression directly, there's always going to be a reason that H&W can't be open about their relationship. |
|
| < Prev | Next > |
|---|

