![]() |
Mounting external usb drive.
Hi!
I bought an external usb hdd. When plugging it, nothing appears on screen. Slackware doesn't show up any drive. How do I mount this drive? Is there a way to make Slackware mount this drive automatically every time I connect it? Thank you! Glore2002.- |
Slackware 12.1 will automatically mount new devices (assuming you are running a WM/DE that handles automounting, like XFCE or KDE), but previous versions will not.
If you are running something older than 12.1 (and don't want to upgrade) then you can make the system mount the drive at boot by putting an entry for it in /etc/fstab. If you are running 12.1, where the device should be automatically mounted, then we need to do a little more diagnoses before we can determine the problem. |
I would look at the drive in fdisk or something like fdisk. Just view. The drive is probably /dev/sda or similar. if you can fdisk it, you now know what its designation is. Then edit fstab accordingly.
If fstab is properly set up (there's an option for automatic boot-time mount) then it should mount every time at boot if it's connected. "man fstab" for more info. |
Add your user to the "plugdev" group. Problem solved. If it's NTFS you should be able to find tutorial here:
http://www.howtoforge.com/the_perfec...slackware12_p6 |
fstab
Hello back!
I am running slackware 12.1. The disk is formatted in ntfs. My user is added to the plugdev group. When plugging my external usb disk (without adding anything to fstab or mounting the device by hand as root), it wasn't recognized. Then I've added this to /etc/fstab: Code:
/dev/sdb1 /usb_disk ntfs-3g umask=000 1 0Then if I mount the device as root from command line (mount /usb_disk) it works ok. So Is my fstab line ok? How can I avoid my system freezing at start? Any suggestions are very welcome. Thank you! Glore2002.- |
the system freezes because it's taking a bit longer time (for various reasons) to initialize your external hard disk, i think. is your external hd connected to usb2 port?
if you don't like the freeze-up at start up, maybe you can mount it as you need basis? |
If your hdd is big, you should partition it, using one partition for frequently changing data, and other for less used files. You can save the time taken to mount.
The best thing to do in my opinion is to have a filesystem other than NTFS if windows compatibility is not an issue. Else depending on the maximum size of your files, you may go with fat32 but that does not support files > 4 Gb. NTFS is not native *nix and maybe the ntfs software on ur machine is not optimised. (I had poor performance when using ntfs when I used to dual boot xp. Now I am solo on Debian, so not much idea how good ntfs compability is now.) |
You might try changing "umask=000" to "umask=000,user"
According to 'man fstab', "user" allows users to mount the drive. I would expect, though, that "umask=000" would allow all users -- regardless of who mounts the drive -- to have full access to it. One thing to note, too: ntfs AFAIK is not yet fully writeable in Linux. You can't create a new file, you can't change a file's size, etc. This may be treated like an access denial. Mind you, I've never used true Slackware. YMMV. |
Quote:
glore2002, you should not need an fstab entry for your removable ntfs partition. I don't know how your system is setup, but on mine I have it set so that nothing happens when I pop in my external hdd. If I'm using KDE, for instance, then I can go to 'Storage Media' in Konqueror/Dolphin and double click on the icon for the partition I want to load. Alternatively, I can use pmount-hal to load my partition. You could potentially use pmount with ivman to have your partition automatically loaded upon HAL events (such as your drive being connected). Assuming HAL/DBus/udev is working properly working on your machine this shouldn't be necessary, however. Quote:
|
Not able to access External HDD connected via USB
Hi,
I recently installed Slackware 12.1 on my Gateway MX6917J laptop and it is absolutely fabulous. I cursed myself for not switching to Slackware earlier. Oh well, have to live with it. I also have the same problems faced by the OP. My external hdd connected to the USB port is recognized and the desktop icons appear when I either plug in a HDD (NTFS formatted) or a USB memory stick. But KDE throws the following error: security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal") Hal is running: bash-3.1$ ps ax | grep hal 2808 ? Ss 0:06 /usr/sbin/hald --daemon=yes 2809 ? S 0:00 hald-runner 2815 ? S 0:00 hald-addon-input: Listening on /dev/input/event4 /dev/input/event3 /dev/input/event2 /dev/input/event1 /dev/input/event6 /dev/input/event7 /dev/input/event5 2819 ? S 0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket 2821 ? S 0:05 hald-addon-storage: polling /dev/hda (every 2 sec) 18384 pts/2 S+ 0:00 grep hal After plugging in the USB disk, if I do dmesg, it gives: usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb usbmon: debugfs is not available usb usb1: configuration #1 chosen from 1 choice usb usb2: configuration #1 chosen from 1 choice usb usb3: configuration #1 chosen from 1 choice usb usb4: configuration #1 chosen from 1 choice usb usb5: configuration #1 chosen from 1 choice usbcore: registered new interface driver usb-storage usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver usb 1-2: new high speed USB device using ehci_hcd and address 2 usb 1-2: configuration #1 chosen from 1 choice usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning sysfs: duplicate filename 'usb_storage' can not be created kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory. sysfs: duplicate filename 'usb_storage' can not be created kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory. usb-storage: device scan complete sysfs: duplicate filename 'usb_storage' can not be created kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory. usb 1-2: USB disconnect, address 2 usb 1-2: new high speed USB device using ehci_hcd and address 3 usb 1-2: configuration #1 chosen from 1 choice usb-storage: device found at 3 usb-storage: waiting for device to settle before scanning sysfs: duplicate filename 'usb_storage' can not be created kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory. usb-storage: device scan complete usb 1-2: USB disconnect, address 3 usb 1-2: new high speed USB device using ehci_hcd and address 4 usb 1-2: configuration #1 chosen from 1 choice usb-storage: device found at 4 usb-storage: waiting for device to settle before scanning sysfs: duplicate filename 'usb_storage' can not be created kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory. sysfs: duplicate filename 'usb_storage' can not be created kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory. usb-storage: device scan complete And lsusb gives: bash-3.1$ /sbin/lsusb Bus 001 Device 004: ID 067b:2507 Prolific Technology, Inc. PL2507 Hi-speed USB to IDE bridge controller Bus 001 Device 001: ID 0000:0000 Bus 005 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 It appears that I also have ntfs-3g and fuse installed already. I would rather prefer to not to edit /etc/fstab simply when plugging a memory drive or external HDD everytime since I may have to use different kinds of external HDD (formatted differently:ntfs,ext3 etc). Any pointers or any FM T R would be much appreciated. This is my first post, please excuse if there are any mistakes! Thank You! Senthil |
@Senthil.debian
Permissions error. I didnt need much access to my ntfs drive, so I only ever used it as root. Maybe an fstab entry would do the trick for normal user. |
Quote:
Mounting Devices As Root |
Quote:
MEC75 |
senthil.debian, your problem is unrelated to the OP's problem and you should therefore start a new thread. However, to fix the problem, add your user to the plugdev group (and you should also add your user to the cdrom, audio and video groups for unrelated reasons). When you add users using `adduser`, it even tells you to press the up arrow to see the recommended groups (which include the groups listed above). In addition, in CHANGES_AND_HINTS.TXT, it says this:
Quote:
Quote:
Code:
gpasswd -a username groupnameCode:
gpasswd -a senthil plugdev |
| All times are GMT -5. The time now is 01:53 PM. |