Linux telnet commands

giuseppe zuppa

Inactive User
Joined
Dec 13, 2015
Messages
5
Reaction score
0
I wanted some advice from experts before making a bullshit. I state that I have a vu + SOLO2 with internal SSD partitioned so


/ media / hdd size: 31.12 GB available: 24.13 GB


/ media / sda2 size: 31.11 GB available: 29.89 GB


ext4 and sda2 empty.


Now I HDD recordings, data xbmc piu'plugin and skin moved with plugin mover etc ...
I would like to brush up to HD, that I no longer 'reformatted the first time, without losing any data
So I would like to proceed with dcc telnet this:

umount /media/sda2
mkfs.ext4 /dev/sda2
mount /dev/sda2 /media/sda2

cp -a /media/hdd/* /media/sda2

umount /media/hdd
mkfs.ext4 /dev/sda1
mount /dev/sda1 /media/hdd

cp -a /media/sda2/* /media/hdd

It's ok?
 
I have an issue with my Android 4.4.2 Head Unit I purchased for my car (its cr4p...) and how it accesses the External SD cards. I think its a mount issue? Anyway to change how they mount by default?
 
Yes, it sounds ok to me. But everytime you issue mkfs be sure to use the right device. Another option is to use dd:

umount /media/sda2
umount /media/sda1
dd if=/dev/sda1 of=/dev/sda2

which copies the whole partition byte by byte.
 
Back
Top