jwb;543407 Wrote: > What is ext2? > > I'm following along with what you're saying. I've mounted, then > unmounted. When it comes to making a directory, I'm a bit lost on the > syntax. Your example is of an internal drive, under "home." But mine is > external, so if i wanted to call the new directory something like > "music," what would I type in the command line? > mkdir /dev/sdc/music > Would that create a new directory on the external drive?
No. External, Internal, doesn't really matter. "/dev" is for devices. These are low level things. "/dev/sdc" is just the raw drive itself. It has no files, it has no directories, it's just a giant bucket of bits. A filesystem is something that gives meaning to that bucket of bits. It may be vfat/fat32 Windows type structure, or it may be ntfs (windows NT, and XP an later), or ext2 ("native linux"). /dev stuff is like a blank book, or a book with smears of letters. The filesystem adds a table of contents, chapters, pages, index, etc. The 'mount' command links a file system with a device. So in your case, you have /dev/sdc5: /dev/sdc5 88402 120853 260667392 83 Linux That's a partition (a section of the hard drive) starting at block 88402, running to 120853 for a total size of 260G. If that's the partition you want to use for music, you need to attach it to the filesystem. That's where mount comes in. WHERE you attach it is entirely up to you. Some places are ... odd. '/dev' is for raw device stuff and you don't want a raw device thing. '/etc' is used for system config stuff, and that's not right.. etc. Logical places would be under '/home' (for where users files go) or '/media' (since some people like that and its somewhat descriptive). If you want, say, "/music", you will first need to create a 'mount point' so you can put it there. Much like you shouldn't toss stuff randomly in a file cabinet... you should make a new file folder and toss stuff in THAT. So: mkdir /music Will make an empty folder to put stuff in. chmod 755 /music will make it it is readable chown john /music Will make it so that YOU own that empty folder. Now, we don't want to copy the -contents- of the drive to that folder. We want to take your drive and sort of fuse it into things. So: mount /dev/sdc5 /music Says "take the physical bucket of bits, and make it usable as a filesystem at /music" In windows sense, that's "take the USB drive and attach it to F:" > > > I've been really happy with Ubuntu overall, but I've got to say, I'm > gob-stoppered amazed at how complex this particular little simple task > is... > thx again for the help Well, after more years of Unix than I like to think about, it's second nature to me, and Windows with its drive letters confuses me. ("What the heck, I don't HAVE floppy drives, why do we start the alphabet with C??") That Wiki page isn't quite right for you if you're using ext2 (that partition labelled Linux). It's mainly to get around that Linux wants permissions and Windows usually doesn't, so it's more about "how to fake permissions on a windows drive" than anything about USB. -- snarlydwarf ------------------------------------------------------------------------ snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179 View this thread: http://forums.slimdevices.com/showthread.php?t=71700 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix