Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › Can't target /dev/mmcblk0 when installing
- This topic has 8 replies, 6 voices, and was last updated Dec 5-1:19 pm by anticapitalista.
-
AuthorPosts
-
December 3, 2017 at 2:52 am #3338Member
Redsith
Hi,
Trying to install antix, but i can’t as the installer script wont take my drive label (/dev/mmcblk0) and wants either hdx or sdxThanks
December 3, 2017 at 4:02 am #3341Moderator
caprea
December 3, 2017 at 4:48 am #3342Forum Admin
anticapitalista
::Do you mean the cli-installer?
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
December 3, 2017 at 11:10 am #3361Anonymous
::I checked
cli-installer –help
and it seems to me the expected commandline, in order to target /dev/mmcblk0, would be:
cli-installer mmcblk0December 3, 2017 at 4:20 pm #3369Member
tbuser48
::Just a comment on a UEFI install with a mmcblk1 (in my case)…with a fat partition and a ext4 partition, gparted was naming them /mmcblk1p1 (fat) and /mmcblk1p2 (ext4). GPT by the way.
The punchline is that several programs (Boot Repair for one) were consistently dropping the p from the hdd naming.
Boot Repair was trying to use mmcblk11. I’m wondering since this is a fat partition if Boot Manager was choking on 9 characters.2 Machines and at least 6 installs. IOW it didn’t happen just once.
Just a comment. 🙂
December 5, 2017 at 1:48 am #3405MemberRedsith
::Hi,
This doesnt work, I did try cli-installer mmcblk0
It does let me partition the drive, but when it asks for root partition i cant input mmcblk0p2 or /dev/mmcblk0p2 or /media/mmcblk0p2 (fstab puts it in media)mmcblk0p2 invalid. Retry
/dev/mmcblk0p2 invalid. Retry
/media/mmcblk0p2 invalid. RetryI’m doing a core install.
December 5, 2017 at 7:47 am #3412Memberwean_irdeh
::I checked
cli-installer –help
and it seems to me the expected commandline, in order to target /dev/mmcblk0, would be:
cli-installer mmcblk0Hi,
This doesnt work, I did try cli-installer mmcblk0
It does let me partition the drive, but when it asks for root partition i cant input mmcblk0p2 or /dev/mmcblk0p2 or /media/mmcblk0p2 (fstab puts it in media)mmcblk0p2 invalid. Retry
/dev/mmcblk0p2 invalid. Retry
/media/mmcblk0p2 invalid. RetryI’m doing a core install.
This is because the cli-installer is doing sanity check to make sure the root partition is in form of sdxy or hdxy,
where x is letter ‘a-k’ and y is number 1-19,
thus, any other partition such as sdj20, hdu30, or mmcblk0p2 will be treated as invalid input
although the restriction is only applies when input the root partition, not home partitionThe dirty workaround is, edit the file manually by running
vi /usr/local/bin/cli-installerthen navigate into line 90 by pressing down key until you get
getroot() {remove the line containing
while [[ "$ans" -ne 0 ]]and
doby navigate into the line first and then press ‘dd’
remove any line after
read -p $"Root partition (hda1, sda2, etc): " rdrvuntil you found the closing curly bracket so the end result will be this one
line 90-93:getroot() { ans=1 read -p $"Root partition (hda1, sda2, etc): " rdrv }There, good to go. Press :wq to save the file. Now you can input the partition in cli-installer: mmcblk0p2. Remember, once you input the root partition, the cli-installer will immediately remove any files in it without warning and I’m not responsible with any damages caused by my suggestion above
- This reply was modified 5 years, 5 months ago by wean_irdeh.
December 5, 2017 at 1:03 pm #3422Anonymous
::Thanks for the excellent writeup explaining how to accomplish the workaround!
Should staff now re-title the topic “how to target /dev/mmcblk0 when installing” and move it to Tips-n-Tricks ?December 5, 2017 at 1:19 pm #3424Forum Admin
anticapitalista
::Thanks for the excellent writeup explaining how to accomplish the workaround!
Should staff now re-title the topic “how to target /dev/mmcblk0 when installing” and move it to Tips-n-Tricks ?If the OP agrees, yes. I also agree it is a great write up. Thanks
When I get time, I’ll fix it properly in the cli-installer.
- This reply was modified 5 years, 5 months ago by anticapitalista.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
-
AuthorPosts
- You must be logged in to reply to this topic.