some USBstick help please
well followed the HOWTO on this site and it worked perfectly for my laptop, but not for my gaming box.
both are running the 2.6.x kernels. here is my dmesg about the usb stick: Code:
usb 1-2: new high speed USB device using ehci_hcd and address 3 Code:
/dev/sdc1 /mnt/camera auto defaults,user,noauto 0 0 as user i get the following: Code:
$ mount /mnt/USBdrive/ Code:
$ su - |
Assuming you have the correct device sdc2, root would mount like this:
# mount -t vfat /dev/sdc2 /mnt/USBdrive/ KC |
ok i see what root was doing wrong, but why on my laptop can user mount /mnt/USBstick and be done with it?
i would like user to be able to mount and umount that device. |
Well, if you were able to mount ok using vfat as root then replace "auto" with "vfat" in your fstab then user should be able to mount without fs type error...
KC |
ok that works, can you explain why when the fstab on both the laptop and game box (basically the same except the sdx part) i do not need a file type on the laptop, but do on the game box?
|
Good question... If they both have the same distro then its probably a kernel issue with the file system detection... Beyond guessing, I would have to reasearch a little more on that...
KC |
ok, one is 2.6.9, other is 2.6.11, both are debian.
|
well that did not work:
Code:
ray@p4ssmahome:~$ mount -t vfat /dev/sdc2 /mnt/USBdrive/ |
fixed it. changed the sdc2 to sdc1 and it now works for both root and user the same way it does on the laptop.
|
Yep. You were defeated by a misunderstanding of the naming convention :)
sdc means the third SCSI disc detected by the system. sdc1 is the first partition on the disk, sdc2 the second partition on the same disk. So if you plug in your camera, it'll be sdc, and its first partition sdc1 If you then plug in your flash disk, it'll be sdd with the first partition sdd1, as sdc already exists But if you unplug your camera and THEN plug in the flash disc, it will then be sdc It's a logical enough system, but it can be annoying if you always want a piece of hardware to have the same name, rather than it depending on what order you plug things in. You can set up udev so that hardware will always have the same /dev address no matter when you plug it in, should you feel the need. |
ahh ok, now i understand exactly what was going on. thank you for that tidbit of info. very kewl to learn from mistakes and even better to learn WHY.
|
ok next question. on my game box with the sdc1, what if i wanted to mount both my USB stick and my USB camera at the same time?
can i add a duplicate line in my /etc/fstab and just replace the 1 with a 2 for both devices so i can mount both or either and not worry about it? |
Yep, but you'd want to change sdc1 to sdd1, not sdc2. . .
|
Quote:
Code:
/dev/sdc1 /mnt/camera auto defaults,user,noauto 0 0 |
All times are GMT -5. The time now is 09:50 AM. |