我正在升级我的桌面,并将所有文件传输到两个硬盘上。我在第三个驱动器上安装了 Ubuntu 12.04,启动它,并挂载了另外两个卷。我尝试访问这些文件,它说我没有权限,我认为这是因为我在旧电脑上是 Ubuntu 的不同用户。相关信息、音乐和照片都在这些驱动器上,我需要一个白痴也能理解的答案,因为我仍然不懂终端或命令行。
/dev/sda: LABEL="storage volume 3" UUID="680aad74-1b4f-41aa-8cc1-55d5fa04f961" TYPE="ext4"
/dev/sdb1: UUID="7b974307-86b3-4f3b-9f3a-d4ed922efbd2" TYPE="ext4"
/dev/sdb5: UUID="4e845c4b-82a9-4191-9634-d58815d2f39a" TYPE="swap"
Disk /dev/sda: 30.1 GB, 30060527616 bytes
255 heads, 63 sectors/track, 3654 cylinders, total 58711968 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: 0x00000000
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders, total 39070080 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: 0x000f11a2
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 35010559 17504256 83 Linux
/dev/sdb2 35012606 39069695 2028545 5 Extended
/dev/sdb5 35012608 39069695 2028544 82 Linux swap / Solaris
答案1
您可以使用以下命令更改所有权:
sudo chown newusername.newusername -R /path_to_folder
那么你就能够访问你的旧文件了。