takže situace:
systém na sda5
sdb2 připojeno do /home
potřebuju:
přesunout některá data (jen soubory programů a ostatní nalinkuju z toho oddílu sdb2, který připojím jinam) z sdb2 na sda5 do nového /home
výpis
sudo bash a export LANG=C nic
mount
/dev/sda5 on / type ext4 (rw,noatime,discard,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=768M,mode=1777)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
/dev/sda2 on /boot/efi type vfat (rw,noatime,discard)
/dev/sdb2 on /home type ext4 (rw)
/dev/sda6 on /home/matlala/SSD type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sdb1 on /home/matlala/Win type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfsd-fuse on /run/user/matlala/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=matlala)
fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 180.0 GB, 180045766656 bytes
255 heads, 63 sectors/track, 21889 cylinders, total 351651888 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe10170c5
Device Boot Start End Blocks Id System
/dev/sda1 1 351651887 175825943+ ee GPT
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000acd44
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1887455231 943726592 7 HPFS/NTFS/exFAT
/dev/sdb2 1887455232 1952526335 32535552 83 Linux
/dev/sdb3 1952526336 1953524382 499023+ 82 Linux swap / Solaris
blkid
/dev/sda1: LABEL="ObnovenM-CM--" UUID="B0FC8618FC85D94C" TYPE="ntfs"
/dev/sda2: UUID="A286-8E69" TYPE="vfat"
/dev/sda4: LABEL="Windows" UUID="F00283E00283A9E4" TYPE="ntfs"
/dev/sda5: UUID="dc35bd84-cad9-436a-9459-b71204bc2382" TYPE="ext4"
/dev/sda6: LABEL="SSD" UUID="6EF6760A53E2A757" TYPE="ntfs"
/dev/sdb1: LABEL="Data" UUID="6E56301749EE9C98" TYPE="ntfs"
/dev/sdb2: UUID="707fc4fd-b897-4a7b-82d0-2a6b02529e86" TYPE="ext4"
/dev/sdb3: UUID="04765c77-89b6-4f5c-acf1-a7f1a85f7781" TYPE="swap"
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=dc35bd84-cad9-436a-9459-b71204bc2382 / ext4 noatime,discard,errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=A286-8E69 /boot/efi vfat noatime,discard,defaults 0 1
# /home was on /dev/sdb2 during installation
UUID=707fc4fd-b897-4a7b-82d0-2a6b02529e86 /home ext4 defaults 0 2
# swap was on /dev/sdb3 during installation
UUID=04765c77-89b6-4f5c-acf1-a7f1a85f7781 none swap sw 0 0
#ramdisk
none /tmp tmpfs nodev,nosuid,noatime,size=768M,mode=1777 0 0
#Data SSD on /dev/sda6
UUID=6EF6760A53E2A757 /home/matlala/SSD ntfs noatime,discard,defaults,user,umask=000,nls=utf8 0 0
#Data HDD on /dev/sdb1
UUID=6E56301749EE9C98 /home/matlala/Win ntfs defaults,user,umask=000,nls=utf8 0 0