You are not logged in.
Hello:
... that should be
# apt install libc6:armhf
I'm afraid that won't work.
root@rpidevuan:/home/groucho# apt install libc6:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc6:armhf : Depends: libgcc1:armhf but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/home/groucho#... use
# apt install ./artisan-linux-2.1.2_raspbian-stretch.debto pull in the dependencies automatically.
No luck either ...
root@rpidevuan:/home/groucho/Downloads# apt install ./artisan-linux-2.1.2_raspbian-stretch.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/home/groucho/Downloads# As you can see in both instances the problem of dependecy is the same:
--- snip ---
The following packages have unmet dependencies:
libc6:armhf : Depends: libgcc1:armhf but it is not going to be installed
--- snip ------ snip ---
The following packages have unmet dependencies:
artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not installed
--- snip ---Not one to give up, I insisted with the new arrival at the apt rebellion ...
root@rpidevuan:/# apt install libgcc1:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not going to be installed
libgcc1:armhf : Depends: gcc-6-base:armhf (= 6.3.0-18+deb9u1) but it is not going to be installed
Depends: libc6:armhf (>= 2.4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/# ... but it did not work.
Thanks a lot for your input.
Cheers,
A.
Helloo:
Finally got my VGA/HDMI thingy and went about installing the coffee roaster software.
At first it would not install because of an architecture problem.
Some google and it was solved via dpkg --add-architecture armhf.
Still have to figure out the armhf / ARM64 thing.
So I then it installed properly but when I tried to start it, it would not.
I tried reinstalling the application and got this:
root@rpidevuan:/home/groucho/Downloads# dpkg -i artisan-linux-2.1.2_raspbian-stretch.deb
Selecting previously unselected package artisan:armhf.
(Reading database ... 37452 files and directories currently installed.)
Preparing to unpack artisan-linux-2.1.2_raspbian-stretch.deb ...
Unpacking artisan:armhf (2.1.2) ...
dpkg: dependency problems prevent configuration of artisan:armhf:
artisan:armhf depends on libc6 (>= 2.17).
dpkg: error processing package artisan:armhf (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
artisan:armhf
root@rpidevuan:/home/groucho/Downloads#
I'm guessing that libc6 refers to libc6:arm64, which is present in the system ...
groucho@rpidevuan:~$ uname -a
Linux rpidevuan 4.16.14-v8+ #1 SMP PREEMPT Tue Jun 5 18:50:10 CEST 2018 aarch64 GNU/Linux
groucho@rpidevuan:~$ groucho@rpidevuan:~$ locate libc6
/usr/share/doc/libc6
/usr/share/doc/libc6/BUGS
/usr/share/doc/libc6/NEWS.Debian.gz
/usr/share/doc/libc6/NEWS.gz
/usr/share/doc/libc6/README.Debian.gz
/usr/share/doc/libc6/README.hesiod.gz
/usr/share/doc/libc6/changelog.Debian.gz
/usr/share/doc/libc6/changelog.gz
/usr/share/doc/libc6/copyright
/usr/share/lintian/overrides/libc6
/var/lib/dpkg/info/libc6:arm64.conffiles
/var/lib/dpkg/info/libc6:arm64.list
/var/lib/dpkg/info/libc6:arm64.md5sums
/var/lib/dpkg/info/libc6:arm64.postinst
/var/lib/dpkg/info/libc6:arm64.postrm
/var/lib/dpkg/info/libc6:arm64.preinst
/var/lib/dpkg/info/libc6:arm64.shlibs
/var/lib/dpkg/info/libc6:arm64.symbols
/var/lib/dpkg/info/libc6:arm64.templates
/var/lib/dpkg/info/libc6:arm64.triggers
groucho@rpidevuan:~$ groucho@rpidevuan:~$ cat /usr/share/doc/libc6/copyright
This is the Debian prepackaged version of the GNU C Library version 2.23.
--- snip ---... or to libc6:armhf which is not and I cannot find in the repository:
root@rpidevuan:/home/groucho# apt-get install libc6-armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libc6-armhf
root@rpidevuan:/home/groucho# The nearest thing I have found is libc6-armhf-cross, but when I try to install it I get this:
root@rpidevuan:/home/groucho# apt-get install libc6-armhf-cross
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/home/groucho# Running apt --fix-broken install gets rid of artisan:armhf but that does not solve the problem, which apparently needs an uninstallable library.
Any ideas?
Thanks in advance,
A.
Hello:
... uploaded my Devuan-pi4-os64 ...
... is vcgencmd.tar.xz
Great!
... believe will work for you.
Yes.
Indeed it does.
... need to make a deb ...
It would be make installing it more straightforward.
But seeing it is an ARM64 thing, maybe it would be best (?) for it to be in the image/installer.
In the meanwhile, those of us who are tinkering with Devuan/RPi can manage perfectly with tar.
The files get set up in the proper places Devuan-wise so no issues.
It need to be run it as root otherwise you get an error.
eg:
groucho@rpidevuan:~$ /usr/bin/vcgencmd measure_temp
VCHI initialization failed
groucho@rpidevuan:~$ root@rpidevuan:/home/groucho# /usr/bin/vcgencmd measure_temp
temp=35.4'C
root@rpidevuan:/home/groucho# Thank you so much for doing this. =-)
Best,
A.
Hello:
... loaded in: /etc/modules
Indeed ...
... information for a module via sysfs in /etc/rc.local or other place, if you find appropriate in a daemon.
I'll take your word for it. =-)
I have no idea how all that works.
All I know is that if I need a module, that is one way to load it.
... creating a layer above another layer of complexity, and then mixing in another ...
The thing is that vcgencmd is specific to Broadcom chips but we don't have a *.deb for it.
And all the GPIO stuff that the RPi uses for things much more complex than the one I am implementing does not seem (at least I have not found it) to be anywhere but in Raspbian.
... greatest thing in the universe...
It would seem that ARM64, as far as Linux is concerned, is systemd land.
Exclusively.
Thanks for your input.
Cheers,
A.
Hello:
You can compile it ...
Yes, I also saw that link in a post at the raspberry pi forums.
But I also read a number of other posts that pointed out that it was not as straightforward as it would seem.
My point would be that, as it seems to be a rather important bit (?) of what is needed to get ARM64 Debian to work smoothly ...
Shouldn't it be in the repository or better yet, part of the image/installation?
And then there's the GPIO stuff that apparently depends on systemd. =^ *'
Thanks for your input.
Cheers,
A.
Hello:
... best idea ...
Quite so ...
As you may have read, originally I started powering the HDD from one of the RPi's USB ports.
There was a problem with the SDD not spinning up but it was nothing other than the usual in these cases: the length and gauge of the cable with the micro-USB plug.
I wonder how they say too long / too thin in Chinese? 8^7
So I just got rid of it through some light PS surgery and replaced it with nothing.
The PS has three comfortable USB charging ports on the back and are enough.
Done that, I started powering the RPi with shorter and much better quality power only usb cable (Blackberry phone, I think) from one of the USB ports.
Voltage measurements taken at idle read 5.14V which would seem to be correct.
Pi's cut usb power, long before ...
I also thought as much.
So I switched to powering the HDD from one of the PS's USB ports.
Not being under RPi control, the HDD's shut down timing/scheme would be different.
ie: not as sudden.
Well ...
Turns out that the HDD's shutdown is exactly the same whether the HDD is powered from a USB port on the RPi or a USB port on a separate power supply.
A separate power supply that is not switched off when the RPi is shut down.
Whatever controls this HDD shutdown is within the Devuan image's configuration and evidently does it under the assumption that it is controlling a SD Card and not a HDD.
But I have not been able to figure out what/where it is.
I say this because I have observed that this same HDD does not shut down in the same manner when connected to my Asus 1000HE netbook.
Thanks for your input.
Cheers,
A.
Hello:
Working on my RPi3B+ hardware setup I have come across a few things for which I am still trying to wrap my head around.
Evidently ARM is not x86 and ARM64 is not x86_64.
One of the things that I'm not getting is the configuration of things related to the GPIO pins.
It seems that most if not all the settings for the GPIO pins rely on systemd, which Raspbian uses.
Another thing I have come across is the fact that vcgencmd is not in the image I've installed and cannot be installed from the repository.
And there's probably more I will be finding out about as I make progress with my installation/configuration.
Is there a way of getting around all this or will I end up having to use Raspbian in my RPi3B+?
Thanks in advance,
A.
Hello:
... only one swap partition (or swapfile) the priority has no importance.
Yes, I had read about that.
But then I asked myself about the swap priority beng -2 in particular this image (Devuan ascii ARM64) and thought that is was because there was another one somewhere.
ie: a swapfile somewhere in the SD Card, which I do not use save for reading the rootfs.
Then I concluded (as I mention above) that is was due to the use of an SD Card.
... choose the priority if you have more swap partitions (or swapfiles).
I have only one.
... the UUID is right ...
Yes, that's checked.
... change the priority of swap it is the swappiness of the system you should mess with (in /etc/sysctl.conf).
I recall having used that at some time with my workstation which has 8Gb RAM.
... wait until the system is otherwise behaving well.
Quite so ...
I need to get my VGA/HDMI adaptor (stuck somewhere in the mail delivery pipe) and set up the desktop/coffee roasting software.
That will be the test and then I'll be able to adjust swap accordingly.
Have a nice day
You too ... =-)
Thanks for your input.
Cheers,
A.
Hello:
... recreate the "swap signature" ...
Unfortunately that didn't work and somewhere along the line the partition's UUID got changed.
The RPi is originally intended to be used with an SD Card, but I share the opinion that SD Cards were not really intended for the type of use an RPi gives it but for use in cameras and such devices large ie: files written once, read many times over and once moved, eventually deleted.
Hence a swap file/partition being set with a priority of -2.
But I have not seen this swap priority setting in any other Linux installs/images.
So I have to conclude that it is being set as the default value somewhere.
Which begs the question: where is it set?
Any ideas?
My guess is that it is in one of the init files (?), I'll have to look around.
In any case, I found a way to permanently set the swap priority here.
This is how:
1. check the swap partition/file exists:
root@rpidevuan:/home/groucho# free
total used free shared buff/cache available
Mem: 887604 36952 794780 1292 55872 835068
Swap: 3145724 0 3145724
root@rpidevuan:/home/groucho# 2. check to see where it is mounted
root@rpidevuan:/home/groucho# blkid
--- snip ---
/dev/sda7: UUID="fd8f0765-c88e-43d1-8b8d-9b734fb6322a" TYPE="swap" PARTUUID="d34db33f-07"
root@rpidevuan:/home/groucho# 3. turn it off
root@rpidevuan:/home/groucho# swapoff /dev/sda74. check that it is off
root@rpidevuan:/home/groucho# swapon -s
root@rpidevuan:/home/groucho# 5. make a backup copy of your /etc/fstab
root@rpidevuan:/home/groucho# cp -p /etc/fstab /etc/fstab.bak
root@rpidevuan:/home/groucho#6. edit /etc/fstab and add pri=X in place of defaults, with X being the desired value and reboot.
7. check the result
root@rpidevuan:/home/groucho# swapon -s
Filename Type Size Used Priority
/dev/sda7 partition 3145724 0 1
root@rpidevuan:/home/groucho#root@rpidevuan:/home/groucho# free
total used free shared buff/cache available
Mem: 887604 37884 793036 1292 56684 834100
Swap: 3145724 0 3145724
root@rpidevuan:/home/groucho# I opted for a value of 1 but I'll have to check and see how it behaves once I finish my installation and get the coffee roasting software working.
Cheers,
A.
Hello:
... it goes deep..
... $HOME/.config directory.
Quite so.
As a precautionary measure, I only used the appimage version but it also writes to $HOME/.config.
So, after using it I'd just exit the application and delete the config file it wrote.
I used it last night without any issue and this morning, for unknown reasons, the application would not start.
So I deleted everything etcher related from my system, downloaded the appimage version and tried again.
No dice.
It won't start.
I have not run any system updates/upgrades since the last time I used it, so I really don't think this could be due to some system glitch/incompatibility.
So I'm back to (and will stay with) the well known and trusty dd.
If there's anything I should look into, please advise.
Thanks in advance,
A.
Hello:
If you find a very low power harddrive ...
I came across a drive made an PATA model by Transcend.
Could be used with any old USB to 2.5" IDE adaptor.
The specs are these:
2.5" PATA SSD
TS32GPSD330
---
Capacities vary from 32Gb to 128Gb
---
DC +5V 0.3A <-------- This
https://www.transcend-info.com/Embedded/Products/No-836
I don't know if their SATA SSD drives have the same power spec.
https://www.transcend-info.com/Search.aspx?q=sata+2.5
Cheers,
A.
Hello:
... use halt -p, that should close files & unmount before ...
Like I mentioned I use sudo shutdown -h now.
If I do sudo halt -p it will have (it has) the same effect I describe in my OP (as far as I know) as they are mostly the same.
ie: shutdown -h = shutdown --halt
... microSDHC card to boot from plus a HDD as / ...
Yes, that is exactly what I am doing.
... has the bootfs on a 2.0Gb SD card and the rest of the system on a 40Gb IDE HDD ...
Thanks a lot for your input.
Cheers,
A.
Hello:
I'm currently in the process of setting up the hardware for a Raspberry Pi 3B+ that has the bootfs on a 2.0Gb SD card and the rest of the system on a 40Gb IDE HDD on a USB2.0 controller.
Works just fine (for the moment and only on SSH) and won't know how my coffee roasting software will do till I receive a presently stuck-in-the-mail HDMI-VGA adaptor for the 15" LCD screen I will use.
The previous HDD I used went south after a short stint as a RPi HDD and I was wondering if the way the RPi shuts down had anything to do with it.
ie: when I do sudo shutdown -h now, I notice that power to the HDD is cut out within three maybe four seconds but the amber LED on the board keeps flashing for another five to seven seconds.
Now, I would not have noticed this sequence had it not been for the short high pitched screech/whine of the drive coming to a halt.
I used these drives quite a bit to make backups and move image files between MS systems (mostly W98, NT4,W2000) and don't recall (it was long ago) that drive whine on disconnect, but maybe I've just forgotten. (?)
It won't much be of a problem if yet another resucitated HDD gives up the ghost but I'd hate that it were for something that could be avoided.
eg: spin down the drive before cutting off power to the USB port instead of directly cutting off power to the USB port?
I say this because I think the RPi was not designed to work with HDDs and I have the idea that the HDD is being handled like a SD card.
But then I don't think SD cards were designed for HDD duty but to be used in cameras and similar equipment where files are large and usually stay put to be read multiple times once generated, so it would seem that the RPi / SD card match is not a good one either.
Any ideas on how to do this?
Thanks in advance,
A.
Hello:
... the etc/fstab file for extra spaces.
Wrote the Devuan ascii *.img files to the SD card and another 40Gb HDD, then made the modifications mentioned in my OP.
You can see the instructions in a video here.
Changed the size of the swap partition, was a bit overboard.
Will try with 3.0Gb and see how it goes when I run the coffee roasting software as 1Gb RAM is rather tight.
groucho@devuan:~$ cat /etc/fstab
# <file system> <mount point> <type> <options> <dump><pass>
# bootfs
# was /dev/mmcblk0p1
UUID=EEA4-304A /boot vfat defaults 0 1
# root on HDD - was /dev/sda2
UUID=589c7999-62be-47ac-8847-32b62fd9fdc9 / ext4 defaults,noatime 0 1
# /var/log on HDD - was /dev/sda5
UUID=80f008d9-7f6e-49d2-8df7-d370a02be5df /var/log ext4 defaults,noatime 0 1
# /home on HDD - was /dev/sda6
UUID=58b362ef-c02d-45c0-8085-dc3996a7d947 /home ext4 defaults,noatime 0 2
# /swap - was /dev/sda7
UUID=5535c86a-ff6f-46d2-a53b-bad0f38d23fc none swap defaults 0 0
## blkid as of 20200505
# 2.0Gb SD card
# /dev/mmcblk0: PTUUID="ac806f8a" PTTYPE="dos"
# /dev/mmcblk0p1: SEC_TYPE="msdos" UUID="EEA4-304A" TYPE="vfat" PARTUUID="ac806f8a-01"
# /dev/mmcblk0p2: UUID="589c7999-62be-47ac-8847-32b62fd9fdc9" TYPE="ext4" PARTUUID="ac806f8a-02"
#
# 40Gb HDD
# /dev/sda1: SEC_TYPE="msdos" UUID="EEA4-304A" TYPE="vfat" PARTUUID="d34db33f-01"
# /dev/sda2: UUID="589c7999-62be-47ac-8847-32b62fd9fdc9" TYPE="ext4" PARTUUID="d34db33f-02"
# /dev/sda5: LABEL="log" UUID="80f008d9-7f6e-49d2-8df7-d370a02be5df" TYPE="ext4" PARTUUID="d34db33f-05"
# /dev/sda6: LABEL="home" UUID="58b362ef-c02d-45c0-8085-dc3996a7d947" TYPE="ext4" PARTUUID="d34db33f-06"
# /dev/sda7: LABEL="swap" UUID="5535c86a-ff6f-46d2-a53b-bad0f38d23fc" TYPE="swap" PARTUUID="d34db33f-07"
groucho@devuan:~$ I have found it to be a good idea to keep a (dated and commented) output of blkid in the /etc/fstab file.
Keeps everything on the same page when needing to edit or check it.
root@devuan:/home/groucho# findmnt --verify --verbose
/boot
[ ] target exists
[ ] UUID=EEA4-304A translated to /dev/sda1
[ ] source /dev/sda1 exists
[ ] FS type is vfat
/
[ ] target exists
[ ] VFS options: noatime
[ ] UUID=589c7999-62be-47ac-8847-32b62fd9fdc9 translated to /dev/sda2
[ ] source /dev/sda2 exists
[ ] FS type is ext4
/var/log
[ ] target exists
[ ] VFS options: noatime
[ ] UUID=80f008d9-7f6e-49d2-8df7-d370a02be5df translated to /dev/sda5
[ ] source /dev/sda5 exists
[ ] FS type is ext4
/home
[ ] target exists
[ ] VFS options: noatime
[ ] UUID=58b362ef-c02d-45c0-8085-dc3996a7d947 translated to /dev/sda6
[ ] source /dev/sda6 exists
[ ] FS type is ext4
none
[ ] UUID=5535c86a-ff6f-46d2-a53b-bad0f38d23fc translated to /dev/sda7
[ ] source /dev/sda7 exists
[ ] FS type is swap
Success, no errors or warnings detected
root@devuan:/home/groucho# The warnings issued by findmnt --verify --verbose were permission related.
Must be run as root or without the --verbose modifier.
Had nothing to do with update-initramfs -u. 8^7
root@devuan:/home/groucho# fdisk -l
--- snip ---
Disk /dev/mmcblk0: 1.9 GiB, 1990197248 bytes, 3887104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac806f8a
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 264191 262144 128M c W95 FAT32 (LBA)
/dev/mmcblk0p2 264192 3872767 3608576 1.7G 83 Linux
Disk /dev/sda: 37.3 GiB, 40060403712 bytes, 78242976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd34db33f
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 264191 262144 128M c W95 FAT32 (LBA)
/dev/sda2 264192 14942207 14678016 7G 83 Linux
/dev/sda3 14942208 78241791 63299584 30.2G 5 Extended
/dev/sda5 14944256 17041407 2097152 1G 83 Linux
/dev/sda6 17043456 71948287 54904832 26.2G 83 Linux
/dev/sda7 71950336 78241791 6291456 3G 82 Linux swap / Solaris
root@devuan:/home/groucho# root@devuan:/home/groucho# swapon -s
Filename Type Size Used Priority
/dev/sda7 partition 3145724 0 -2
root@devuan:/home/groucho# root@devuan:/home/groucho# swapon -a
root@devuan:/home/groucho# As for the swapon -a parse error, it remains a mystery.
When confronted by something like that again, maybe the MS way is better.
ie: delete and rewrite the line. 8^°
Now to finish the install and do some housekeeping (host name, user, sudoers.d, etc.)
I have another doubt I must address but will do so in a different thread.
Thanks a lot to everyone who helped out with this.
Cheers,
A.
Hello:
Sector 2048 is the optimal start point for a correctly-aligned drive.
Right ...
Then I'll only have to doble check (I had checked) the etc/fstab file for extra spaces.
I may finish setting up Devuan ascii on the other 40Gb HDD drive in a while, if not tomorrow.
Thanks for your input,
A.
Hello:
this is line 9, you have a space after 'defaults', should be "defaults,noatime"
Quite so ...
Very sharp! 8^D
Can't look at it now as the drive is toast.
But I'll check that the next install is properly written (maybe tonight) and report back.
Thanks a lot for your input.
Cheers,
A.
Hello:
... looks fine to me.
Looks fine to me also.
Compared it to my other /etc/fstab files and found no issue.
findmnt --verify --verbose
Here it is:
groucho@rpidevuan:~$ findmnt --verify --verbose
findmnt: /etc/fstab: parse error at line 9 -- ignored
/boot
[ ] target exists
[ ] UUID=EEA4-304A translated to /dev/sda1
[ ] source /dev/sda1 exists
[W] cannot detect on-disk filesystem type
/home
[ ] target exists
[ ] VFS options: noatime
[ ] UUID=d25be223-0f7a-4394-a555-636340a965b5 translated to /dev/sda5
[ ] source /dev/sda5 exists
[W] cannot detect on-disk filesystem type
/var/log
[ ] target exists
[ ] VFS options: noatime
[ ] UUID=2a7f1d75-8347-465b-8452-4f1ca299405b translated to /dev/sda6
[ ] source /dev/sda6 exists
[W] cannot detect on-disk filesystem type
none
[ ] UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be translated to /dev/sda7
[ ] source /dev/sda7 exists
[W] cannot detect on-disk filesystem type
1 parse error, 0 errors, 4 warnings
groucho@rpidevuan:~$ Nice. =-)
I'll write to my cheat-sheet.
1 parse error, 0 errors, 4 warnings --> all in /dev/sda.
I just now remembered something I had not done: update-initramfs -u.
Done.
Ran findmnt --verify --verbose again:
root@rpidevuan:/home/groucho# findmnt --verify --verbose
findmnt: /etc/fstab: parse error at line 9 -- ignored
/boot
[ ] target exists
[ ] UUID=EEA4-304A translated to /dev/sda1
[ ] source /dev/sda1 exists
[ ] FS type is vfat
/home
[ ] target exists
[ ] VFS options: noatime
[ ] UUID=d25be223-0f7a-4394-a555-636340a965b5 translated to /dev/sda5
[ ] source /dev/sda5 exists
[ ] FS type is ext4
/var/log
[ ] target exists
[ ] VFS options: noatime
[ ] UUID=2a7f1d75-8347-465b-8452-4f1ca299405b translated to /dev/sda6
[ ] source /dev/sda6 exists
[ ] FS type is ext4
none
[ ] UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be translated to /dev/sda7
[ ] source /dev/sda7 exists
[ ] FS type is swap
1 parse error, 0 errors, 0 warningsThe warnings are gone (must always remember update-initramfs -u)
But the parse error subsists.
Could this be related to the start of /dev/sda?
ie:
root@rpidevuan:/home/groucho# fdisk -l
--- snip ---
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 264191 262144 128M c W95 FAT32 (LBA) <------------ this
/dev/sda2 264192 4458495 4194304 2G 83 Linux
/dev/sda3 4458496 78241791 73783296 35.2G 5 Extended
/dev/sda5 4460544 65658879 61198336 29.2G 83 Linux
/dev/sda6 65660928 67758079 2097152 1G 83 Linux
/dev/sda7 67760128 78241791 10481664 5G 82 Linux swap / Solaris
root@rpidevuan:/home/groucho# ... default value, swapon(8) claims the default is -1 but it's always -2 when I try to create a fresh swap partition.
... appear to have a swap partition ...
Yes I have.
For some reason I confused them, fixed.
But this will have to wait for a while.
My old HDD just gave up the ghost, shutting down/spinning up so often was probably too much for it's weary heads (ca. 2004).
It's chirping and won't spin up. =^°
But I have another one in the drawer.
Will come back to the thread once I've set the RPi up again.
Thanks for your input.
Cheers,
A.
Hello:
I finally managed to install the Devuan ascii image on my RPi3B+ and boot it from an 40Gb HDD.
dd'd the image to a 2.0Gb SD card and a 40Gb USB2.0 HDD thus generating twin images.
It boots from the bootfs on the 2.0Gb SD card with the rest of the system on the HDD.
I think I understand how it works, not too clear though.
As the images are identical, the second partition on the SD card has the same UUID as the second partiton on the HDD.
Editing the /etc/fstab file does the rest.
Once I checked it was working properly, I used gparted from my workstation to resize the root partition on the HDD to 2.0Gb and set up /home, /var/log and swap.
This is what fdisk -l and blkid show:
root@rpidevuan:/home/groucho# fdisk -l
--- snip ---
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 264191 262144 128M c W95 FAT32 (LBA)
/dev/mmcblk0p2 264192 3872767 3608576 1.7G 83 Linux
Disk /dev/sda: 37.3 GiB, 40060403712 bytes, 78242976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac806f8a
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 264191 262144 128M c W95 FAT32 (LBA)
/dev/sda2 264192 4458495 4194304 2G 83 Linux
/dev/sda3 4458496 78241791 73783296 35.2G 5 Extended
/dev/sda5 4460544 65658879 61198336 29.2G 83 Linux
/dev/sda6 65660928 67758079 2097152 1G 83 Linux
/dev/sda7 67760128 78241791 10481664 5G 82 Linux swap / Solarisroot@rpidevuan:/home/groucho# blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" UUID="EEA4-304A" TYPE="vfat" PARTUUID="d34db33f-01"
/dev/mmcblk0p2: UUID="589c7999-62be-47ac-8847-32b62fd9fdc9" TYPE="ext4" PARTUUID="d34db33f-02"
/dev/sda1: SEC_TYPE="msdos" UUID="EEA4-304A" TYPE="vfat" PARTUUID="ac806f8a-01"
/dev/sda2: LABEL="root" UUID="589c7999-62be-47ac-8847-32b62fd9fdc9" TYPE="ext4" PARTUUID="ac806f8a-02"
/dev/sda5: LABEL="home" UUID="d25be223-0f7a-4394-a555-636340a965b5" TYPE="ext4" PARTUUID="ac806f8a-05"
/dev/sda6: LABEL="log" UUID="2a7f1d75-8347-465b-8452-4f1ca299405b" TYPE="ext4" PARTUUID="ac806f8a-06"
/dev/sda7: LABEL="swap" UUID="1d1727d2-e296-48fb-a6cc-1207cfd6b7be" TYPE="swap" PARTUUID="ac806f8a-07"
/dev/mmcblk0: PTUUID="d34db33f" PTTYPE="dos"... and /etc/fstab:
groucho@rpidevuan:~$ cat /etc/fstab
## <file system> <mount point> <type> <options> <dump><pass>
##
## bootfs on SD Card
# was /dev/mmcblk0p1 /boot vfat defaults 0 1
UUID=EEA4-304A /boot vfat defaults 0 1
## root on HDD /dev/sda2
UUID=589c7999-62be-47ac-8847-32b62fd9fdc9 / ext4 defaults, noatime 0 1
## /home on HDD /dev/sda5
UUID=d25be223-0f7a-4394-a555-636340a965b5 /home ext4 defaults,noatime 0 2
## /var/log on HDD /dev/sda6
UUID=2a7f1d75-8347-465b-8452-4f1ca299405b /var/log ext4 defaults,noatime 0 2
## /swap on HDD dev/sda7
UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be none swap defaults 0 0When setting the swap partition, I got this:
root@rpidevuan:/home/groucho# swapon -a
swapon: /etc/fstab: parse error at line 9 -- ignored
root@rpidevuan:/home/groucho#But when I check it I get this:
root@rpidevuan:/home/groucho# free
total used free shared buff/cache available
Mem: 887604 33616 795512 1276 58476 838168
Swap: 5240828 0 5240828root@rpidevuan:/home/groucho# swapon -s
Filename Type Size Used Priority
/dev/sda7 partition 5240828 0 -2
root@rpidevuan:/home/groucho# I used cat -v to parse the /etc/fstab file but I get no errors.
Line 9 is this one:
UUID=1d1727d2-e296-48fb-a6cc-1207cfd6b7be none swap defaults 0 0Q1:
Any idea as to what is wrong with line 9?
Q2:
Why does the swap file partition have priority -2?
root@rpidevuan:/home/groucho# cat /proc/swaps
Filename Type Size Used Priority
/dev/sda7 partition 5240828 0 -2
root@rpidevuan:/home/groucho#I only have one swap file partition and I don't see the system mounting anything on the SD card:
root@rpidevuan:/home/groucho# mount
/dev/sda2 on / type ext4 (rw,relatime,block_validity,delalloc,nojournal_checksum,norecovery,barrier,user_xattr,acl)
devtmpfs on /dev type devtmpfs (rw,relatime,size=438328k,nr_inodes=109582,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=88764k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1225680k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda5 on /home type ext4 (rw,noatime,data=ordered)
/dev/sda6 on /var/log type ext4 (rw,noatime,data=ordered)
root@rpidevuan:/home/groucho# I have the feeling that I am missing something.
Is this set somewhere else?
Thanks in advance.
Cheers,
A.
Hello:
... the following line in all your ~/.zshrc (or ~/.bashrc perhaps)
function title() { echo -n "\033]0;$1\007"; }and then use
$ title Bendigoto change the terminal title.
Changing the prompt (PS1) is another option ...
Thanks to both. =-)
I'll have a look at how these wotk.
In the meanwhile I'll have to be extra carefull.
Cheers,
A.
Hello:
Those who are more savvy than I am in command line work and SSL'ing into other installations probably have been through this.
I am slowly learning to use ssh, which I find quite entertaining but more than once I've 'almost' goofed up and done something in the local terminal instead of the other terminal I had open to a Raspberry Pi also running Devuan ascii.
Is there a way to eg: when I open a ssh connection, have the terminal automatically show something that would differentiate it from a local one.
eg: the title bar or font colours.
I've looked at the terminal configuration settings but found nothing.
Thanks in advance,
A.
Hello:
... not related to the power-supply-USB-problem; it was for seeing whats inside '/proc/config.gz' !
Yes, I know.
What I meant to say was that what I thought was an issue ie: usb-storage.ko not being present was not the problem as it was part of the kernel.
The problem actually being a power supply one.
Thanks for your input.
Cheers,
A.
Hello:
... a
modprobe configs...
No ...
Here it is:
groucho@rpidevuan:~$ sudo modprobe configs
groucho@rpidevuan:~$ But the issue has been solved.
Problem was a PS thing, long cable with voltage drop.
See my previous post.
Cheers,
A.
Hello:
The important thing is that ...
... it dawned on me that I was being obtuse. =^ 7
After thinking about it a while longer I realised that I had missed an obvious test.
The charger I have seems to be well built, relabeled for local sale so I don't know who makes it.
It is not a switching PS, just 220V Chinese made design, good quality plastic and not at all shoddy like some I others have seen.
But like I mentioned, it is obviously made for the smartphone market.
And one thing that many of these chargers have in common is the rather long cable.
This one in particular has a ~1.00 meter cable hard wired from the charger to the mini USB plug.
On the charger's back, an additional three illuminated USB ports can be found.
Suspecting a voltage drop on the charger's cable I ran one last test.
Raspberry Pi
RPi plugged into charger's USB1 <----- using a different/shorter cable instead of the PS hard wired one.
Drive plugged into RPi's USB1
Power plugged into RPi's USB2
Result: works
So there it is ...
Not the RPi or the charger but the long cable causing a voltage drop.
Conclusion
The RPi on can run a HDD with a 700mA draw (using two USB ports) provided the charger is working properly.
I have not added anything else yet (keyboard, mouse, HDMI cable) but I still have two free USB ports on the charger.
This charger was evidently hindered by the long/small gauge cable.
I'll see if I can figure out how to take it apart without destroying the case to eliminate/shorten the long cable by 60% or replace it with a heavier gauge USB cable.
An example ...
Yes, I have seen that disk start up can be 1.5 to 2.0 x the stated draw on the label.
Usually not advertised in the brochure unless expensive server stuff for IBM, Sun, Dell.
The USB 2.0 Specification ...
Have a look at the link to the RPi power stats.
I've read that the RPi does not follow the power spec too closely if at all.
... Global limitation of 600mA ...
The RPi3+ has a default 600mA global but can be used at 1200mA global with the proper setting in the /boot/config.txt file.
... hard drive that is very very low power ...
The Kingston 120Gb SSD I have my workstation's system on draws 1.0A.
... find a very low power harddrive ...
I once heard of a Western Digital HDD specially made for the RPi.
It had a USB3.0 port instead of the usual SATA but it seems to have been discontinued.
All the 2.5" SATA drives I have come across have a peak draw of 1.0A.
I'm set on using these Samsung HDD because they are just 40Gb and are just short of indestructible.
I used them for years to back up my office/maintenance files and as my storage needs grew, ended up in a drawer.
Now I can use them again as they are perfect for the use I'll give the RPi.
Thanks a lot for your input.
Cheers,
A.
Hello again:
... seems to be compiled in the kernel.
... couldn't check '/proc/config.gz' because its not present.
I see ...
... disk is 2.5"?
Yes.
On your reply, I decided that it would be be a good idea to step back a bit and look at this from the hardware side.
So I ran some additional tests.
All tests are with machines running Devuan ascii 2.0
32-bit version on a netbook / 64-bit version on a WS and the RPi3B+
There are various testing stages:
Stage 1
Netbook
Drive plugged into USB1
Power plugged into USB2
Result: works as expected, properly detected and accesible.
Stage 2
Workstation
Drive plugged into USB1
Power plugged into USB2
Result: works as expected, properly detected and accesible.
Stage 3
Raspberry Pi
Drive plugged into USB1
Power plugged into USB2
Result: does not work
Stage 3-1
Raspberry Pi
Drive plugged into USB1
Power plugged into netbooks' USB1
Result: does not work
Stage 3-2
Raspberry Pi
Drive plugged into USB1
Power plugged into workstation's USB1
Result: does not work
Stage 3-3
Raspberry Pi
Drive plugged into USB1
Power plugged into PS USB charging port
Result: works 8^o!
Great, problem solved but ...
This drive draws ~700mA and probably uses a bit more to start up.
The USB ports in both the netbook and the workstation obviously provide enough power.
ie: Port USB1 + Port USB2 in each machine provide enough power for the drive
Now, if the drive does not work when using power from the workstation/netbook USB ports, it begs the question:
How much power are/voltage the RPi's USB ports providing then?
Obviously less than the 500mA that they should be.
The red light stays on, no indication of a power issue.
The RPi's power supply (says) it is rated at 5.0v 5100mA max, more than the usual 2500/3000mA.
By default, the RPi USB ports are rated at a max global of 600mA but a line in the /boot/config.txt file sets it to 1200mA max.
max_usb_current=1... could be the same problem I have ...
Don't know if it is the same but it is definitely (like you said) a power supply problem.
I think that the PS I have can probably manage the stated 5100mA but not at a stable 5.0V.
Which is why the drive won't spin.
I think it is a smartphone type charger and those are not necessarily made to put out rock stable 5.0v as they are used to charge 3.8 volt Li-ion/Li-iPo batteries.
I'll have to look for something else.
Thank you very much for you input, you have been most helpful.
Kudos, you had it right from the start. ;^ )
Now I can see about installing the image in the SDD.
Cheers,
A.
Hello tux:
... experiment in the rpi3 with a flash pen drive ...
Let's see:
groucho@rpidevuan:~$ dmesg
[ 1562.439264] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[ 1562.647134] usb 1-1.3: New USB device found, idVendor=0951, idProduct=1665
[ 1562.647349] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1562.647541] usb 1-1.3: Product: DataTraveler 2.0
[ 1562.647665] usb 1-1.3: Manufacturer: Kingston
[ 1562.647782] usb 1-1.3: SerialNumber: 50E549C693551F61991E1D42
[ 1562.649518] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 1562.653027] scsi host0: usb-storage 1-1.3:1.0
[ 1563.699699] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4
[ 1563.701152] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1563.703372] sd 0:0:0:0: [sda] 15151168 512-byte logical blocks: (7.76 GB/7.22 GiB)
[ 1563.705501] sd 0:0:0:0: [sda] Write Protect is off
[ 1563.705667] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1563.707595] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1563.718191] sda: sda1 sda2
[ 1563.726191] sd 0:0:0:0: [sda] Attached SCSI removable disk
groucho@rpidevuan:~$ root@rpidevuan:/home/groucho# sg_map -sd
/dev/sg0 /dev/sda
root@rpidevuan:/home/groucho# ... just in case, to check if it works..
It does.
... sort that out, maybe (if the config is present in the kernel)
groucho@rpidevuan:~$ zgrep -Ei "_USB_STORAGE|_BLK_DEV_SD" /proc/config.gz
gzip: /proc/config.gz: No such file or directory
groucho@rpidevuan:~$ ... need that module.
Quite so.
... test with a usb pendrive
See above.
What to do now?
Thanks a lot for your help.
Cheers,
A.