Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] upgrade to Krypton returns 16.1 after reboot
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: upgrade to Krypton returns 16.1 after reboot
3rd Mar, 2017, 07:28 AM
Post: #9
Nachteule Offline
Administrator
******
Posts: 2,406
Joined: Dec 2014
Reputation: 122
RE: upgrade to Krypton returns 16.1 after reboot
Sure Smile

1. Check if initramfs is used, it is required for auto-creatiion of swap partition

File /boot/config.txt must look like this:

Terminal

cat /boot/config.txt
initramfs initramfs.gz 0x1500000
kernel kernel.img
...
...

If initramfs.gz 0x1500000 is commented out, you have to enable initramfs (can be done in xbian-config GUI)

2. Disable swap and delete existing swap partition

Open ssh commection

Terminal

xbian@kmxbilr2 ~ $ sudo swapoff -a
[sudo] password for xbian:
xbian@kmxbilr2 ~ $ sudo fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/mmcblk0: 14,7 GiB, 15720251392 bytes, 30703616 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: 0x48fa040d

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 141311 139264 68M b W95 FAT32
/dev/mmcblk0p2 141312 30201855 30060544 14,3G 83 Linux
/dev/mmcblk0p3 30201856 30703615 501760 245M 82 Linux swap / Solaris


Command (m for help): d
Partition number (1-3, default 3): 3

Partition 3 has been deleted.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Das Gerät oder die Ressource ist belegt

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

3. Reboot

Terminal

sudo reboot

4. Check if swap partition has been created again

Terminal

xbian@kmxbilr2 ~ $ sudo fdisk -l
[sudo] password for xbian:

...

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 141311 139264 68M b W95 FAT32
/dev/mmcblk0p2 141312 30201855 30060544 14,3G 83 Linux
/dev/mmcblk0p3 30201856 30703615 501760 245M 82 Linux swap / Solaris

Disk /dev/zram0: 64 MiB, 67108864 bytes, 16384 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
xbian@kmxbilr2 ~ $
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
upgrade to Krypton returns 16.1 after reboot - jakenl - 28th Feb, 2017, 06:38 AM
RE: upgrade to Krypton returns 16.1 after reboot - jakenl - 28th Feb, 2017, 09:23 AM
RE: upgrade to Krypton returns 16.1 after reboot - Nachteule - 28th Feb, 2017, 09:42 AM
RE: upgrade to Krypton returns 16.1 after reboot - jakenl - 28th Feb, 2017, 09:55 AM
RE: upgrade to Krypton returns 16.1 after reboot - Nachteule - 28th Feb, 2017, 09:58 AM
RE: upgrade to Krypton returns 16.1 after reboot - jakenl - 2nd Mar, 2017, 06:08 AM
RE: upgrade to Krypton returns 16.1 after reboot - Nachteule - 2nd Mar, 2017, 06:17 AM
RE: upgrade to Krypton returns 16.1 after reboot - jakenl - 3rd Mar, 2017, 06:34 AM
RE: upgrade to Krypton returns 16.1 after reboot - Nachteule - 3rd Mar, 2017 07:28 AM
RE: upgrade to Krypton returns 16.1 after reboot - jakenl - 8th Mar, 2017, 10:09 PM
RE: upgrade to Krypton returns 16.1 after reboot - Nachteule - 8th Mar, 2017, 11:57 PM
RE: upgrade to Krypton returns 16.1 after reboot - jakenl - 9th Mar, 2017, 08:15 AM
RE: upgrade to Krypton returns 16.1 after reboot - Nachteule - 11th Mar, 2017, 02:17 AM
RE: upgrade to Krypton returns 16.1 after reboot - jakenl - 11th Mar, 2017, 02:18 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 8th Jun, 2025, 01:54 AM Powered By MyBB, © 2002-2025 MyBB Group.