LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2019, 12:05 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,527

Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Live slack on SD Card.... how to....


I've been looking at this for a day or two, or so..
I "fixed"/ modified this script iso2usb so it can see and give the mmcblk0 info (more better).
Code:
show_devices() {
  local MYDATA="${*}"
  if [ -z "${MYDATA}" ]; then
    MYDATA="$(ls --indicator-style=none /sys/block/ |grep -Ev '(ram|loop|dm-|mcc)')"
  fi
  echo "#"
  echo "# Removable devices detected on this computer:"
  for BD in ${MYDATA} ; do
   #checking for present of SD Card to show
	if [[ "${BD}" =~ "mmcblk" ]] ; then 
		[ $(cat /sys/block/${BD}/removable) -eq 0 ] &&
			{ echo "# /dev/${BD} :$(( $(cat /sys/block/${BD}/size) / 2048)) MB" ; }
	
	elif [ $(cat /sys/block/${BD}/removable) -eq 1 ]; then
      echo "# /dev/${BD} : $(cat /sys/block/${BD}/device/vendor 2>/dev/null) $(cat /sys/block/${BD}/device/model 2>/dev/null): $(( $(cat /sys/block/${BD}/size) / 2048)) MB"
    fi
  done
  echo "#"
} # End of show_devices()
but thing is when I tried that nope, I get an error, and it keeps leading me back to the variable named, dunt dunt dunt .. SLACKWARELIVE

when I look inside of that file it creates on the device, when I mount them and look in side of the files, both usb stick and sd card they are empty.


I cannot find or figure out how the word name of a file SLACKWARELIVE is telling it to look in sdx's ( ie sda sdb sdc ect) when booting from sd card it now needs to change it to look for mmcblk0 where the files are stored, mmcblk0p3 in this case.

that is where I believe this is failing. I just cannot figure out how to rectify it.
Attached Thumbnails
Click image for larger version

Name:	no-slackwasrelive-IMG_20190508_125346.jpg
Views:	14
Size:	259.0 KB
ID:	30542  

Last edited by BW-userx; 05-11-2019 at 12:35 PM.
 
Old 05-11-2019, 12:29 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,499

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Why do you post this here instead of on my blog? I doubt people here will be interested in my script and your hack of it.
I also do not see what you are trying to do or what makes it "more better", sorry.
Also, if you do not post exact commands and exact error messages I can not help you.
 
Old 05-11-2019, 12:40 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,527

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Quote:
Originally Posted by Alien Bob View Post
Why do you post this here instead of on my blog? I doubt people here will be interested in my script and your hack of it.
I also do not see what you are trying to do or what makes it "more better", sorry.
Also, if you do not post exact commands and exact error messages I can not help you.
now I got a go find blog and a membership then search through that and learn that . ..

it causes it to show the mmcblk0 info which it was not doing.

image is what I posted, anything else there are no other error messages. it keeps sighting that SLACKWARELIVE

If I got the git repo on my other drive ( sda which is the data storage, this laptop uses sdb to boot from) which is outside of the home it looks at that and fails. as you stated you were going to look into? but I heard nothing back on that is another post in here.

this image is for usb stick which works, look at the SLACWARELIVE, then compare it to the other image in 1st post where it is not working, that is what it looks to be the issue.
Attached Thumbnails
Click image for larger version

Name:	work-IMG_20190511_084237.jpg
Views:	8
Size:	269.7 KB
ID:	30543  

Last edited by BW-userx; 05-11-2019 at 12:45 PM.
 
Old 05-11-2019, 12:47 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,499

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Your edit of iso2usb.sh has nothing to do at all with the screenshot which shows a booting Slackware Live which fails to find its medium.
The "SLACKWARELIVE" is the marker which the init script uses when it writes a log message to the screen.
 
Old 05-11-2019, 12:50 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,499

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Quote:
Originally Posted by BW-userx View Post
now I got a go find blog and a membership then search through that and learn that . ..
I find that hard to follow... there is a "my blog" link at the bottom of all my posts and posting there does not require any membership;

Quote:
it causes it to show the mmcblk0 info which it was not doing.
Your hack seems to indicate that the SD card is seen by the system as non-removable? My liveslak scripts only act on removable media.
 
Old 05-11-2019, 12:55 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,527

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Quote:
Originally Posted by Alien Bob View Post
I find that hard to follow... there is a "my blog" link at the bottom of all my posts and posting there does not require any membership;


Your hack seems to indicate that the SD card is seen by the system as non-removable? My liveslak scripts only act on removable media.
so how do we change that?

color me ignorant, but if they only act on removable media, then why does it add it to the mmcblk0 which is considered non-removable which in fact are removable because I can remove the sd card.

you are the one that fixed that issue of being able to install it onto a sd card, not I.

Last edited by BW-userx; 05-11-2019 at 01:02 PM.
 
Old 05-11-2019, 01:11 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,499

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Quote:
Originally Posted by BW-userx View Post
so how do we change that?

color me ignorant, but if they only act on removable media, then why does it add it to the mmcblk0 which is considered non-removable which in fact are removable because I can remove the sd card.

you are the one that fixed that issue of being able to install it onto a sd card, not I.
It is Linux functionality - ask Linus Torvalds perhaps. I just inserted the SD card of my camera, and indeed it shows as non-removable in /sys/block/mmcblk0/removable
 
Old 05-11-2019, 01:14 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,527

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Quote:
Originally Posted by Alien Bob View Post
It is Linux functionality - ask Linus Torvalds perhaps. I just inserted the SD card of my camera, and indeed it shows as non-removable in /sys/block/mmcblk0/removable
mhumamamama you just gave me a reason to write him an email.. cheers!
 
Old 05-11-2019, 01:51 PM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,499

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
If you just want to write the ISO to a SD card, you pass the "-o /dev/mmcblk0" option to the iso2usb.sh script and it will not check for the "removable" attribute. So that should work without hacking that script. The script should properly find / create the partitions after my latest modifications.
 
Old 05-11-2019, 01:59 PM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,527

Original Poster
Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
Quote:
Originally Posted by Alien Bob View Post
If you just want to write the ISO to a SD card, you pass the "-o /dev/mmcblk0" option to the iso2usb.sh script and it will not check for the "removable" attribute. So that should work without hacking that script. The script should properly find / create the partitions after my latest modifications.
iso2usb writes to the mmcblk0 just like you say but it does not boot it, as in the image I posted on the fist post in here. grub should point to the mmcblk0p3 boot dir yes? it has to be something to do with grub reg or efi grub, SLACKWARELIVE whatever that really does.

because I always have to hit esc to get my BIOS boot list order then pick efi boot and navigate to the grub efi to boot it. on both usb and sd card.

I am still looking at it.

this --prefix=${EFIDIR} var being used, maybe
Code:
./EFI/BOOT/make-grub.sh:grub-mkimage --format=${EFIFORM}-efi --output=boot${EFISUFF}.efi --config=grub-embedded.cfg --compression=xz --prefix=${EFIDIR} ${GMODLIST}
in grub-embedded.cfg there is not dir
Code:
search --file --no-floppy --set=root /EFI/BOOT/SLACKWARELIVE
Code:
$ ls /mnt/tmp/EFI/BOOT
SLACKWARELIVE  grub-embedded.cfg  help.txt  lang.cfg      theme
bootx64.efi    grub.cfg
and that file is just by name of file, with nothing in it.

so how does that direct it to look for the files it needs to actually boot, as this is the same set up for a usb stick (obviously) and it finds the dir it needs on the usb stick.

Last edited by BW-userx; 05-11-2019 at 02:09 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To: Remastering Slackware14.2/current using Linux-live-slack-050419 into a Live CD/DVD/USB/HDD linus72 Slackware 0 05-05-2019 05:44 PM
ping from Slack not to Slack ( Usb wireless card Atheros AR9271) andre.it Linux - Networking 1 07-22-2012 02:19 PM
USB multi-card reader; only one card can be mounted in Slack 10. KidsWriter71 Linux - Hardware 6 09-11-2004 07:24 PM
cannot successfully ping xp>slack or slack>xp C++freak Linux - Networking 1 02-28-2003 11:40 PM
Slack is being very very very slack ExEleven Slackware 9 08-28-2002 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration