You are not logged in.

#1 2014-11-07 00:28:15

rofiquzzaki
Member
Registered: 2014-07-18
Posts: 17

[SOLVED] cannot move /usr to a new partition

I've made new partition in ext4, move the /usr to new directory in /dev/sda5 but whenever it starts it says

ERROR: Root device mounted successfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.

sh: can't access tty; job control turned off

I'm using mint live cd to copy

sudo rsync -aXS /media/mint/7d2419ca-c48b-4e8d-95b5-9c88d5815e47/usr/. /media/mint/ce116bbf-375f-47d3-a77f-0eaa1c768289.

like from https://help.ubuntu.com/community/Parti … ome/Moving

and I've added to /etc/fstab this

UUID=ce116bbf-375f-47d3-a77f-0eaa1c768289   /usr     /ext4        defaults       0       2

Last edited by rofiquzzaki (2014-11-07 12:44:00)

Offline

#2 2014-11-07 00:34:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,592

Re: [SOLVED] cannot move /usr to a new partition

Did you add the usr hook to your initramfs?

https://wiki.archlinux.org/index.php/Mk … _partition

Last edited by Scimmia (2014-11-07 00:37:34)

Offline

#3 2014-11-07 02:47:04

rofiquzzaki
Member
Registered: 2014-07-18
Posts: 17

Re: [SOLVED] cannot move /usr to a new partition

wow, thanks Scimmia for such a fast response

I wonder if you tell me how to add service / become root from another OS, since my Arch cannot boot after I changed my /usr. Or how to add the shutdown hook?

Offline

#4 2014-11-07 04:29:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,592

Re: [SOLVED] cannot move /usr to a new partition

You'll need chroot into your Arch installation, modify your mkinitcpio.conf and regenerate your initramfs.

Offline

#5 2014-11-07 12:36:30

rofiquzzaki
Member
Registered: 2014-07-18
Posts: 17

Re: [SOLVED] cannot move /usr to a new partition

[SOLVED]
Success!
Thanks everyone
Here's what I've done if someone else needs some help

I've added my /etc/fstab

UUID=ce116bbf-375f-47d3-a77f-0eaa1c768289   /usr   ext4   defaults   0   1

and added /etc/mkinitcpio.conf in HOOKS line I added 'shutdown' and 'usr' and 'fsck' is there by default

HOOKS="base udev autodetect modconf block filesystems keyboard shutdown usr fsck"

and what I've done with my usb Arch installer after boot to my usb Arch installer

# mkdir arch_root
# mount /dev/sda2 arch_root
# mkdir /arch_root/usr
# mount /dev/sda5 /arch_root/usr
# arch-chroot /arch_root /bin/bash
# mkinitcpio -p linux

Last edited by rofiquzzaki (2014-11-07 12:43:21)

Offline

Board footer

Powered by FluxBB