LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   fstab settings (https://www.linuxquestions.org/questions/slackware-14/fstab-settings-301289/)

spaceballs 03-13-2005 09:06 PM

fstab settings
 
This is my /etc/fstab file.

/dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext3 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
/dev/hda8 /home ext3 defaults 1 2
/dev/hda9 /depository ext3 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
none /sys sysfs defaults 0 0

I have a Sony digital camera and a USB thumbdrive that I want to be able to use. What do I need to add to my fstab to be able to mount these?

When I mess with lilo, I have to run lilo. When you adjust fstab, do you have to run anything?

digitalhead 03-13-2005 09:17 PM

Here's what I have for my JumpDrive:
Code:

/dev/sda1 /mnt/sda vfat defaults,users,umask=0002 0 0
You would probably need /dev/sda1 and /dev/sdb1 for the two different items.

No, you don't need to run anything, just edit and save as root/su.

noxious 03-13-2005 09:19 PM

Use this HOWTO guide. It got my Jumpdrive and MP3 player working via USB.

http://www.linuxquestions.org/questi...icle&artid=115

spaceballs 03-13-2005 09:51 PM

I keep getting a an error:

mount: special device /dev/sda1 does not exist

What does that mean? I know that my thumbdrive is plugged in. If it is not sda1, what is it?

digitalhead 03-13-2005 10:11 PM

I experienced that constantly with Mandrake 10.1. Do you have an updated kernel (like 2.6.x)? It's my understanding that the 2.6 series uses dynamic devices, and to be honest, I was never able to get the stupid thing to work properly with USB devices.

spaceballs 03-13-2005 10:21 PM

Got it - here is what I did to get my USB devices working
 
Here is my /etc/fstab
/dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext3 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
/dev/hda8 /home ext3 defaults 1 2
/dev/hda9 /depository ext3 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/sda1 /mnt/flash auto users,rw,noauto 0 0
/dev/sdb2 /mnt/camera auto users,rw,noauto 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
none /sys sysfs defaults 0 0

I got the camera to mount with the command :
mount /dev/sdb1 /mnt/camera
I got the thumbdrive to mount with:
mount -t vfat /dev/sda /mnt/flash

Does anyone know why the commands are different? I am not complaining, I am just glad it works, but I really wish that I could understand the difference, as opposed to me just getting lucky with some help from lq.org.

I am running linux version 2.6.11.2.


All times are GMT -5. The time now is 06:34 PM.