Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 5883  / 1 Year ago, sun, december 25, 2022, 4:56:06

I have a shared filesystem (E: in my installation of Windows 7) in which I keep my programming codes. I want to shift from Windows to Ubuntu for programming mainly because I like the linux terminal compared to alternative in Windows.



I asked this question after which I came to know that my shared filesystem is /dev/sda5. I tried to use terminal to cd to this directory but I wasn't able to do so.



I have the shared filesystem loaded and I was in /dev when I tried to change to sda5. The error was




bash: cd: sda5: Not a directory




How can I do that?


More From » 12.04

 Answers
0

You need to make it mounted in somewhere. The device is there but you have no access to it to achieve this you must use the mount command. First create a mounting point as:



sudo mkdir /mnt/shared


Then you can mount the sda5 to it:



sudo mount -t ntfs /dev/sda5 /mnt/shared


Now, your files should be in /mnt/shared:



cd /mnt/shared


I don't encourage you to do so cause it can harm files having different end line encodings in windows / linux. What I suggest you is to create another partition and move the files you want to use on both systems there. Then stick with a multi OS IDE.


[#30041] Monday, December 26, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sipwing

Total Points: 245
Total Questions: 100
Total Answers: 118

Location: Aland Islands
Member since Thu, Oct 22, 2020
4 Years ago
sipwing questions
Sun, May 29, 22, 22:00, 2 Years ago
Fri, Jun 24, 22, 08:46, 2 Years ago
Fri, Dec 23, 22, 00:04, 1 Year ago
;