LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   usb disk? (https://www.linuxquestions.org/questions/slackware-14/usb-disk-438737/)

zhuningwll 04-25-2006 02:23 PM

usb disk?
 
My system is slackware10.2.how can I Do if i want use usbhardisk?
anybody can help me?
Tks!

Alien_Hominid 04-25-2006 02:29 PM

Do you want to boot from it or are you planning only to keep data in it?

zhuningwll 04-25-2006 03:22 PM

Quote:

Originally Posted by Alien_Hominid
Do you want to boot from it or are you planning only to keep data in it?

only put data from it!

dennisk 04-25-2006 04:37 PM

Insert your USB drive and run dmesg. You should see it toward the bottom as some thing like /dev/sda1 or maybe sdb1, if you have a SATA hard drive. Then what I do is

mkdir /mnt/usb

to create a mount point or just reuse /mnt/floppy on machines that don't have a real floppy. After all that's what USB drives are for now.

Then edit /etc/fstab and add a line like this

/dev/sda1 /mnt/usb auto noauto,users 0, 0

Again you can just reuse the /mnt/floppy entry and change /dev/floppy to your actual device.

Now you can mount your USB drive with this command

mount /mnt/usb

or

mount /mnt/floppy

unmount with

umount /mnt/usb

or

umount /mnt/floppy

Dennisk

zhuningwll 04-25-2006 04:44 PM

I test if I don't stat /etc/rc.hotplug ,use the dmesg can't see the usb disk.(sda)
use usb disk must start the rc.hotplug???


All times are GMT -5. The time now is 10:43 AM.