LinHES Forums http://forums.linhes.org/ |
|
Mount USB disk? - Solved http://forums.linhes.org/viewtopic.php?f=6&t=18323 |
Page 1 of 1 |
Author: | DonLKSAB [ Tue May 20, 2008 8:28 am ] |
Post subject: | Mount USB disk? - Solved |
After lots and lots of tries and seaching the web and this forum i have to ask for help. I have a 750Gb NTFS dis that i would love to mount in /myth/usb I need it to automount everytime the machine boots up. Any ideas? From dmesg: SCSI device sda: 1465149168 512-byte hdwr sectors (750156 MB) sda: Write Protect is off sda: Mode Sense: 2d 08 00 00 sda: assuming drive cache: write through SCSI device sda: 1465149168 512-byte hdwr sectors (750156 MB) sda: Write Protect is off sda: Mode Sense: 2d 08 00 00 sda: assuming drive cache: write through sda: sda1 sd 0:0:0:0: Attached scsi disk sda usb-storage: device scan complete /DonLKSAB |
Author: | slowtolearn [ Tue May 20, 2008 10:25 am ] |
Post subject: | |
I have an EIDE drive formatted NTFS, and I use /etc/fstab to mount it at bootup on my Kubuntu box: Code: /dev/hdc1 /media/hdc1 ntfs defaults,umask=007,gid=46 0 1
(Adjust for your actual /dev and mountpoint) |
Author: | DonLKSAB [ Tue May 20, 2008 11:22 am ] |
Post subject: | |
Ok. I have this in my fstab: /dev/sda1 /myth/usb ntfs defaults,umask=007,gid=46 0 1 But still no disk mounted. |
Author: | novellahub [ Tue May 20, 2008 11:41 am ] |
Post subject: | |
Did you reboot or use the following command as root? Code: mount -a
Also, did you create a new directory in /myth/usb? |
Author: | DonLKSAB [ Tue May 20, 2008 12:04 pm ] |
Post subject: | |
Yes i reboot after every change i do. And yes /myth/usb exists. When i do a mount -a this comes up: root@mythtv:~# mount -a mount: sysfs already mounted or /sys busy Then the machine seems to "hang" it stops responding and i cant connect with another SSH. This is a qlue i guess. I tried to mount the disk with Webmin. But when i pressed mount webmin got stuck. Maybe i have a issue with the disk? It works fine on my Windows machine. |
Author: | cliffsjunk [ Tue May 20, 2008 12:09 pm ] |
Post subject: | |
Suggestions: First install ntfs-3g with: Code: sudo apt-get install ntfs-3g Next change the ntfs in your /etc/fstab to ntfs-3g and make sure that this line comes after the one that mounts /myth. Just putting your /myth/usb line at the end of /etc/fstab will work. This is necessary because you are actually doing a nested mount and thus /myth must be mounted before /myth/usb. I would also change the trailing 1 on your new fstab line to a 2. Next make a directory called /myth/usb with: Code: sudo -u mythtv mkdir /myth/usb The a+rw is an attempt to givesudo chmod a+rw /myth/usb sudo chmod a-x /myth/usb everyone access to this directory. The a-x is an attempt to disallow execution of anything stored there. If you are actually want to execute stuff from /myth/usb then don't do that last chmod. Finally reboot and see if it mounts and if you can access it like you need to. If it mounts, but you have access denied problems, you may play with this. I have this mount line for a fat32 partition that I want to be able to access as the mythtv user: Quote: /dev/hdd1 /myth/hdd1 auto users,noexec,uid=mythtv,gid=mythtv,umask=0 0 3 You would have to change the auto to ntfs-3g, the device, andthe mount point for what you want. Finally, man is your friend, try: Code: man fstab The ntfs-3g is something that would probably take a bit of
browsing to find and attempt. Cliff |
Author: | novellahub [ Tue May 20, 2008 12:16 pm ] |
Post subject: | |
Use the following command and see if the drive is already mounted: Code: df -h Also, you might want to see if you can mount the drive manually (as root after installing nfts-3g): Code: ntfs-3g /dev/sda1 /myth/usb
|
Author: | DonLKSAB [ Tue May 20, 2008 2:00 pm ] |
Post subject: | |
Thanks for all help. cliffsjunk that did it. /DonLKSAB |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |