Installing Debian 9 from live image

New to Debian (Or Linux in general)? Ask your questions here!

Re: Installing Debian 9 from live image

Postby spartrekus » 2018-02-23 17:32

Huecuva wrote:Hi.

So I've downloaded the live USB image of Debian 9 and it appears that you can use the live image to try out Stretch OR you can boot the installer and install the OS, but not both. There does not appear to be a way to launch the installer from the live image and install while you're running live Debian from the USB like EVERY OTHER LINUX DISTRO EVER. I realize the whole live image thing is new to Debian and I installed Jesse on my server without using a live image, but it just seems like the option to install the OS should have been built into the live image. I have tried typing
Code: Select all
sudo debian-installer-launcher
in the terminal and it just said the command was not found. Am I missing something?

The main problem is that I'm trying to install Stretch on an SD card, which needs to be mounted before I can do that. Unfortunately, the installer doesn't mount the SD card and doesn't even detect it as being present but when I boot the live Debian image, it is there, and I can mount it but I cannot install Debian on it.


you could maybe try to unpack the image squashfs to a drive.
Bring the grub sector 446 to the disk /dev/sda (will destroy all)
Bring the partitions with fdisk, create ext3, and place the content of squashfs, in other word populate, and do not forget to check the initramfs and kernel (to be found at boot)
spartrekus
 
Posts: 6
Joined: 2018-02-23 16:13

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-02-24 03:10

Well, I managed to get the graphical installer to detect the SD card with a USB adapter. I figured I'd just edit fstab when the install was done and then move the SD card to the internal reader. Unfortunately, the installer seems to have trouble properly partitioning the SD card and leaves it completely unreadable by anything I tried until finally I gave up and used my Widows 10 rig to make it usable again.
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby spartrekus » 2018-02-24 11:13

Huecuva wrote:Well, I managed to get the graphical installer to detect the SD card with a USB adapter. I figured I'd just edit fstab when the install was done and then move the SD card to the internal reader. Unfortunately, the installer seems to have trouble properly partitioning the SD card and leaves it completely unreadable by anything I tried until finally I gave up and used my Widows 10 rig to make it usable again.


I do not understand what you did. likely you need gparted live on an sd to have a linux loaded on the ram, with all stuffs
https://downloads.sourceforge.net/gpart ... 1-i686.iso
once you have this you have a linux on ram on an usb stick, to start to play

1: which live image do you want to have on your harddisk?
have you a squashfs image, loaded from the grub.cfg
maybe you could give us more infos...

everything is possiible with linux ;) !
(and FreeBSD too ;)))
spartrekus
 
Posts: 6
Joined: 2018-02-23 16:13

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-03-01 01:39

What I did was put my SD card in a USB card reader and then launch the graphical Debian installer. The installer detected the SD card just fine but when I selected the option to use guided partitioning and use the whole disk, it tries and then fails, leaving the SD card completely unreadable. I had to use Windows 10 to repartition and format it before anything would read it again because GParted and Parted Magic (UBCD) couldn't do anything with it. Yes, I tried them both. I'm pretty sure GParted isn't going to help me partition the SD card for Linux. I'm not sure what other "infos" you need.

Like I said, I'll just use the SD card for storage and install Debian on an SSD instead. It will make it a bit more of a pain to put more music on the storage drive (SD card) when I decide to do that instead of just being able to pop it out, plug it into my Windows rig and dump some MP3s on it, but...eh. C'est la vie.
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby p.H » 2018-03-01 12:33

Huecuva wrote:I selected the option to use guided partitioning and use the whole disk, it tries and then fails, leaving the SD card completely unreadable. I had to use Windows 10 to repartition and format it before anything would read it again because GParted and Parted Magic (UBCD) couldn't do anything with it.

1) IMO, guided partitioning sucks.

2) IME, GParted and generally all libparted-based partition managers (including partman, the Debian installer partitioning tool), behave badly with invalid or non-standard partition tables. The good old fdisk often works better on these.
p.H
 
Posts: 402
Joined: 2017-09-17 07:12

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-03-01 14:21

The Debian installer partitioning tool doesn't seem to have any problems partitioning anything else I throw at it, like the SSD I installed it on. Just the SD card for some reason. If guided partitioning sucks so bad, I guess you would suggest manually partitioning? I just use guided partitioning because it's generally good enough for my purposes. I'd have to figure out what partitions I'm supposed to be creating.
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby p.H » 2018-03-01 15:23

Huecuva wrote:you would suggest manually partitioning?

Yes.
Huecuva wrote:I just use guided partitioning because it's generally good enough for my purposes. I'd have to figure out what partitions I'm supposed to be creating.

If you have used guided partitioning, you have seen what partition it creates.
For a BIOS boot installation on MBR, you must create at least a root partition, and a swap partition if you need it. On GPT, you should create an extra 1 MB unformatted BIOS boot partition.
For an EFI boot installation either on MBR or GPT, you must also create an EFI partition.
p.H
 
Posts: 402
Joined: 2017-09-17 07:12

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-03-02 02:44

Alright, perhaps I'll give manually partitioning a try this weekend, though I'm not sure how doing it automatically or manually makes a difference. Whether I tell it what partitions to create or let a script do the talking, the commands are pretty much the same and the guided partitioning always fails.
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-03-04 20:25

So I've tried manually partitioning the SD card. I've managed to deduce that the Debian installer fails on formatting the partitions it creates. I have tried pre-partitioning and pre-formatting the SD card in GParted, but unfortunately the Debian installer does not let you skip this step and use existing partitions, throwing errors like "No root file system is defined". Instead, it insists on partitioning and formatting the disk itself, which promptly fails, preventing install.

Ugh.
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby Head_on_a_Stick » 2018-03-04 21:33

Huecuva wrote:unfortunately the Debian installer does not let you skip this step and use existing partitions, throwing errors like "No root file system is defined"

I can assure you that it is in fact possible to use pre-existing (and pre-formatted) partitions in the installer because I have done just that several times over the past few days.

The trick is to choose "Manual Partitioning" then select the desired root partition, pick the "use as" option and choose the filesystem, once this is done you should see a "mount point" option that will allow you to set that as the root partition, IIRC.
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7629
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-03-04 22:51

Ah, yes. That was the next thing I was going to try, but I got side tracked. I will give that a shot. Thanks!
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-03-05 03:09

The attempt to mount a file system with type ext4 in SCSI7 (0,0,0), partition #1 (sdb) at / failed.

I set the boot flag on the partition I'm trying to install on and set the mount point to /. This is the exact error the partitioner keeps giving me when it fails whether I use the guided partitioning or not, so it might not actually be failing on formatting after all. It seems to be able to format the partition (though it only gives the option to not format when I have created a swap partition in GParted as well). Is this because I have the SSD that is sda? I told the partitioner not to use that drive but maybe it's still interfering? I will try removing it next time I'm messing with this thing.
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby p.H » 2018-03-05 18:47

Huecuva wrote:This is the exact error the partitioner keeps giving me when it fails

What error exactly ? I do not remember that you posted it already.
Could you also switch to the log console (tty4) after the error and get the relevant messages ?
Huecuva wrote:Is this because I have the SSD that is sda?

No, it should not matter.
p.H
 
Posts: 402
Joined: 2017-09-17 07:12

Re: Installing Debian 9 from live image

Postby Huecuva » 2018-03-06 00:38

p.H wrote:What error exactly ? I do not remember that you posted it already.
It's the first line in my last post. I didn't put it in a code block though, sorry.

Code: Select all
The attempt to mount a file system with type ext4 in SCSI7 (0,0,0), partition #1 (sdb) at / failed.

It's have trouble mounting root, for some reason.

p.H wrote:Could you also switch to the log console (tty4) after the error and get the relevant messages ?
I sure can! How do I do that?

I'm trying to put everything on one partition for pure simplicity. This rig has enough RAM I don't think I even need to bother with a swap partition, since it's on an SD card. Is there some other way it needs to be partitioned? It should be possible to boot from root, right? Every guided partitioning I've ever done has done that.
Huecuva
 
Posts: 57
Joined: 2017-06-09 04:00

Re: Installing Debian 9 from live image

Postby p.H » 2018-03-06 12:08

Partition #1 should be sdb1, not sdb.
Press Alt+FN to switch to console N, so Alt+F4 for tty4, plus Ctrl if switching from the graphic installer.
p.H
 
Posts: 402
Joined: 2017-09-17 07:12

PreviousNext

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable