LinHES Forums http://forums.linhes.org/ |
|
removable usb drive mount points http://forums.linhes.org/viewtopic.php?f=5&t=9613 |
Page 1 of 1 |
Author: | iscraigh [ Thu Apr 13, 2006 9:09 pm ] |
Post subject: | removable usb drive mount points |
I would like to use my USB drive to store the /myth/video /myth/music /myth/gallery folders. What is the best way to do this? What kind of fstab entrys would I make? or is there a better way? Craig |
Author: | spalVl [ Fri Apr 14, 2006 5:35 am ] |
Post subject: | |
There is a bunch of refrences on how to do this. I did it the manual way but the various scripts TJC and Cecil have posted work too. Quote: My USB drive is /dev/sda1 (obtained though dmesg)
/etc/auto.master append line... --------------- /mnt/usb /etc/auto.usb.mnt --timeout=2 /etc/auto.usb.mnt append line... ----------------- sda1 -fstype=vfat,uid=1002,gid=1002,umask=002,noatime :/dev/sda1 Then I create a symlink to usb drive in video storage location ln -s /mnt/usb/sda1 /myth/video/sda1 Also may want to configure a little cache to Mplayer's config to help with playing videos. echo cache=2048 >> /home/mythtv/.mplayer/config Weird thing is when mounting the drive though autofs ls command shows /mnt/usb as empty. But I can cd into /mnt/usb/sda1 and the symlink command works fine. Refrences: http://www.knoppmythwiki.org/index.php? ... orageHowto http://mysettopbox.tv/phpBB2/viewtopic. ... highlight= |
Author: | thornsoft [ Fri Apr 14, 2006 8:13 am ] |
Post subject: | Re: removable usb drive mount points |
iscraigh wrote: or is there a better way?
Don't overlook the possibility of having it both ways. For example, you could mount the USB drive as a sub-dir of any of these. That way you could have: /myth/gallery -- stuff that's actually local, IN that directory /myth/gallery/usb -- stuff on the USB /myth/gallery/xpbox -- stuff on another box, mounted via SMB Now when you browse into the gallery, you'll see all of it. |
Author: | iscraigh [ Fri Apr 14, 2006 10:08 am ] |
Post subject: | |
still not having any luck. I am able to fdisk and see that the drive is /dev/sda I made a partition 200GB as /dev/sda1 formatted it as ext3 have run the scripts followed a few posts but am having no luck using the drive. this line in the /etc/auto.usb concerns me sda1 -fstype=vfat,uid=1002,gid=1002,umask=002,noatime :/dev/sda1 It specifies vfat so I changed it to ext3 because that is what i have formatted the drive as. sda -fstype=ext3,uid=1002,gid=1002,umask=002,noatime :/dev/sda1 Is that incorrect? cannot cd to it under /mnt/usb or /mnt/usb/sda1 Thanks for the suggestions. Craig |
Author: | tjc [ Fri Apr 14, 2006 10:18 am ] |
Post subject: | |
Remember that those directions/scripts were originally written for "portable" USB devices with a VFAT filesysytem on them like a USB key or a drive that you could plug into a MS-Windows box. You need to change the filesystem type in /etc/auto.usb if you formatted the drive differently. You should probably also be removing the UID/GID settings. Finally, you need to be looking in the system log files for diagnostic information if this isn't working for some reason. The messages there are your best resource for debugging issues like this. |
Author: | iscraigh [ Fri Apr 14, 2006 10:45 am ] |
Post subject: | |
Dis as you suggested the auto.usb now reads # Format of file: # mountpoint options device #sda -fstype=vfat,uid=1002,gid=1002,umask=002,noatime :/dev/sda1 sda -fstype=ext3,umask=002,umask=002,noatime :/dev/sda1 #sdb -fstype=vfat,uid=1002,gid=1002,umask=002,noatime :/dev/sdb1 #sdc -fstype=vfat,uid=1002,gid=1002,umask=002,noatime :/dev/sdc1 #sdd -fstype=vfat,uid=1002,gid=1002,umask=002,noatime :/dev/sdd1 I looked at the syslog and this is what happens when I plug in the drive Apr 14 09:29:01 mythtv kernel: usb 3-2: new high speed USB device using ehci_hcd and address 3 Apr 14 09:29:01 mythtv kernel: scsi0 : SCSI emulation for USB Mass Storage devices Apr 14 09:29:01 mythtv kernel: usb-storage: device found at 3 Apr 14 09:29:01 mythtv kernel: usb-storage: waiting for device to settle before scanning Apr 14 09:29:02 mythtv usb.agent[5027]: usb-storage: already loaded Apr 14 09:29:07 mythtv scsi.agent[5079]: disk at /devices/pci0000:00/0000:00:02.2/usb3/3-2/3-2:1.0/host0/target0:0:0/0:0:0:0 Apr 14 09:29:07 mythtv kernel: Vendor: ST325082 Model: 4A Rev: 3.AA Apr 14 09:29:07 mythtv kernel: Type: Direct-Access ANSI SCSI revision: 00 Apr 14 09:29:07 mythtv kernel: SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB) Apr 14 09:29:07 mythtv kernel: sda: assuming drive cache: write through Apr 14 09:29:07 mythtv kernel: SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB) Apr 14 09:29:07 mythtv kernel: sda: assuming drive cache: write through Apr 14 09:29:07 mythtv kernel: sda: sda1 Apr 14 09:29:07 mythtv kernel: sd 0:0:0:0: Attached scsi disk sda Apr 14 09:29:07 mythtv kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Apr 14 09:29:07 mythtv kernel: usb-storage: device scan complete Apr 14 09:30:14 mythtv ntpd[4692]: synchronized to 192.83.249.31, stratum 2 Apr 14 09:30:14 mythtv ntpd[4692]: time reset -0.508062 s Apr 14 09:30:14 mythtv ntpd[4692]: kernel time sync disabled 0041 Apr 14 09:31:37 mythtv automount[5123]: failed to mount /var/autofs/usb/sdc Apr 14 09:34:31 mythtv ntpd[4692]: synchronized to 192.83.249.31, stratum 2 Apr 14 09:35:01 mythtv /USR/SBIN/CRON[5128]: (root) CMD (nice -n 19 /tv/mythlink.sh) Apr 14 09:35:37 mythtv ntpd[4692]: kernel time sync enabled 0001 the only thing i see is the message about failing to mount sdc I am not sure why it is trying to mount sdc instead of sda under mount there is no link for sda just sdc not sure how to correct this or why the scripts are not putting a link in there. will keep playing around any help apppreciated. Thanks Craig |
Author: | tjc [ Fri Apr 14, 2006 10:51 am ] |
Post subject: | |
Try unmounting all your "sd[a-f]" devices then replugging. You dodn't have a SATA drive or something else which is already being seen as "sda" do you? Oh, and after changing those files you need to restart the auto mounter like the script does. |
Author: | iscraigh [ Fri Apr 14, 2006 11:08 am ] |
Post subject: | |
no other drives just one ide hardrive and a cdrom. when I unmount any sd drive I get an error except for with /dev/sda1 Craig |
Author: | iscraigh [ Fri Apr 14, 2006 1:07 pm ] |
Post subject: | |
ok it appears it was me leaving the umask line in seems to work now Craig |
Author: | Gibble [ Fri Oct 05, 2007 9:40 am ] |
Post subject: | |
I actually want to do this exact same thing...so, really, ignore this post, it's more so I can find this thread later ![]() |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |