Go to advanced search

by Bosse_B
Wed Jan 12, 2022 3:18 pm
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

Re: How to best convert a 4TB ntfs drive to ext4?

134 GB in 105m50s on a Gigabit LAN from a Synology NAS, which I know is speedy: du -s /mnt/data/nas/ 139691000 /mnt/data/nas/ so: 139691000*1024*8/(105*60+50)=22526548 bit/s (22 Mbit/s) :o :( :?: There seems to still be a bottleneck somewhere.... I have just used speedtest towards the Internet from...
by Bosse_B
Wed Jan 12, 2022 10:11 am
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

Re: How to best convert a 4TB ntfs drive to ext4?

So I blew it anyway.... :cry: :evil: I used the following command: time cp -rf /mnt/backup/* /mnt/data/nas/ where I should instead have used this: time cp -rf --preserve=timestamp /mnt/backup/* /mnt/data/nas/ So the net effect of this is that NONE of the file timestamps are preserved, they are set t...
by Bosse_B
Wed Jan 12, 2022 7:50 am
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

Re: How to best convert a 4TB ntfs drive to ext4?

It is still running, when I did it the other direction earlier it took a bit over 100 minutes (this is why I use the time wrapper so I can check afterwards how long these operations take). Done now, it took 105m50s Now change /etc/fstab and remove "noauto". That's there in case you have t...
by Bosse_B
Tue Jan 11, 2022 11:26 pm
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

Re: How to best convert a 4TB ntfs drive to ext4?

OK, now I have done this: - Copied all of the root directories with data on my ntfs drive to the NAS via the nfs share on Synology - Verified a good copy - Deleted the single partition on my big USB disk - Created a new 3 TB ext4 primary partition in the empty space - Adjusted the /etc/fstab file by...
by Bosse_B
Tue Jan 11, 2022 8:07 pm
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

Re: How to best convert a 4TB ntfs drive to ext4?

OK, so I have now started the last copy of the files in the directory containing all of my photo images (100+ GB). I am not using rsync this time, just this: time cp -r -p /mnt/data/Bilder /mnt/backup/ /mnt/data/ is the USB connected drive, /mnt/backup is the nfs mount to my Synology NAS The cp comm...
by Bosse_B
Tue Jan 11, 2022 6:21 pm
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

Re: How to best convert a 4TB ntfs drive to ext4?

Note, BTW, that in the original thread, OP stated that the drive was 47% full. In fact, it is about 1/8 (12.5%) full. That makes things easier. So, the point is all you really need is an additional 1/2 TB of space somewhere. There are, of course, a myriad of ways to do this - some that involve buyi...
by Bosse_B
Tue Jan 11, 2022 5:22 pm
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

Re: How to best convert a 4TB ntfs drive to ext4?

That certainly should work. I have done similar things in the past. Unfortunately I cannot comment about how long this will take as I have never done it with a USB 3.0 connected filesystem on a Pi. Obvious provision when mucking about with partitions and reformating: ensure you have a known good ba...
by Bosse_B
Tue Jan 11, 2022 2:44 pm
Forum: General discussion
Topic: How to best convert a 4TB ntfs drive to ext4?
Replies: 28
Views: 945

How to best convert a 4TB ntfs drive to ext4?

I have an RPi4b with a 4TB USB3 disk attached, which was ntfs from the start and I have stored about 480GB worth of data on it. It is attached to the RPi4 to act as a NAS where I can save my backups from several other networked computers. No I want to convert it to ext4 due to the realization that n...
by Bosse_B
Tue Jan 11, 2022 11:16 am
Forum: General discussion
Topic: How to check if an RPi4 is running a GUI?
Replies: 10
Views: 350

Re: How to check if an RPi4 is running a GUI?

RESOLVED! So it turns out that in raspi-config the boot was set to CLI with user login required. I changed it to boot to GUI with user login required. After a reboot the desktop was shown in VNC! So the problem was this boot target setting in raspi-config! Now solved, except for the screen resoluti...
by Bosse_B
Tue Jan 11, 2022 10:58 am
Forum: General discussion
Topic: How to check if an RPi4 is running a GUI?
Replies: 10
Views: 350

Re: How to check if an RPi4 is running a GUI?

So the fact that the command returns this: pi@rpi4-asa:~ $ grep "stage4" /boot/issue.txt Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 80d486687ea77d31fc3fc13cf3a2f8b464e129be, stage4 Should indicate that I have in fact a GUI installation? In sudo raspi-config I have enable...
by Bosse_B
Tue Jan 11, 2022 10:11 am
Forum: General discussion
Topic: How to check if an RPi4 is running a GUI?
Replies: 10
Views: 350

Re: How to check if an RPi4 is running a GUI?

I’ve used this in Buster days if grep -q "stage4" /boot/issue.txt; then # Desktop install … fi So I have this: pi@rpi4-asa:~ $ grep "stage4" /boot/issue.txt Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 80d486687ea77d31fc3fc13cf3a2f8b464e129be, stage4 What happen...
by Bosse_B
Tue Jan 11, 2022 10:08 am
Forum: General discussion
Topic: How to check if an RPi4 is running a GUI?
Replies: 10
Views: 350

Re: How to check if an RPi4 is running a GUI?

This is what I got using several related commands: pi@rpi4-asa:~ $ uname -a Linux rpi4-asa 5.10.63-v7l+ #1457 SMP Tue Sep 28 11:26:14 BST 2021 armv7l GNU/Linux pi@rpi4-asa:~ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 1...
by Bosse_B
Tue Jan 11, 2022 9:47 am
Forum: General discussion
Topic: How to check if an RPi4 is running a GUI?
Replies: 10
Views: 350

How to check if an RPi4 is running a GUI?

I have an RPi4 which was created about 2 years ago to be used as an off-site backup server so it has a 4TB disk drive attached via USB3. Due to Covid-19 this was never put in place at my daughter's home as intended, but now I am back at it after getting fiber connection at my summer home. When prepa...
by Bosse_B
Sun Jan 09, 2022 10:12 am
Forum: General discussion
Topic: How to fix the fstab mount of a 1TB ntfs drive?
Replies: 17
Views: 478

Re: How to fix the fstab mount of a 1TB ntfs drive?

I changed the dmask and fmask entries in fstab as follows: UUID=EE78237678233D29 /mnt/mediadrive ntfs defaults,auto,dmask=022,fmask=133,uid=1000,gid=1000,rw,nofail 0 0 Now the display in PuTTY looks much better. However, Samba does not care about the underlying filesystem and actually will probably ...
by Bosse_B
Thu Jan 06, 2022 4:29 pm
Forum: General discussion
Topic: How to fix the fstab mount of a 1TB ntfs drive?
Replies: 17
Views: 478

How to fix the fstab mount of a 1TB ntfs drive?

Currently I have a big USB connected 2.5" drive (1 TB) mounted on my RPi3 for media storage. The drive is half full and the NTFS format came from previous use on a Windows computer. In fstab this mount is defined like this (I got the settings from "somewhere" at the time): # BB 2019-0...
by Bosse_B
Tue Dec 28, 2021 11:43 pm
Forum: General discussion
Topic: DS18B20 temp sensor interface on RPi Zero?
Replies: 12
Views: 427

Re: DS18B20 temp sensor interface on RPi Zero?

I just do this: cat /sys/bus/w1/devices/w1_bus_master1/28-001bde0000c8/temperature 21125 That is 21.1 degrees C So I just went over all of the "files" in the device dir and looked at them, didn't before... You are right, easiest of all is to just read the temperature file. What happens if...
by Bosse_B
Tue Dec 28, 2021 9:55 pm
Forum: General discussion
Topic: DS18B20 temp sensor interface on RPi Zero?
Replies: 12
Views: 427

Re: DS18B20 temp sensor interface on RPi Zero?

How can I understand the output I get from the DS18B20 driver by command: $ cat w1_slave 86 01 4b 46 7f ff 0c 10 f4 : crc=f4 YES 86 01 4b 46 7f ff 0c 10 f4 t=24375 The t=24375 means temp = 24.375 C, or rather 24.4 C since the decimal is represented by a 4-bit part of the output value according to da...
by Bosse_B
Tue Dec 28, 2021 6:32 pm
Forum: General discussion
Topic: DS18B20 temp sensor interface on RPi Zero?
Replies: 12
Views: 427

Re: DS18B20 temp sensor interface on RPi Zero?

Usually I just enable the 1-wire interface using raspi-config - no manual editing of any files. I did not know about that... What happens now If I enable it in raspi-config? Then use a 4K7 resistor soldered between the 3V3 and data line of the DS18B20. We have the three wires, GND, 3V3 and data whi...
by Bosse_B
Tue Dec 28, 2021 5:02 pm
Forum: General discussion
Topic: DS18B20 temp sensor interface on RPi Zero?
Replies: 12
Views: 427

Re: DS18B20 temp sensor interface on RPi Zero?

I did not get it going so I am back asking for advice... I have done this on an RPi4B: 1) Edited /boot/config.txt to have this at the end: #Enable 1-wire interface for DS18B20 temperature sensor on GPIO4 pin dtoverlay=w1-gpio,gpiopin=4,pullup=on 2) Edited /etc/modules and added this: # Driver for 1-...
by Bosse_B
Mon Dec 27, 2021 9:00 pm
Forum: General discussion
Topic: DS18B20 temp sensor interface on RPi Zero?
Replies: 12
Views: 427

Re: DS18B20 temp sensor interface on RPi Zero?

What is not mentioned is how often this file gets updated by Raspbian... those are virtual files when you try to read the file, the driver will query the actual sensor, and return the current value Perfect, then the reading is done on demand and is not loading the system in between! :D So this seem...
by Bosse_B
Mon Dec 27, 2021 4:54 pm
Forum: General discussion
Topic: DS18B20 temp sensor interface on RPi Zero?
Replies: 12
Views: 427

DS18B20 temp sensor interface on RPi Zero?

I am considering building a temp monitoring system based on a spare RPi Zero I have. The sensors I have used before (using ESP8266 modules) were AM2302 humidity and temperature sensors and I think I do not want these now. The reason is that they are too easily broken, right now I have 4 of them in m...
by Bosse_B
Fri Dec 17, 2021 11:26 pm
Forum: General discussion
Topic: How to use 4G mobile network on RPi3/RPi4?
Replies: 15
Views: 1137

Re: How to use 4G mobile network on RPi3/RPi4?

OK, so I will reboot again and THEN plug in the modem. Interestingly after I pulled out the modem I checked ifconfig and now the extra eth1 is gone... .... And ifconfig shows again this: eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.8.103 netmask 255.255.255.0 broadcast 192...
by Bosse_B
Fri Nov 05, 2021 11:00 pm
Forum: General discussion
Topic: How to assign a variable the output of a complex command?
Replies: 9
Views: 411

Re: How to assign a variable the output of a complex command?

I also tested this but it resulted in the same low resolution (428x240) video: timeout --signal=2 3m youtube-dl -f 'bestvideo[height<=400]+bestaudio/best[height<=400]' -o testing400.mp4 https://msnbcdailyshows.com Note that the timeout function leaves a testing400.mp4.part file but just moving to an...
by Bosse_B
Fri Nov 05, 2021 8:55 pm
Forum: General discussion
Topic: How to assign a variable the output of a complex command?
Replies: 9
Views: 411

Re: How to assign a variable the output of a complex command?

It is that I cannot use "best" as the quality setting because it results in gigantic file sizes, since it is 1280x720 format... So I use a specific quality label which I extracted once and hard coded. Maybe I should have been clearer: the youtube-dl invocation I gave you downloads the bes...
by Bosse_B
Fri Nov 05, 2021 1:09 pm
Forum: General discussion
Topic: How to assign a variable the output of a complex command?
Replies: 9
Views: 411

Re: How to assign a variable the output of a complex command?

So I am back again... First, what am I doing? I have a video download script that gets called in an at job at specific times to extract a 1 hour video section from a continuously running stream. It used to work with ffmpeg when the streamer used m3u8 streams, which could be handled by ffmpeg. But a ...

Go to advanced search