fstab
how do you save an edit to fstab or any file using a terminal edit (i used vim)
also does anyone know what entry in fstab should be for removable media like flash drives and external hard drives? |
1. You have to be root.
2. To save in vim, you use :wq! 3. The last question depends on what device name is used. I use Gentoo and when I use a usb drive it uses /dev/sda*. It all depends though. If it uses /dev/sda1 the entry would look something like: /dev/sda1 /mnt/usb vfat auto,user |
hmm I don't actually know what it is using. Here is my fstab list of entries:
Code:
/dev/hda2 / reiserfs acl,user_xattr 1 1 Code:
/dev/hda2 on / type reiserfs (rw,acl,user_xattr) oh and thanks for how to save |
After you plug in your flash drive, type dmesg until you see something like the following. It may take a few seconds to scan the new drive.
Code:
usb 1-1: new high speed USB device using ehci_hcd and address 32 First, make a folder you want to mount it to. Code:
mkdir ~/usb_folder Code:
/dev/sda1 ~/usb_folder vfat defaults 0 0 Code:
mount ~/usb_folder Code:
umount ~/usb_folder Good luck! |
Quote:
If you aren't using HAL, then you'll need to work out the device name (perhaps using the 'dmesg' command) before you can mount the partitions. You don't need an fstab entry to mount removable media. |
rkelsen:
I'm not familiar with HAL. Do you mean you plug it in and it mounts somewhere automatically? (how does it know where with out fstab)? You don't NEED fstab to mount a flash drive normally, but it makes it easier to do "mount folder" instead of "mount /dev/sda1 folder" |
Quote:
and might you be able to tell me how to run Hal? and with that it would most definitely help if I knew what the entries meant in dmesg. dmesg: usb 1-1 or usb 2-1, etc... and most of them come up with an error: Code:
usb 1-3: new high speed USB device using ehci_hcd and address 7 USB disconnect, address 2 2-2 is my optical wireless mouse which it sees and recognizes. On a completely unrelated note: I take pride in the things I know and I am good at what I do... but have I mentioned how much I feel like a :newbie: right now? and due to deadlines I am going to install SUSE 10.1 (normal) and hope that it works. thanks for what you have taught me so far and lets hope this thread can be finished. lets see how many times I can solve my rubiks cube before the install is done :D |
Quote:
If you wanna see how it fundamentally works (with udev, etc), I have a set of scripts for Slackware which are a custom version of Debian's usbmount package. They are available in Slackware package format here: http://members.optusnet.com.au/rkelsen/usbmount.html Note: this really has nothing to do with HAL, but demonstrates auto-mounting without an fstab entry. Quote:
Quote:
|
Quote:
and as for the usb drives mounting elsewhere. They mount on my windows systems just fine but the computer that runs linux doesn't see it even though the light comes on on the usb drive briefly |
Quote:
http://www.novell.com/products/linux...linux/hal.html No matter what question you have to ask, chances are that someone else has already asked it. |
:study: I will remember that (grandpa always says google is your friend)
:jawa: Status update: Spiderman 3 is awesome and it was something to do with my SLED installation. I put SUSE 10.1 on and it booted just fine automatically (and ffs it had all the stuff on the dvd that SLES 10 had... except it actually installs, but that is a different story) |
All times are GMT -5. The time now is 02:01 AM. |