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.
Yeah, like the title says I want to be able to access my ext. harddrive so I can use the laptop for media collection and document collection. It also holds all of my desktop backrounds and pictures that I want to use.
When I plug it in there is not noticeable detection. So, I go to the 'computer' icon, and see that it lists floppys (2 floppy drives, which is weird because I only have one), a CD drive (Which is strange because mine is a dvd drive), and the option to delve deeper into the filesystem. When I look in dir media (where my drive is usually put when it's mounted) I see nothing, and I checked in /mnt/ too. nothing. I can't figure out what's going on... I've never had this problem with another distro.
mkdir /media/usbdrive
mount -t ext3 /dev/sda1 /media/usbdrive
Of course change ext3 to whatever filesystem type you are using on the drive. Your drive may be under sda2, sda3, sdb1, sdc1, etc. depending on what else is plugged into usb or sata ports. When you find out where it is, you can add a line to /etc/fstab for easier mounting.
Plug in USB Drive, the infromation of what drive the system detected it as will scroll onto the screen
You can then quickly determine the file system using fdisk.. verify your mount points, now you have all the info needed to mount the drive.
Code:
itg-debian:~# tail -f /var/log/messages
May 30 12:12:40 localhost kernel: ACPI-0286: *** Error: No installed handler for fixed event [00000002]
May 30 12:12:40 localhost kernel: usb 2-2: new full speed USB device using address 2
May 30 12:12:42 localhost kernel: SCSI subsystem initialized
May 30 12:12:42 localhost kernel: Initializing USB Mass Storage driver...
May 30 12:12:42 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
May 30 12:12:42 localhost kernel: Vendor: OTi Model: Flash Disk Rev: 1.89
May 30 12:12:42 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
May 30 12:12:42 localhost kernel: usbcore: registered new driver usb-storage
May 30 12:12:42 localhost kernel: USB Mass Storage support registered.
May 30 12:12:42 localhost usb.agent[26361]: usb-storage: loaded successfully
May 30 12:12:43 localhost kernel: sda: Unit Not Ready, sense:
May 30 12:12:43 localhost kernel: Current : sense key Unit Attention
May 30 12:12:43 localhost kernel: Additional sense: Not ready to ready change, medium may have changed
May 30 12:12:43 localhost kernel: SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
May 30 12:12:43 localhost kernel: sda: assuming Write Enabled
May 30 12:12:43 localhost scsi.agent[26417]: sd_mod: loaded sucessfully (for disk)
May 30 12:12:43 localhost kernel: /dev/scsi/host0/bus0/target0/lun0: p1
May 30 12:12:43 localhost kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
itg-debian:~# fdisk -l /dev/sda
Disk /dev/sda: 65 MB, 65536000 bytes
16 heads, 32 sectors/track, 250 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 250 63983+ 6 FAT16
Partition 1 has different physical/logical endings:
phys=(248, 15, 32) logical=(249, 15, 31)
itg-debian:~# ls /media
cdrom cdrom0 floppy floppy0 usbdrive
itg-debian:~# mount -t vfat /dev/sda1 /media/usbdrive
itg-debian:~# mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
/dev/hda6 on /home type ext3 (rw)
/dev/sda1 on /media/usbdrive type vfat (rw)
if that all works you can create an entry in fstab to make it easy for any user to mount the drive..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.