View previous topic :: View next topic |
Author |
Message |
jammin Guru
Joined: 21 Jun 2004 Posts: 340
|
Posted: Thu Jul 01, 2004 11:24 am Post subject: Mounting usb drive, and cd drives????? |
|
|
Hi
Ive jsut installed gentoo. In all my excietment i didnt realease that my flash disk, or either of my two cd drives are not on my gnome desktop.
I used a stage 2 install. used genkernel and have hotplug enabled.
When i boot it says "hotplugging usb devices"
Code: |
# mount /dev/cdrom /mnt/cdrom
|
mounts my 1st cdrom drive
Whe i try to mount my second:
Code: |
jammin # mount /dev/cdroms /mnt/cdrom
mount: you must specify the filesystem type
|
Contents of /mnt/
Code: |
root@tux jammin # /mnt/
cdrom floppy
|
My usb drive will be sda, i think, but i cant mount it.
Also how do i get these to be permentaly mounted and for the icons to appear on my desktop?
(me n00b)
Thanks |
|
Back to top |
|
|
Kirigoe Tux's lil' helper
Joined: 10 Jan 2003 Posts: 147 Location: concrete hut, sweden
|
Posted: Fri Jul 02, 2004 6:59 am Post subject: |
|
|
hi,
all the automount and semiautomatic mounts are located in the file /etc/fstab. by adding a line there for each of your devices (but do NOT change the already existing entries for your harddrive(s)) you can either mount filesystems at boot or with the "mount" command followed by the mount point (e.g. /mnt/cdrom).
first off, make a backup of /etc/fstab somewhere outside of your harddrives (floppy preferably) so you can revert to it if there are any errors with fstab. if there are errors in fstab, your computer might not boot.
if you have all the needed kernel modules for USB mass storage, your USB drives should be named /dev/sdXY where X is a letter starting at "a" and Y is a number starting at "1". usually this means your first USB drive is /dev/sda1.
create a mount point in /mnt (e.g. /mnt/usbdrive) and add this line to your fstab file (changing the /dev/sda1 to point to your USB drive):
Code: | /dev/sda1 /mnt/usbdrive vfat noauto,users 0 0 |
now you should be able to mount the drive with the command:
Code: | mount /mnt/usbdrive |
your second cdrom-drive should be located at /dev/cdroms/cdrom1, if it's there, you can just copy the line in fstab for your first (cdrom0) cdrom. just be sure to create another mount point (the folder in /mnt), each filesystem needs its own mountpoint.
so to sum up, you mount devices by:
- creating a mount point in /mnt
- finding the device name under /dev
- creating an entry in /etc/fstab
- either mount it manually with the "mount" command or have it automount at boot
hope it helps! _________________ + adopt an unanswered post today!
+ kimono network monitor
+ downshift.org |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Fri Jul 02, 2004 7:23 am Post subject: |
|
|
the 'you must specify the filesystem type' message appeared because you didnt specify the filesystem. To mount a device not in your fstab that doesnt use iso9660 (the default), you need to use something like:
Code: | mount -t vfat /dev/sda1 /mnt/usb |
Where -t vfat is the filesystem type.
fyi, heres my fstab:
Code: | /dev/hda2 /boot ext3 noauto,noatime 1 2
/dev/hda4 / reiser4 noatime 0 1
/dev/hda3 none swap sw 0 0
/dev/cdrom /mnt/cdrom iso9660 users,noauto,ro 0 0
/dev/hda1 /mnt/windows ntfs ro 0 0
/dev/mapper/encrypt /mnt/encrypt ext3 noauto 0 0
/dev/usbstick1 /mnt/floppy vfat noauto,users 0 0
/dev/usbstick2 /mnt/usb vfat noauto,users 0 0
192.168.0.9:/usr/portage/distfiles /usr/portage/distfiles nfs rw,nolock,rsize=1024,soft,timeo=75,retrans=1 0 0
192.168.0.9:/media /mnt/media nfs rw,nolock,rsize=1024,soft,timeo=75,retrans=1 0 0
192.168.0.10:/ /mnt/router nfs rw,nolock,rsize=1024,soft,timeo=75,retrans=1 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /tmp tmpfs defaults 0 0 |
_________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|