LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-18-2015, 09:43 AM   #16
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45

It is my understanding that an mv across partitions is in reality a cp followed by an rm.

So I can't see how using mv will make things better. If something goes wrong it will not be easy to fix.

I'm still thinking in terms of the initrd file. The problem seems to be that, early in the boot process, fsck cannot find /usr. When the boot is complete /usr is there, but unchecked.

So: If I copy the initrd file somewhere else, reboot with the new /usr directory selected in fstab and then run update-initramfs is it likely that the new initrd file will have the info necessary for fsck to find /usr?

If this fails I can copy the original initrd file back and reselect the old /usr.

Or am I missing something out and risking trashing my system?
 
Old 02-18-2015, 10:55 PM   #17
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Since you did the cp to /usr1 did you rename /usr to /usr.bac, then rename /usr1 to /usr?
 
Old 02-19-2015, 01:47 AM   #18
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45
@EDDY1

Almost!. I renamed usr1 to usr and vice versa and then reflected the change in fstab.

I could do this because the two directories are on different discs.

I think I'll rephrase the question and toss it into the Linux General forum although i suspect that most of the people here will be there too.

After that I have 2 options.

1. Cross my fingers and run update-inotramfs.
2. Move the /var directory instead of the /usr one and then grow /usr into the space vacated by /var. They are on different but adjacent partitions.
 
Old 02-19-2015, 03:00 AM   #19
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
As far as your problems:
systemd doesn't like /usr on seperate partitions unless you build it into initramfs.
 
Old 02-19-2015, 05:24 AM   #20
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45
Quote:
systemd doesn't like /usr on seperate partitions unless you build it into initramfs.
Is it as simple as booting with the new usr and then running update-initramfs or do I need to do more?
 
Old 02-19-2015, 07:26 PM   #21
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
At the present time I'm not sure how you would deal with it, when I got the warning I chose to move /usr to /. This was my original post, which I forgot to post solution & mark solved.
http://www.linuxquestions.org/questi...en-4175517426/
When I had that problem I lost /usr by entering a wrong command while using live-cd. I believe I found it in tmp. Then moved it back.
Actually the command was the right command but since I was in live-cd I should've used
Quote:
sudo mv /sudo mv /media/UUID#/usr /media/UUID#/usr1
 
Old 02-21-2015, 11:52 AM   #22
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45
OK, so this is yet another problem created by systemd.

Has it SOLVED any problems?

With SysV I at least felt in control. With Systemd the way it is I may as well go back to Windows! At least there I could hack the registry.

As far as I can tell there is no way of controlling Systemd and no easy way to abandon it. NOTE: I would love it if somebody proved me wrong.

Thanks to all for the help. I'm not marking this as solved since the solution is not to do what I want/need to.
 
Old 02-21-2015, 02:10 PM   #23
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What have you done so far?
What problem are you experiencing?
 
Old 02-22-2015, 02:07 AM   #24
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45
Problem Restated

I have tried to move /usr from /dev/sda6 to a new disc, on /dev/sdb8.

During bootup fdisk complains that it cannot find /usr.

Computer will not enter maintenance mode as it cannot find the passwords database (probably 'cos it's in /usr.)

The boot continues and the PC seems to work normally. However I cannot accept a situation where /usr cannot be checked during boot.

Apparently there may be other problems because systemd does not support this configuration.

http://freedesktop.org/wiki/Software...-usr-is-broken
 
Old 02-22-2015, 11:26 AM   #25
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Systemd supports it by rebuilding initramfs. I believe the patch makes it do fsck before actually mounting.
You will probably find more documentation in fedora since it's been running systemd the lo.vest & without problems. I believe that I had problems getting info becaus I didn't have an account with redhat or fedora.
 
Old 03-05-2015, 05:22 AM   #26
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Just FYI, while doing my regular upgrade on Sid today, I was prompted with the changelog of the new version of initramfs-tool:

Quote:
The initramfs will now run fsck on the root filesystem before
mounting it. If the chosen init program is systemd and there is a
separate /usr filesystem, it will also fsck and mount /usr.
So, might be worth to give it a try. By the way, this is version 0.119 of initramfs-tools.

Last edited by Hungry ghost; 03-05-2015 at 05:38 AM.
 
Old 03-05-2015, 11:16 AM   #27
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Just FYI, while doing my regular upgrade on Sid today, I was prompted with the changelog of the new version of initramfs-tool:
That's good then that means they added automatic support for it, so you don't have to do it manually. I really liked having separate /usr because my / wasn't always getting full.
 
Old 03-05-2015, 11:23 AM   #28
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by EDDY1 View Post
That's good then that means they added automatic support for it, so you don't have to do it manually. I really liked having separate /usr because my / wasn't always getting full.
Yes, hopefully the problem is fixed on this version of initramfs-tools.
 
Old 03-06-2015, 04:06 AM   #29
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45
Thanks for the info. I ran the upgrades yesterday, with /usr still in hte original position. Been run off my feet and so was, and still am, unable to play at length at the moment.

Can anybody answer this please:

Will initramfs find /usr if I move it or do I need to move it, get past the error messages and then generate a new initramfs?

Thanks for the help.
 
Old 03-06-2015, 05:03 PM   #30
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by davcefai View Post
Thanks for the info. I ran the upgrades yesterday, with /usr still in hte original position. Been run off my feet and so was, and still am, unable to play at length at the moment.

Can anybody answer this please:

Will initramfs find /usr if I move it or do I need to move it, get past the error messages and then generate a new initramfs?

Thanks for the help.
Only if it's in fstab.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving a folder, versus moving its contents (within the same partition) the dsc General 7 06-29-2012 04:46 AM
,dmrc problem after moving /home partition to NTFS partition yeehung Linux - Newbie 1 11-14-2007 06:17 AM
Problem moving /var to separate partition a550ee Linux - Newbie 6 10-02-2007 03:09 PM
Access Denied Problem : Moving A File To usr/lib Help Please DozenEggs Linux - Newbie 5 08-22-2004 06:59 PM
Moving the /usr partition ferrantepunto Linux - General 4 01-08-2003 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration