Page 1 of 1

Drive letters

Posted: 2021-05-07 16:39
by millpond
My problem here involves both Linux and its dual boot Win.

Original setup was:
Drive 0 -C .5T NTFS Win7 Boot
Drive1 - Buster .4T ext4
Drive2 -D 1TB NTFS Storage

New setup is:
Drive0 Buster 1T on OLD Drive 2
Drive 1 New 2 TB NTFS (Setup as E)
Drive 2 OLD .5T Win7 Boot

Booting to Linux everything works fine.

HOWEVER - Booting to Win also works fine, but the 2TB drive will not move from E to D with diskpart. (It gives an error).
Problems are arising from the fact that while a 'storage' drive it also has hundreds of symlinks for system components like Cygwin and Anaconda!

While diskpart gives no clue in Win, AOEMEI Partition Assistant does show that the OLD Drive 1Tb drive that is now Buster, and formatted from the 10.9 Live DVD install has still *somehow* retained its D: drive label (which is NOT recognized on the Win file system - and does not show in diskpart).

So the question appears to be:
How to remove a Win drive letter (D:) from a Linux drive???

Re: Drive letters

Posted: 2021-05-07 17:13
by peter_irich
You can relate the SATA port's numbers on the mother board with your disks. When you enter command

Code: Select all

lsscsi --verbose
then ataX will be the port's numbers on the MB.
Or there are symlinks like ~hostX in /sys/bus/scsi/devices/, in its also there are ataX.

Peter.

Re: Drive letters

Posted: 2021-05-09 17:44
by millpond
Below is the output of that command
sda is Buster
sdb is Storage (E - Should be D:)
sdc is Win7 (C:)
sdd is DVD ( moved to drive O in Win , but stated as E here)

Code: Select all

[0:0:0:0]    disk    ATA      Hitachi HUA72101 AB0A  /dev/sda 
  dir: /sys/bus/scsi/devices/0:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0]
[1:0:0:0]    disk    ATA      Hitachi HUA72303 AA10  /dev/sdb 
  dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0]
[2:0:0:0]    disk    ATA      WDC WD5000AACS-6 0A01  /dev/sdc 
  dir: /sys/bus/scsi/devices/2:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.5/ata3/host2/target2:0:0/2:0:0:0]
[3:0:0:0]    cd/dvd  ATAPI    iHAS124   E      4L08  /dev/sr0 
  dir: /sys/bus/scsi/devices/3:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.5/ata4/host3/target3:0:0/3:0:0:0]
[4:0:0:0]    disk    Hitachi  HUA722020ALA331  JKAO  /dev/sdd 
  dir: /sys/bus/scsi/devices/4:0:0:0  [/sys/devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.0/host4/target4:0:0/4:0:0:0]
list_ndevices: scandir: /sys/class/nvme/: No such file or directory
NVMe module may not be loaded
The ATAPI DVD is sitting on E though I had reassinged it in diskpart (win) to O: and it shows it as such. /sdb in Win stick at E and diskpart will not let me relocate it to the empty drive D: spot.
/sdd is a USB drive, not mounted normally.
Below shows it more cleanly :

Code: Select all

(base) root@buster:~#  lsscsi -k
[0:0:0:0]    disk    ATA      Hitachi HUA72101 AB0A  /dev/sda 
[1:0:0:0]    disk    ATA      Hitachi HUA72303 AA10  /dev/sdb 
[2:0:0:0]    disk    ATA      WDC WD5000AACS-6 0A01  /dev/sdc 
[3:0:0:0]    cd/dvd  ATAPI    iHAS124   E      4L08  /dev/sr0 
[4:0:0:0]    disk    Hitachi  HUA722020ALA331  JKAO  /dev/sdd 
BTW - I got an informative PM about
http://multibooters.com/articles/window ... tters.html
But I could seem to reply (with many thanks!)

Re: Drive letters

Posted: 2021-05-09 18:16
by millpond
Addendum:
My Guess is that the solution lies here:
http://www.multibooters.co.uk/articles/ ... tters.html

Currently, diskpart says there is a *conflict* when trying to reassign E to D .

I am considering wiping the D: key, can reassigning E to it. If I can!

I am no messing with C: drive so hopefully all goes well.

Re: Drive letters

Posted: 2021-05-09 18:52
by dilberts_left_nut
Moved to Offtopic - Windows issue.

Re: Drive letters [Solved]

Posted: 2021-05-09 19:56
by millpond
Well, the issue didnt start until Buster was installed!
And i was hoping solution would have Linux utils to fix it, since Win utilities failed to work.

However, the post, where it was - was productive.
Especially as issues on dual booting should *NOT* be considered 'Off Topic'.

The solution is here:
http://www.multibooters.co.uk/articles/ ... tters.html
Edit the registry and just change the drive letter (E: here) to (D: here). Reboot. All is well