Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: Tim036 on January 31, 2016, 02:15:36 AM
-
I popped the external drive hold Tiny Core onto another computer to transfer data from one to the other.
I found 'home' and 'TCE' but not 'Desktop'.
how to the users get data into this OS ?
A puzzled,
Tim
-
Use tinycore to create a folder on your hard disk.
For example, if your hard disk is sda1: $ sudo mkdir -p /mnt/sda1/media/music
$ sudo chown tc:staff -R /mnt/sda1/media
Then when you put the hard disk into the other device, copy the mp3 files into the music folder you just created.
-
Many, many thanks ! I'll try that out the next chance I get !
:) :) :) :) :) :)
Tim
-
I tried that using Terminal
and it created musicin the media folder but did not let me copy and paste anything
sudo chown tc -R /mnt/sda1/media
would that be any better ?
:)
Tim:
-
Sorry, that should have been:
$ sudo chown -R tc:staff /mnt/sda1/media
-
Quoting you initial response
Use tinycore to create a folder on your hard disk.
For example, if your hard disk is sda1:
Code: [Select]
$ sudo mkdir -p /mnt/sda1/media/music
$ sudo chown tc:staff -R /mnt/sda1/media
Then when you put the hard disk into the other device, copy the mp3 files into the music folder you just created.
end quote
what I did was exactly as this post.
the first line worked fine and the directory 'music' was created.
but the second line did not give the directory any properties to allow me to write from a different OS (Ubuntu 14.04 64 bit) data into it. Cut and Paste did not work nor did drag and drop.
Now I've no idea why as I don't know much about chown, also the visible structure of (from Ubuntu) was tc/media/music (all directories). I'm not sure what ':staff' does.
I'm very grateful for your support but I'm also very ignorant at this level of Bash. (I hope to become less ignorant, with your help).
Thanks again,
:)
Tim
-
My error:-
I meant
sudo chown -R tc:staff /mnt/sda1/media (change of position of -R) had no effect.
a puzzled,
but very grateful,
:)
Tim
-
Tim036 welcome to linux :)
You'll find that most if not all programs have a help guide invoked by --help when run from the terminal
eg: chown --help
reading this will help you to construct your command correctly (or put another way, in the sequence the program expects)
for example the -R option is standard in most program options meaning ' recursive ' and is almost always placed next in sequence after program name
All of this is quite basic linux knowledge, which can be quite frustrating when coming from something as simple as windows.
hang in there and don't forget google is your friend, it's just a matter of knowing what to ask and I find something like "how to chown" will get you on the right path
:)
-
Welcome Tim036.
Learning Linux is hard if you're used to Windows, learning it in Tiny Core is tougher!
...good for you, don't get too frustrated :)
Some responses indicated possible typos, good ways to prevent terminal typos:
1) Cut and paste commands provided by helpers (if in GUI)
2) Press Tab key twice to autocomplete partially typed command or directory
Change to your media directory and check permissions. These commands will confirm whether the partition is mounted and who owns the directory. What is the terminal output of ll (two small L = list long):
cd /mnt/sda1/media
ll
-
Hi Tim036
but the second line did not give the directory any properties to allow me to write from a different OS (Ubuntu 14.04 64 bit) data into it. Cut and Paste did not work nor did drag and drop.
Probably because you don't have tc:staff listed as user and group under the other OS.
-
but the second line did not give the directory any properties to allow me to write from a different OS (Ubuntu 14.04 64 bit) data into it. Cut and Paste did not work nor did drag and drop.
You should be able to use "sudo" before a copy command in Ubuntu - i.e. "sudo cp *.mp3 /mnt/sda1/media/music"
-
Didn't work even when I tried it on ubuntu to its own /media/music/ from the home directory.
puzzled but appreciated your response
Tim
-
forgot to plug the target HD in ! whoops
-
Now I'm taking a guess that the second drive is sdb1
perhaps there is a way of asking the system what the second drive is called?
tim@tim-A880G:~$ sudo cp hon.mp3 /mnt/sdb1/media/music/
cp: cannot create regular file ‘/mnt/sdb1/media/music/’: No such file or directory
Many thanks for your support !
:) :) :)
Tim
-
Now I'm taking a guess that the second drive is sdb1
perhaps there is a way of asking the system what the second drive is called?
Running cat /etc/fstab will display what your system found at boot:
cat /etc/fstab
Running blkid will show current drives on system:
blkid
Running mount or mount | grep sd ill show what's mounted, if it's not mounted you can't transfer data:
mount
mount | grep sd
-
You might try to find the Music directory which will provide you the whole path
sudo find / -iname music
-
Many thanks for the responses !
I'll try those out.
: )))
Tim