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)
afterwards add line fstab filecode:cp /etc/fstab /etc/fstab.old
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
then add line (or 1 similar) fstabcode:sudo mkdir /file-storage
tab between fields make more readable you. exact values fields explained in fstab file. < > around them. option mount readable/writable (this default practice imo)code:/dev/sda3 /file-storage ext4 -w 0 0
if want mount temporarily, move folder, type
that will mount partition the /mnt folder manually mounted file systems go practice. unmount when power down system orcode:sudo mount /dev/sd3 /mnt
is entered.code:sudo umount /dev/sd3
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
Post a Comment