Skip to main content

Thread: need help moving files from 1 partition to another in terminal


i need move folder folder behind partition on same hard drive.. i'm using ubuntu server.. have 2tb hard drive.. shrank size of partition , created 2 more partitions.. 1 partition has system files.. 2nd used after reformat hold /home , 3rd partition need transfer files (from first partiton holding ubuntu server) note server i'm using has 1 hard drive.. 2tb sata drive.

don't know commands list partitions

tried "fdisk -l /dev/sda/" returned "cannot open /dev/sda/

don't know how i'm going mount 3rd partition can transfer files via terminal

tried use live cd move files gui said didn't have permission..

appreciated

to add third partition permanent mount on server, have edit /etc/fstab file (warning file before editing)
code:
 cp /etc/fstab /etc/fstab.old
afterwards add line fstab file
assuming standard hhd sdx naming convention , first hard drive , third partition on drive... need decide want mount it. example mounting on folder (named file-storage) off of root
code:
 sudo mkdir /file-storage
then add line (or 1 similar) fstab
code:
/dev/sda3 /file-storage ext4 -w 0 0
tab between fields make more readable you. exact values fields explained in fstab file. < > around them. option mount readable/writable (this default practice imo)

if want mount temporarily, move folder, type
code:
 sudo mount /dev/sd3 /mnt
that will mount partition the /mnt folder manually mounted file systems go practice. unmount when power down system or
code:
 sudo umount /dev/sd3
is entered.

move folder 1 partition straight forward
code:
mv /path/to/folder/ /destination/path/


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] need help moving files from 1 partition to another in terminal


Ubuntu

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support