mount usb device on debian
how can i mount a usb device on debian?
|
Hi,
Plug in your usb device. As root type this: Code:
ls -l /dev/sd* Next make a mountpoint for your device: Code:
mkdir /media/usb0 Code:
chgrp cdrom /media/usb0 Code:
nano /etc/fstab Code:
/dev/sda1 /media/usb0 vfat rw,user,users,noauto,noatime,noauto 1 2 That's it. |
If you use SCSI or SATA hard drives, they'll be assigned /dev/sd* names as well, so it might be tricky to work out which one is the USB device using 'ls -l'. Another way is to type
Code:
dmesg HTH, Andrzej |
Quote:
Code:
dmesg | grep 'usb' |
But if I want ot mount a ntfs usb
Hi,
thanx to your reply : ) But what if I want to mount an ntfs usb key? Will I have to simply edit the fstab entry and replace the vfat by ntfs filesystem? Or will I have to load modules prior to that? |
Quote:
No it's not as simple as that unfortunately :tisk: For the easy way around it, just partition your usb key using fat32. If you want to continue using ntfs you will have install ntfsmount and fuse. Here is a good howto: http://wiki.linux-ntfs.org/doku.php?id=ntfsmount Have fun :) |
If I may ask, where did you get a usb key with NTFS on it? Almost every portable media sold comes formatted in FAT32. Did you reformat it yourself or can you actually buy them that way?
I agree with the above though. It's much easier just to put a FAT32 file system on it than to mess with NTFS. FAT support is almost universal, but NTFS is a nightmare outside of WindowsNT-based systems. |
usb key with ntfs
I reformatted it... I was using it on Windows. It's only now that i'm trying to mount it on linux.
I'll try to mount it as ntfs just for fun :) Thanx for the advice : ) |
All times are GMT -5. The time now is 06:54 PM. |