Search found 25 matches

by Hypex
2017-08-08 14:40
Forum: General Questions
Topic: Where is partman "static files of boot loader" cfg stored?
Replies: 0
Views: 1128

Where is partman "static files of boot loader" cfg stored?

Hi guys. I'll try and explain this in a clear manner. In the Debian installer, once partman is up running, and you select to mount a partition, one of the selections is for "/boot - static files of the boot loader". Where does it store the mount point and associated text? I'm customising a...
by Hypex
2017-07-27 16:29
Forum: Development discussion
Topic: How to install u/deb into custom installer initramfs?
Replies: 0
Views: 5621

How to install u/deb into custom installer initramfs?

Hi guys. I have a custom initramfs I'm working on for a Debian installer. At times I need to install some packages to it. For example I needed the blkid command so downloaded and extracted the needed files from a util-linux deb. But I was doing this by hand and had to manually put in dependencies on...
by Hypex
2017-02-12 11:24
Forum: Hardware
Topic: Lockups occur after installation of firmware-linux-nonfree
Replies: 6
Views: 7667

Re: Lockups occur after installation of firmware-linux-nonfr

I am thinking that this is a common issue with the firmware-linux-nonfree drivers. I recently hacked together a Jessie installer for a (now old) PowerPC machine. Based on kernel 3.16-4. With an ATI 9200SE. I soon found out that GDM wouldn't load up and was getting a black screen. The log showing is ...
by Hypex
2017-01-27 09:29
Forum: Programming
Topic: [SOLVED] How to extract HDD block device from partition dev
Replies: 21
Views: 17358

Re: [SOLVED] How to extract HDD block device from partition

Thanks cpoakes. That sheds some more light on the process. And what steps are needed to be performed. Which work for both conventional device nodes and mtb block naming schemes.
by Hypex
2017-01-17 07:14
Forum: Programming
Topic: [SOLVED] How to extract HDD block device from partition dev
Replies: 21
Views: 17358

Re: [SOLVED] How to extract HDD block device from partition

Although I had marked this as solved it currently isn't as I am getting corrupted output from tr in the installer. As an example the following is what I input and get as output: echo "dev/sda4" | tr -d "[:digit:]"` /ev/sa4 echo "dev/sda4" | tr -d "/[:alpha:]"`...
by Hypex
2017-01-09 12:03
Forum: Programming
Topic: How to find block device of mount point?
Replies: 6
Views: 6191

Re: How to find block device of mount point?

Thanks kiyop. That's almost what I was doing. Yes those commands look useful. I also need tune2fs. But my problem there is that I need to also add depends. And then extract it out. At this point an initrd builder looks good. Be useful to apt-get from a chroot. Closest I got is downloading a package ...
by Hypex
2017-01-07 10:56
Forum: Programming
Topic: [SOLVED] How to extract HDD block device from partition dev
Replies: 21
Views: 17358

Re: [SOLVED] How to extract HDD block device from partition

Just for amusement I soon discovered that I needed the partition number itself as well. Not as clear cut as cutting off digits. Isolating digits seems harder since tr doesn't have a keep option I can see. And then ran into another issue. The boot volume can be mounted under /dev/disk/by-label which ...
by Hypex
2017-01-06 10:26
Forum: Programming
Topic: How to find block device of mount point?
Replies: 6
Views: 6191

Re: How to find block device of mount point?

Thanks, findmnt looks useful. Now, my problem is the installer doesn't have it included, since I need to use it in the installer. If I could chroot and apt-get a udeb of util-linux where I build my installer that will be useful. :-)
by Hypex
2017-01-04 05:11
Forum: Programming
Topic: How to find block device of mount point?
Replies: 6
Views: 6191

Re: How to find block device of mount point?

Well I have been exploring "/dev/disk" as that's how I found out about the links. ;-)

From what you imply a simple command won't do it and it has to found from the device point.
by Hypex
2017-01-04 01:56
Forum: Programming
Topic: How to find block device of mount point?
Replies: 6
Views: 6191

How to find block device of mount point?

Hi guys. Okay so this is new twist on an old problem. I just found out. :-) I was using "df" to find the device of a mount, but found a flaw as a long device name can split the result into two lines. Or it could be mounted as a label so doesn't point directly to a device. In my case both o...
by Hypex
2016-12-31 01:34
Forum: Installation
Topic: Black screen Pre installation!
Replies: 8
Views: 2814

Re: Black screen Pre installation!

gparted [deleted partition, then created a new fat32 partition across entire 8 gig stick, quit gparted] fdisk -l ([to find usb drive] (it is /dev/sdc) umount /dev/sdc (it returns: umount: /dev/sdc: not mounted) dd if=/home/ralph44/Downloads/debian-8.6.0-amd64-DVD-1.iso of=/dev/sdc bs=512k. Can I as...
by Hypex
2016-12-30 11:29
Forum: Installation
Topic: Customised installer trying to mount all partitions at boot
Replies: 0
Views: 1143

Customised installer trying to mount all partitions at boot

Hi guys. The last few years I've been working on a customised PPC Debian installer. I'm quite happy with the present state which has a preseed to streamline the installation process and I just finished updating it to use debconf for displaying any errors and providing a progress bar. So it is going ...
by Hypex
2016-10-08 10:13
Forum: Programming
Topic: [SOLVED] How to extract HDD block device from partition dev
Replies: 21
Views: 17358

Re: [SOLVED] How to extract HDD block device from partition

What a terrible questioner :lol: I could not imagine his/her meaning of "a proper way". Haha. :-) Well it was a suggested solution, not the suggested proper way. In my research it looks like there is no exact proper way, as all paths to lead simply manipulating the text. In my mind a part...
by Hypex
2016-10-04 07:13
Forum: General Questions
Topic: Can an unmounted home user folder be recovered?
Replies: 7
Views: 1349

Re: Can an unmounted home user folder be recovered?

Then why are you wasting our time here? Because I was asking on a technical level if evidence of mounting can be found. Be that from some Debian specific commands that could help or even a log file where such info would be kept. Also, Debian is the root of Ubuntu, so some things are shared between ...
by Hypex
2016-10-04 07:06
Forum: General Questions
Topic: Can an unmounted home user folder be recovered?
Replies: 7
Views: 1349

Re: Can an unmounted home user folder be recovered?

In no particular order... - I'd be curious to know what's on that first partition. I ran TestDisk on it. According to that it is actually Ext4. I also updated the MBR with it. GParted reports it as having unknown type. Upon further investigation it is reporting read errors. I want to take it out of...
by Hypex
2016-09-30 09:54
Forum: General Questions
Topic: Can an unmounted home user folder be recovered?
Replies: 7
Views: 1349

Re: Can an unmounted home user folder be recovered?

Thanks guys. Good point about the fstab. Okay I can see no evidence of any home folder being mounted on another partition at all. All I see are proc, root, swap and a floppy. # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # f...
by Hypex
2016-09-29 08:32
Forum: General Questions
Topic: Can an unmounted home user folder be recovered?
Replies: 7
Views: 1349

Can an unmounted home user folder be recovered?

Hi guys. I have a friend, who uses Ubuntu, but has lost files in his home folder. He claims that this is due to his home user folder not being unmounted. Which likely would have happened if the system couldn't boot and PC had to be shut off. I've had a look on the drive and can see his home user fol...
by Hypex
2016-09-29 08:05
Forum: Programming
Topic: [SOLVED] How to extract HDD block device from partition dev
Replies: 21
Views: 17358

Re: How to extract HDD block device from partition device?

Hello again. Well I've gone through all the options and without a specific command or such to do the job the easiest solution is to simply manipulate the text. This is how my friend suggested it. Assuming boot_part="/dev/sda2". This will extract the boot device: echo "$boot_part"...
by Hypex
2016-09-24 03:14
Forum: Programming
Topic: [SOLVED] How to extract HDD block device from partition dev
Replies: 21
Views: 17358

Re: How to extract HDD block device from partition device?

Just want to say thanks for everyone's input so far. So I'll go off and do some testing. And see what I find. :-)
by Hypex
2016-09-24 03:09
Forum: Programming
Topic: [SOLVED] How to extract HDD block device from partition dev
Replies: 21
Views: 17358

Re: How to extract HDD block device from partition device?

I too am finding your post difficult to understand, particularly because none of the things you say you've investigated (tune2fs, blkid, etc.) comes anywhere close to approaching a solution to the problem as I understand it. I do have a talent of making jokes with obvious references that no one get...