UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can someone tell me what the command is for accessing the C:/ drive, LET ME EXPLAIN, IT's not what you think:
In the terminal to change directories u use the cd command
prompt:~$ cd [directory]
my question is I am trying to copy something to my C:/ drive but I don't have permission so I have to sudo chmod my c:/ drive permissions, but i don't know how to get the prompt to say:
c:/ ? this is not windows, you can't explain things in a windows context as it means nothing... your prompt will never say what you want as it doesn't exist outside of windows.
btw have you ever really wonder wtf "C:" means??? total nonsense and yet windows users say linux os obscure...
Yes we can help you, but you really need to read some newbie guides on mounting partitions.
In linux, drives are not "lettered" a:, b:, c: etc so you can never get a C: prompt. In linux, everything is a file (even your mouse). So what you need to do is create a directory (or mount point) and then mount the proper partition on that mount point.
See this guide for help, specifically section 5.2.
as for acid_kewpie's reply, I know very well what C:/ and i knew also that I could never get the prompt to say C:/$, that's obvious...i'm not that dumb... my windows hard drive has the label "C:/" and not "hda2" like some others are so that's why i said it that way. Anyways...thanks for stomping on my head when i'm already down... instead of giving me useful advice and yet linux users think they're so smart, but when someone new comes along with a genuine problem, they can't give any advice.....instead only smart remarks.
rf_ccr, to find out the "hda2" type label, try running /sbin/fdisk -l (that's L, not 1). You might have to be root, but is should spit out something to you. Post the command output here and we can help you figure out which one you need to mount. It should look something like this
Code:
root@Aurelie:/home/nitto# fdisk -l
Disk /dev/hdh: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdh1 1 1175 9438156 83 Linux
/dev/hdh2 1176 9729 68710005 5 Extended
/dev/hdh5 1176 2480 10482381 83 Linux
/dev/hdh6 2481 4438 15727603+ 83 Linux
/dev/hdh7 4439 9529 40893426 83 Linux
/dev/hdh8 9530 9660 1052226 83 Linux
/dev/hdh9 9661 9729 554211 82 Linux swap / Solaris
Disk /dev/sda: 257 MB, 257425408 bytes
16 heads, 32 sectors/track, 982 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 982 251376 e W95 FAT16 (LBA)
Then you can cd /mnt/windows and you should be able to see all of your windows drive. Note that you can't write to the partition, just read and copy files from it (linux can hose up an NTFS partition if you try to write to it). Anyway, when you're done just sudo umount /mnt/windows
Note also that you can use your file browser (like explorer on windows. I think ubuntu uses nautilis by default) to explore the drive when it's mounted also. You don't have to use the command line.
as for acid_kewpie's reply, I know very well what C:/ and i knew also that I could never get the prompt to say C:/$, that's obvious...i'm not that dumb... my windows hard drive has the label "C:/" and not "hda2" like some others are so that's why i said it that way. Anyways...thanks for stomping on my head when i'm already down... instead of giving me useful advice and yet linux users think they're so smart, but when someone new comes along with a genuine problem, they can't give any advice.....instead only smart remarks.
thx again to pljaldez
if it's so obvious why on earth did you say it in such an absolutely unavoidablly straight way? how can anyone seriously take "how can i make my prompt say "prompt:C:/$?" any other way???
btw have you ever really wonder wtf "C:" means??? total nonsense and yet windows users say linux os obscure...
Is it really nonsense though? Micorosft chose to not spread folders across drives/partitions. It doesn't seem that crazy to me, it's almost the same as /dev/hda, kind of...
Is it really nonsense though? Micorosft chose to not spread folders across drives/partitions. It doesn't seem that crazy to me, it's almost the same as /dev/hda, kind of...
No... not really.
The power of using mount points is evident when you have a lot of really small hard drives.
Some people I know build systems with a lot of 10GB hard drives. Then they mount them like so:
And so on and so forth. /mnt and /media are really just for USB, floppies, and optical media in that mode of thinking. Of course, I have hard drives I mount under /mnt because they're not part of my linux system, but that's why Linux does it that way.
Can you do that in Windows?
No.
The closest equivalent in Windows I've EVER heard of is RAIDing your drives together. Not the best of options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.