I have an 8 gig USB memory stick and created two partitions on it, one FAT32 and the other EXT3. I was using Ubuntu 11.10 and the owner of the FAT32 partition is me, my username, and I can read and write it. But the owner of the EXT3 partition is root and I don't have permission. Since gparted is not in my applications menu I ran it from a terminal window via "sudo gparted" which is what I usually do.
So I decided to become root and ran "sudo -i" which gave me a prompt in /root, but I can't figure out how to get my prompt in the USB. My hard drive is sda and the new EXT3 partition is sdb2. I don't need to use this; it's a learning exercise, but I realized I don't know how to label various partitions in bash. I remember in MSDOS we had A: and B: for floppy drives, and C: and D: or so for hard drives, or drives lettered according to Microsoft's way designation -- and the same in Windows. What am i missing? This should be a very simple command but I can't find it in man and I don't know what would be the right search string.
I found this:
http://www.linuxquestions.org/questi...tition-681160/
...but it doesn't address how to label a partition in bash. That is, how can I issue the command "ls" and apply it to sdb1 or sdb2 instead of sda7 which is where my home directory is located?