SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is there a way to get slack live on a SD Card and not a usb stick with persistence. I've been hacking on iso2usb but not getting too far.
it does create all 3 partitions, it just seems to not be able to format them so it fails?
Code:
userx@slack.current.edo:/media/data1/liveslak
$ sudo ./iso2usb.sh -i slackware64-live-current.iso -o /dev/mmcblk0 -f -c 70%
#
# We are going to format this device (erase all data) - '/dev/mmcblk0':
cat: /sys/block/mmcblk0/device/vendor: No such file or directory
cat: /sys/block/mmcblk0/device/model: No such file or directory
# ---------------------------------------------------------------------------
# Vendor :
# Model :
# Size : 14804 MB
# ---------------------------------------------------------------------------
#
# FDISK OUTPUT:
# GPT fdisk (gdisk) version 1.0.4
#
# Partition table scan:
# MBR: protective
# BSD: not present
# APM: not present
# GPT: present
#
# Found valid GPT with protective MBR; using GPT.
# Disk /dev/mmcblk0: 30318592 sectors, 14.5 GiB
# Sector size (logical/physical): 512/512 bytes
# Disk identifier (GUID): 2C695BD8-65D4-4B53-A75E-BD45BEE98C37
# Partition table holds up to 128 entries
# Main partition table begins at sector 2 and ends at sector 33
# First usable sector is 34, last usable sector is 30318558
# Partitions will be aligned on 2048-sector boundaries
# Total free space is 4029 sectors (2.0 MiB)
#
# Number Start (sector) End (sector) Size Code Name
# 1 2048 30316543 14.5 GiB 0700
*** ***
*** If this is the wrong drive, then press CONTROL-C now! ***
*** ***
Or press ENTER to continue:
1+0 records in
1+0 records out
512 bytes copied, 0.151609 s, 3.4 kB/s
Found valid GPT with corrupt MBR; using GPT and will write new
protective MBR on save.
The operation has completed successfully.
Setting name!
partNum is 0
Setting name!
partNum is 1
Setting name!
partNum is 2
The operation has completed successfully.
The operation has completed successfully.
Disk /dev/mmcblk0: 30318592 sectors, 14.5 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 3DC8DAE9-77ED-46F5-A97E-0D14C323FF97
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 30318558
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 BIOS Boot Partition
2 4096 208895 100.0 MiB EF00 EFI System Partition
3 208896 30318558 14.4 GiB 8300 Slackware Linux
3:2:1 (legacy BIOS bootable)
/dev/mmcblk0
mkfs.fat 4.1 (2017-01-24)
mkdosfs: unable to open /dev/mmcblk01: No such file or directory
*** ./iso2usb.sh FAILED at line 635 ***
--- Cleaning up the staging area...
I just hacked in a hard code to sd card
Code:
# Either provide a block device, or else scan for a block device:
if [ -z "$TARGET" ]; then
if [ $SCAN -eq 1 ]; then
echo "-- Waiting ${SCANWAIT} seconds for a USB stick to be inserted..."
TARGET=/dev/mmcblk0
# TARGET=$(scan_devices)
if [ -z "$TARGET" ]; then
echo "*** No new USB device detected during $SCANWAIT seconds scan."
exit 1
else
TARGET=/dev/mmcblk0
# TARGET="/dev/${TARGET}"
fi
else
echo "*** You must specify the Live USB devicename (option '-o')!"
exit 1
Had a mmc install once that worked ok, until power management had cut off power to mmc reader (ricoh on acer) corrupting the partition.
I've given up at that point, maybe you will have better luck.
$ sudo ./iso2usb.sh -i /media/data1/slack_iso/slackware64-live-xfce-current.iso -o /dev/mmcblk0 -c 70%
#
# We are going to format this device (erase all data) - '/dev/mmcblk0':
# ---------------------------------------------------------------------------
# Vendor :
# Model :
# Size : 60906 MB
# ---------------------------------------------------------------------------
#
# FDISK OUTPUT:
# GPT fdisk (gdisk) version 1.0.4
#
# Partition table scan:
# MBR: protective
# BSD: not present
# APM: not present
# GPT: present
#
# Found valid GPT with protective MBR; using GPT.
# Disk /dev/mmcblk0: 124735488 sectors, 59.5 GiB
# Sector size (logical/physical): 512/512 bytes
# Disk identifier (GUID): 87958208-9B46-4D5D-B1ED-BB5FA4695C55
# Partition table holds up to 128 entries
# Main partition table begins at sector 2 and ends at sector 33
# First usable sector is 34, last usable sector is 124735454
# Partitions will be aligned on 2048-sector boundaries
# Total free space is 2014 sectors (1007.0 KiB)
#
# Number Start (sector) End (sector) Size Code Name
# 1 2048 4095 1024.0 KiB EF02 BIOS Boot Partition
# 2 4096 208895 100.0 MiB EF00 EFI System Partition
# 3 208896 124735454 59.4 GiB 8300 Slackware Linux
*** ***
*** If this is the wrong drive, then press CONTROL-C now! ***
*** ***
Or press ENTER to continue:
1+0 records in
1+0 records out
512 bytes copied, 0.00616721 s, 83.0 kB/s
Found valid GPT with corrupt MBR; using GPT and will write new
protective MBR on save.
The operation has completed successfully.
Setting name!
partNum is 0
Setting name!
partNum is 1
Setting name!
partNum is 2
The operation has completed successfully.
The operation has completed successfully.
Disk /dev/mmcblk0: 124735488 sectors, 59.5 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 494AE683-67EF-406C-A943-6ED8C6ADE6EC
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 124735454
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 BIOS Boot Partition
2 4096 208895 100.0 MiB EF00 EFI System Partition
3 208896 124735454 59.4 GiB 8300 Slackware Linux
3:2:1 (legacy BIOS bootable)
TARGET1->:
mkfs.fat 4.1 (2017-01-24)
mkdosfs: unable to open mmcblk0p1: No such file or directory
*** ./iso2usb.sh FAILED at line 638 ***
--- Cleaning up the staging area...
changed that line to yours, and echo'ed it too just to see what it is suppose to have. it is blank???
results:
see images, 1 is a 16GB, the other is a SDXC 64GB SD Card for the xfce mini build.
I understand from this that the SD card was properly written using my modified script.
But when you boot it next, the Live init process fails to find the SD card. I guess I will have to enhance the liveinit.tpl file as well to add support for SD cards. I'll have a look.
I understand from this that the SD card was properly written using my modified script.
But when you boot it next, the Live init process fails to find the SD card. I guess I will have to enhance the liveinit.tpl file as well to add support for SD cards. I'll have a look.
Hmmm looking at the first picture, it says "Live media found at /dev/sda1" which will in no way be your SD card. Did you perhaps have a CDROM inserted in the drive with a Slackware Live ISO copied onto it? Because when liveslak encounters multiple media containing Slackware Live, it will just pick the first one in the list and that will not always be the correct one.
The second picture has kernel symbol errors. Did you add a custom kernel and/or modules to that ISO image?
Hmmm looking at the first picture, it says "Live media found at /dev/sda1" which will in no way be your SD card. Did you perhaps have a CDROM inserted in the drive with a Slackware Live ISO copied onto it? Because when liveslak encounters multiple media containing Slackware Live, it will just pick the first one in the list and that will not always be the correct one.
The second picture has kernel symbol errors. Did you add a custom kernel and/or modules to that ISO image?
that is what I was wondering why is it looking at sda1.
why is it is showing anything about trying to get to sda1?
With you mentioning a CDROM, that has to be (maybe) for the HP EliteBook 8460p that has SATA hdd, and a combo DVD / secondary hdd setup, where I have a secondary hdd in lue of the DVD that use to be in it. (perhaps).
I have the directories that have all of the staging and liveslck on that hdd. Because my root partition on this Laptop is at no room, it kept going to zero space left, to the point it is now screwed up when I did an system update and I am now getting file too short errors when it tries to use any lib.so and I can no longer startx having given it room again. but that is another issue I got a deal with on that laptop.
HP EliteBook 8460p
32GB ssd and 250GB ssd
I got two distros installed on a 32GB ssd, VOID Linux and Slack current, and I now it is running out of space on both during updates. so I am sitting here wondering what or which one to remove. Slack current is taking up more than 15GB. which this is totally side tracking this SD Card issue.
------------------
the other Laptop is a HP EliteBook 840 g2 No CD/DVD and as far as I see only gives me SD Card boot option when I use the UEFI and legacy combo or pure UEFI boot option in BIOS. SATA hdd, and M.2 PCIe Solid State Drive. that M.2 is seen as /dev/sdb and that is where I have to direct it to install grub and boot from sdb, and not sda. That (sda) is being used as a data storage drive.
Just trying to boot that in Legacy mode the BIOS removes the option to use the SD Card off the list in BIOS.
I probably gave you more info then needed/wanted, so while you're picking your brain on that, I'll be trying to figure out what to do with this no space left hp 8460p laptop, and dealing with that, something I did not have on my list of things to do, before I can get back to the SD Card thing.
I just did yours because the other messed up so I did it to see what it would do, then posted back my results. as I am now dealing with slack no room screwed up update on the hp 8460p right now, I'll get back to your request when I am done with that. sorry I cannot post that put someone on hold music here. or I'd play you something nice to listen to.
Or as I am on the usb slack stick right now on the hp 8460p to redo my partitions so I can fix this dual distro no room left situation. so...
this is off a fresh install of current iso and a system update
now what?
Code:
userx@slack.curry.org:/media/data1/liveslak
$ sudo ./make_slackware_live.sh
-- Loading configuration file.
#SL_REPO:
-- Creating liveslak 1.3.1.1 'XFCE' image (based on Slackware-current x86_64).
Parallel unsquashfs: Using 8 processors
7 inodes (12 blocks) to write
[=================================================================|] 12/12 100%
created 3 files
created 2 directories
created 4 symlinks
created 0 devices
created 0 fifos
-- Configuring the base system.
chroot: failed to run command ‘/usr/sbin/chpasswd’: No such file or directory
*** ./make_slackware_live.sh FAILED at line 1420 ***
--- Cleaning up the staging area...
userx@slack.curry.org:/media/data1/liveslak
$ ls /usr/sbin/chpasswd
/usr/sbin/chpasswd
userx@slack.curry.org:/media/data1/liveslak
$ file /usr/sbin/chpasswd
/usr/sbin/chpasswd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, with debug_info, not stripped
userx@slack.curry.org:/media/data1/liveslak
$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.