View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 10 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun May 22, 2005 5:37 am 
Offline
Joined: Fri May 06, 2005 6:31 am
Posts: 79
Location: Spain
Anyone know how to automatically mount an USB harddisk and how to make it writable ?

My harddrive is netdisk (ximeta)
and my partition is ntfs

edit /etc/fstab
/dev/sda1 /mnt/ximeta rw,user,noauto 0 0

edit /etc/auto.removable
ximeta -fstype=vfat,user,exec,uid=1002,gid=1002,umask=002 :/dev/sda1

edit /etc/auto.master
/var/autofs/removable /etc/auto.removable --timeout=2


But...I can't see my harddrive in /mnt/ximeta
============================================


I found a script (USBMOUNT) that could do that thing for me but when I try to dpkg -i the .deb, the system throw me an error. Here is the script : http://usbmount.alioth.debian.org/


root@mythtv:~# dpkg -i usbmount_0.0.11_all.deb
Selecting previously deselected package usbmount.
(Reading database ... 54575 files and directories currently installed.)
Unpacking usbmount (from usbmount_0.0.11_all.deb) ...
dpkg: dependency problems prevent configuration of usbmount:
usbmount depends on udev (>= 0.053-1); however:
Package udev is not installed.
dpkg: error processing usbmount (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
usbmount


Last edited by aspain on Fri Aug 19, 2005 9:54 am, edited 2 times in total.


Top
 Profile  
 
PostPosted: Sun May 22, 2005 3:18 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
aspain wrote:
root@mythtv:~# dpkg -i usbmount_0.0.11_all.deb
Selecting previously deselected package usbmount.
(Reading database ... 54575 files and directories currently installed.)
Unpacking usbmount (from usbmount_0.0.11_all.deb) ...
dpkg: dependency problems prevent configuration of usbmount:
usbmount depends on udev (>= 0.053-1); however:
Package udev is not installed.
dpkg: error processing usbmount (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
usbmount
Perhaps re-reading the reason for the failure might be helpful... Automount removable devices is something that is being worked on.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 22, 2005 4:25 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
Quote:
usbmount depends on udev (>= 0.053-1); however:
Package udev is not installed.


odd how the error messages will tell you what is wrong if you take the time to look at them.

perhaps try apt-get update apt-get install udev

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 6:19 am 
Offline
Joined: Fri May 06, 2005 6:31 am
Posts: 79
Location: Spain
Here is what I have done :


root@mythtv:~# apt-get update
Hit http://www.pcxperience.org unstable/ Packages
Ign http://www.pcxperience.org unstable/ Release
...
Get:18 http://ftp.us.debian.org unstable/non-free Sources [27.0kB]
Get:19 http://ftp.us.debian.org unstable/non-free Release [88B]
Fetched 5339kB in 2m35s (34.3kB/s)
Failed to fetch http://debian.tu-bs.de/knoppix/nx/slh-d ... ackages.gz 404 Not Found
Reading Package Lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.

root@mythtv:~# apt-get install udev
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
udev: Depends: hotplug (>= 0.0.20040329-17)
Depends: initscripts (>= 2.85-16) but it is not going to be installed
Depends: makedev (>= 2.3.1-77) but 2.3.1-75 is to be installed
W: Couldn't stat source package list http://debian.tu-bs.de ./ Packages (/var/lib/apt/lists/debian.tu-bs.de_knoppix_nx_slh-debian_._Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://debian.tu-bs.de ./ Packages (/var/lib/apt/lists/debian.tu-bs.de_knoppix_nx_slh-debian_._Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).[/list]Do you know how to correct this problem ?
I use R5A12


Last edited by aspain on Fri Aug 19, 2005 10:01 am, edited 5 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 11:28 am 
Offline
Joined: Thu May 05, 2005 8:30 am
Posts: 6
Even if you get that disk mounted, I believe NTFS is still read only under Linux. From what I have read, NTFS write support is very basic and in a very early form.

See this LINK for more details.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 28, 2005 4:10 pm 
Offline
Joined: Fri May 06, 2005 6:31 am
Posts: 79
Location: Spain
Ok


Last edited by aspain on Tue Jan 24, 2006 7:23 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 15, 2005 8:02 pm 
Offline
Joined: Sat Jun 25, 2005 4:37 am
Posts: 2
I just try to configure my usb hard drive to be mounted/unmounted automatically.

When I connect my usb drive to my pc, I receive this message :

Aug 15 17:03:09 mythtv kernel: usb 5-1: new high speed USB device using ehci_hcd and address 2
Aug 15 17:03:09 mythtv kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Aug 15 17:03:09 mythtv kernel: usb-storage: device found at 2
Aug 15 17:03:09 mythtv kernel: usb-storage: waiting for device to settle before scanning
Aug 15 17:03:11 mythtv usb.agent[9977]: usb-storage: already loaded
Aug 15 17:03:14 mythtv kernel: Vendor: WDC WD16 Model: 00BB-00FTA0 Rev: 15.0
Aug 15 17:03:14 mythtv kernel: Type: Direct-Access ANSI SCSI revision: 00
Aug 15 17:03:14 mythtv kernel: SCSI device sda: 312581809 512-byte hdwr sectors (160042 MB)
Aug 15 17:03:14 mythtv kernel: sda: assuming drive cache: write through
Aug 15 17:03:14 mythtv kernel: SCSI device sda: 312581809 512-byte hdwr sectors (160042 MB)
Aug 15 17:03:14 mythtv kernel: sda: assuming drive cache: write through
Aug 15 17:03:15 mythtv kernel: sda: sda1
Aug 15 17:03:15 mythtv kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Aug 15 17:03:15 mythtv kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
Aug 15 17:03:15 mythtv kernel: usb-storage: device scan complete
Aug 15 17:03:16 mythtv scsi.agent[10021]: disk at /devices/pci0000:00/0000:00:1e.0/0000:02:04.2/usb5/5-1/5-1:1.0/host0/target0:0:0/0:0:0:0


The system detect my hard drive but mount nothing



Should I do something like that ?

edit /etc/fstab
/dev/sda1 /mnt/ximeta rw,user,noauto 0 0

edit /etc/auto.removable
ximeta -fstype=vfat,user,exec,uid=1002,gid=1002,umask=002 :/dev/sda1

edit /etc/auto.master
/var/autofs/removable /etc/auto.removable --timeout=2


/etc/init.d/autofs restart


Top
 Profile  
 
PostPosted: Fri Jan 20, 2006 10:46 am 
Offline
Joined: Tue Aug 16, 2005 11:50 am
Posts: 181
Location: Douglasville, GA
Is this issue resolved yet? Cecil stated
Quote:
Automount removable devices is something that is being worked on.


Is this in place yet?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 11:54 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Works for CDs. I guess you have not been keeping up with the changelog. ;)

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 18, 2006 11:42 pm 
Offline
Joined: Sun Feb 19, 2006 1:09 pm
Posts: 29
Location: Munich, Germany
I ran into the very same problems and elaborated the following solution, which I do not claim to be perfect. But since it works, I am fine with it.
However, my situation is perhaps a little different, because I do not want to "dynamically" mount my USB hardware but I want to mount it at boot.

First, forget about usbmount, udev and the like. Installing them (or trying to) will throw a lot of unresolved dependencies. I stopped trying when apt-get told me not to remove mount-aes ... :shock:

My device is recognized as /dev/sda1 and I could mount it manually, but after adding it to /etc/fstab, a reboot results in magically "shifting" it to /dev/sdb1, so it is actually not mounted (and probably never will, using this approach). This might be due to the fact that mounting devices is done prior to starting hotplug being in charge of detecting USB devices.

I therefore ask my box to "manually" mount /dev/sda1 as part of the boot-scripts. That mount must occur quite late in the bootup sequence (at least AFTER hotplug being started), so I used a new "S99" entry in /etc/rc5.d and symlinked it to /etc/init.d/mountUSB.

/etc/init.d/mountUSB
Code:
#! /bin/sh
/bin/mount -t ext3 /dev/sda1 /mnt/usb/drive


in /etc/rc5.d:
Code:
 ln -s ../init.d/mountUSB S99mountUSBdevice


That worked for me...

_________________
KnoppMyth R5E50
3 x SkyStar2
1 x Pinnacle PCTV 400e USB
nVidia GeForce FX 5200 (MBE)
nVidia GeForce 7100 GS (FE)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu