consistent mounting of disks

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
rych
Black ninja
Black ninja
Posts: 49
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

consistent mounting of disks

Post#1 by rych » 30 Nov 2015, 13:12

I'd like to have my host system disk that is labelled "Windows" (there is always such a disk) to be always mounted on /mnt/sda1. Where do I edit the way Porteus mounts disks making it use /dev/disk/by-label/Windows?

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: consistent mounting of disks

Post#2 by Rava » 24 Dec 2015, 13:54

Like almost all Linux systems, Porteus mounts the partitions the same way they are physical named, e.g. /dev/sda1 will mounted as /mnt/sda1.

Just ask fdisk -l how the disks and partitions are sorted in a currently running Linux.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 3061
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: consistent mounting of disks

Post#3 by Ed_P » 24 Dec 2015, 15:42

rych wrote:I'd like to have my host system disk that is labelled "Windows" (there is always such a disk) to be always mounted on /mnt/sda1. Where do I edit the way Porteus mounts disks making it use /dev/disk/by-label/Windows?
While Windows sees only the partitions it is meant to see, Linux/Porteus sees all of the partitions on the hard drive and on almost all systems bought in the past 10 yrs there are hidden partitions before the Windows partition. Vendor recovery partitions and then Windows system partitions come first so the Windows partition in Linux is usually sda2 or sda3.

If you want the Windows partition to be sda1 you need to repartition the hard drive and switch to a version of Windows that doesn't require a hidden reserve partition for it's BCD file or UEFI system.
Ed

Post Reply