[SOLVED] mount Iomega external hard drive on debian squeeze, how to use mount command
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
sudo mount -vvvv LABEL=.chip/mnt
[sudo] password for quant:
mount: fstab path: "/etc/fstab"
mount: lock path: "/etc/mtab~"
mount: temp path: "/etc/mtab.lock"
mount: going to mount LABEL=.chip by LABEL
mount: spec: "/dev/sda4"
mount: node: "/mnt"
mount: types: "(null)"
mount: opts: "(null)"
mount: you didn't specify a filesystem type for /dev/sda4
I will try type vfat
mount: mount(2) syscall: source: "/dev/sda4", target: "/mnt", filesystemtype: "vfat", mountflags: -1058209792, data: (null)
/dev/sda4 on /mnt type vfat (rw)
(This is an example)
I had specified to mount mine (a partition, but this also works for external USB drives with file system labels) by LABEL, which means mount looks it up by label
Once it finds the label, it looks for other information by that label, like the node that bears the label
The node having been found, it finds the target which is where you want to mount it
The target being called the node (yes, the device node is what you are mounting, but that is spec, which means special), it looks for the filesystem type (in this example, I did not say what type, so it tries vfat) as well as anything like 'ro' for read-only or whatever else you say
That information being known, it issues the mount command
Now, if you are mounting that one all the time and do not have a label, you can try this: use the UUID. mount looks at the UUID and with your options, does all of the stuff said earlier. My system has in its fstab file some of the information like that which you have provided, only it uses UUIDs (those are things or labels that are placed on the disk at format time).
Because the first part of your fstab contains the device, if only UUID or label (specified by UUID= or LABEL=, respectively), then mount, as said above, looks up the device you want (not a bother, just a different way of looking it up). After that, in that file, it looks for where you want it, then what type it is, and any options you have
Using a UUID or label (you want this put at /mnt/usb?), you can just issue
because mount will see that you have typed your specific-to-that-device label in fstab, that /mnt/usb is also there, and since that is in fstab, it can just put it where you want
Device names (sda, sdb, etc...) change at times, but the labels or UUIDs I do not think change (to check you have the right info, run 'sudo vol_id /dev/sda1' and make a note of the information; if done right, it should mount with only the location you want)
I do not know if this helps (I hope it does); other than that, I am uncertain if I can help
volname is not the same thing, it works for CDs or other ISO9660 type stuff (the ISO-9660 is common for things like CDs, DVDs, or CD or DVD image files of that form); udev would handle finding out what you would like. I am guessing your kernel version is at least 2.6.13 or something? You should already have that there (if not, run your system update tool; there is a very good chance you do have it on there, as I believe udev is something that runs in the background...you may not see it, but it is there); if not, use your system package manager or update tool to search for and install udev (there may be other packages required; just install them if it so mentions, and if need be, restart the system)
You do not have the graphical install or whatever (that may or mat not be a reason); where BLEEP is though you should put your UUID (that is why I used the word BLEEP; it is supposed to be replaced with the thing, in this case, the UUID, you want to use). However, some commands might be on your system and you might be unaware of it. After looking on the Internet for some time, I came across something on blkid, but I was not sure if I had it on my system, so I did (locate and whereis, by the way, can be used on any command or whatever, if you think you got something on the system, but are unsure, or if you want to search):
All the important stuff including Label and UUID should be there; just pick out what you need, and edit appropriately. As an extra example, here is if I were asking my computer about my sda4 (pretend it is not mounted, or that it is USB, as device names do change at times):
In this case, I see that /dev/sda4 is the device I want now, but it bears the UUID shown, and since sda4 is only used on some systems, either the Label or the UUID is better to use (you do not need to enter the quote marks when editing the /etc/fstab file, because the system does not use them there...I do not think; type man fstab and man blkid for more help)
I believe a different posting I have read somewhere said that Debian Squeeze was missing vol_id; maybe use blkid instead?
Last edited by PenGUiN_6_1; 02-20-2012 at 01:58 PM.
Reason: Missing format marks
, and for those drives that have labels, the first command shows them listed as symlinks. All that means is if /dev/disk/by-label/.chip shows up, the listing actually is
.chip -> ../../sda4
(the .. means that you go back a directory, but all you need to know is the sda4 means /dev/sda4; the same with the
/dev/disk/by-uuid...the 4F38-00D9 -> ../../sda4
means /dev/sda4). SO, basically, yes, you can find a disk by label or uuid in the /dev/disk area (either by-label or by-uuid), use that to find your device (the labels or uuids point to a specific device), and use that label or uuid to mount it, remembering, as example: