consistent mounting of disks
-
- Warlord
- Posts: 767
- Joined: 04 Jan 2014, 04:27
- Distribution: Porteus 5.0 x64 OpenBox
- Location: NZ
- Contact:
consistent mounting of disks
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?
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Re: consistent mounting of disks
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.
Just ask fdisk -l how the disks and partitions are sorted in a currently running Linux.
Cheers!
Yours Rava
Yours Rava
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: consistent mounting of disks
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.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?
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.