DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1) what is the command to mount usb hard drive manually?
2) Can i auto mount a usb hard drive? that means whenever i plug in the usb hard drive, it will automatic mount the drive and unmount once it is unplug?
1) what is the command to mount usb hard drive manually?
2) Can i auto mount a usb hard drive? that means whenever i plug in the usb hard drive, it will automatic mount the drive and unmount once it is unplug?
thanks.
Before the boot you please plug in the usb hdd device.
And then check the output of "fdisk -l"
Mar 16 11:09:46 localhost kernel: usb 2-2: new full speed USB device using address 7
Mar 16 11:09:46 localhost kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Mar 16 11:09:46 localhost kernel: Vendor: OTi Model: Flash Disk Rev: 1.89
Mar 16 11:09:46 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Mar 16 11:09:46 localhost kernel: sda: Unit Not Ready, sense:
Mar 16 11:09:46 localhost kernel: Current : sense key Unit Attention
Mar 16 11:09:46 localhost kernel: Additional sense: Not ready to ready change, medium may have changed
Mar 16 11:09:46 localhost kernel: SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
Mar 16 11:09:46 localhost kernel: sda: assuming Write Enabled
Mar 16 11:09:46 localhost kernel: /dev/scsi/host3/bus0/target0/lun0: p1
Mar 16 11:09:46 localhost kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Mar 16 11:09:47 localhost scsi.agent[18166]: sd_mod: loaded sucessfully (for disk)
Mar 16 11:09:47 localhost usb.agent[18157]: usb-storage: already loaded
so this device was detected as /dev/sda and would be mounted using /dev/sda1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.