* OS doesn't see the partitions after reboot
@ 2016-08-19 13:18 dt
2016-08-19 14:13 ` Vincent Legoll
2016-08-30 12:16 ` Ludovic Courtès
0 siblings, 2 replies; 3+ messages in thread
From: dt @ 2016-08-19 13:18 UTC (permalink / raw)
To: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 670 bytes --]
I have tried to install GuixSD on my non-UEFI PC from USB and I have
encountered multiple problems.
1) The USB is /dev/sda while HDD is /dev/sdb during the installation,
but after reboot HDD becomes /dev/sda.
How do I set the device for the bootloader and swap partition without
using device tree name (/dev/sdX)?
2) I have set the labels on HDD partitions this way:
/dev/sdb1 (ext4) - boot
/dev/sdb2 (ext4) - root
/dev/sdb3 (swap) - swap
/dev/sdb4 (ext4) - home
The config file for my system is attached.
After invoking `guix system init /mnt/etc/config.scm /mnt` and rebooting
the OS fails to mount the partitions because it doesn't detect them.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: config.scm --]
[-- Type: text/x-scheme; name="config.scm", Size: 2161 bytes --]
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop)
(use-package-modules certs)
(operating-system
(host-name "oldpc")
(timezone "Europe/Minsk")
(locale "ru_RU.UTF-8")
;; Assuming /dev/sdX is the target hard disk, and "my-root"
;; is the label of the target root file system.
(bootloader (grub-configuration (device "/dev/sdb")))
(file-systems (cons* (file-system
(mount-point "/")
(type "ext4")
(title 'label)
(device "root"))
(file-system
(mount-point "/boot")
(type "ext4")
(title 'label)
(device "boot"))
(file-system
(mount-point "/home")
(type "ext4")
(title 'label)
(device "home"))
%base-file-systems))
(users (cons* (user-account
(name "dt")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"))
(home-directory "/home/dt"))
(user-account
(name "guest")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"))
(home-directory "/home/guest"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
%base-packages))
;; Add GNOME and/or Xfce---we can choose at the log-in
;; screen with F1. Use the "desktop" services, which
;; include the X11 log-in service, networking with Wicd,
;; and more.
(services (cons (xfce-desktop-service)
%desktop-services))
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: OS doesn't see the partitions after reboot
2016-08-19 13:18 OS doesn't see the partitions after reboot dt
@ 2016-08-19 14:13 ` Vincent Legoll
2016-08-30 12:16 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Legoll @ 2016-08-19 14:13 UTC (permalink / raw)
To: dt; +Cc: help-guix
> 2) I have set the labels on HDD partitions this way:
> /dev/sdb1 (ext4) - boot
> /dev/sdb2 (ext4) - root
> /dev/sdb3 (swap) - swap
> /dev/sdb4 (ext4) - home
>
> The config file for my system is attached.
>
> After invoking `guix system init /mnt/etc/config.scm /mnt` and rebooting
> the OS fails to mount the partitions because it doesn't detect them.
That's strange, as this is working for me on guixSD 0.11.0 installed in a Qemu
VM.
--
Vincent Legoll
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: OS doesn't see the partitions after reboot
2016-08-19 13:18 OS doesn't see the partitions after reboot dt
2016-08-19 14:13 ` Vincent Legoll
@ 2016-08-30 12:16 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2016-08-30 12:16 UTC (permalink / raw)
To: dt; +Cc: help-guix
Hi, and sorry for the late reply!
dt <dtluna@openmailbox.org> skribis:
> 1) The USB is /dev/sda while HDD is /dev/sdb during the installation,
> but after reboot HDD becomes /dev/sda.
> How do I set the device for the bootloader and swap partition without
> using device tree name (/dev/sdX)?
Use a device label, as suggested at:
https://www.gnu.org/software/guix/manual/html_node/Preparing-for-Installation.html#Disk-Partitioning
The config file you posted does use partition labels, as in:
(file-system
(title 'label)
(device "root")
…)
Could it be that the partitions actually carry a different label? You
can check that by running ‘e2label /dev/sdX’.
HTH!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-30 12:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-19 13:18 OS doesn't see the partitions after reboot dt
2016-08-19 14:13 ` Vincent Legoll
2016-08-30 12:16 ` Ludovic Courtès
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).