Users online right now: 86 - Login  » search  » forum index  

How to copy file from Internal HD to External HD?

halim
wrote 1 year ago


reply
How to copy file from Internal HD to External HD using command promt?(using slax) I cannot copy and paste by right click mouse.They said i don't have permission to write on disk. Is this mean i need to use command?

Need help,
Halim
 
jayflood
wrote 1 year ago


reply
Open your terminal (command prompt) and make sure you are root.
You can see a list of drives that are currently mounted (ready for use) by typing: mount
For other info to see sizes you can use: df -Th or fdisk -l

Look for the letters/numbers that relate to your drives. They will look something like /mnt/sda2 or /mnt/hda1

Now you can copy from the HD to the EHD using the letters/numbers.

Example:
cp /mnt/sda1/myfolder/myfile.mpg /mnt/sda2/externaldrive/myfile.mpg

If you still have troubles writing to the drive it has probably been mounted as readonly. Try unmounting the drive and remounting.

Example:
umount /dev/sda2
mkdir /mnt/external
mount /dev/sda2 /mnt/external
touch /mnt/external/testfile.txt


If writing was successful you should have a testfile.txt on your external drive.
ls /mnt/external
 
Dudawei
wrote 266 days ago


reply
Hi there

I am having the very same problem, I followed your procedure jayflood,
root@slax:~# umount /dev/sda6
root@slax:~# mkdir /mnt/external
root@slax:~# mount /dev/sda6 /mnt/external
root@slax:~# touch /mnt/external/testfile.txt
touch: cannot touch `/mnt/external/testfile.txt': Read-only file system

I am back to square one ..
 
jayflood
wrote 266 days ago


reply
mount -o rw /dev/sda6 /mnt/external
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH