gnewsense-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gNewSense-users] Mounting/partitioning inside a VM


From: Kim Hawtin
Subject: Re: [gNewSense-users] Mounting/partitioning inside a VM
Date: Fri, 13 Apr 2012 12:40:16 +0930
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120207 Icedove/3.0.11

On 13/04/12 10:27, Stayvoid wrote:
Hi,

I got the following errors (I've already moved /var line upper (right
after /home)):

Mounting local filesystems...mount: mount point /var/tmp does not exist
mount: mount point /var/mail does not exist
failed.
[...]
/etc/init.d/bootmisc.sh: 63: cannot create /var/run/utmp: Directory nonexistent
[...]
startpar: service(s) returned failure: bootmisc.sh ... failed!
[...]
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Directory nonexistent
/etc/init.d/bootlogs: 74: cannot create /var/run/motd: Directory nonexistent
/etc/init.d/bootlogs: 74: cannot create /var/log/dmesg: Directory nonexistent
chgrp: cannot access `/var/log/dmesg': No such file or directory
Starting enhanced syslogd: rsyslogdCan't open or create /var/run/rsyslogd.pid
Can't write pid
  already started.
Could not create file /var/lib/dbus/machine-id: No such file or directory

Starting periodic command scheduler: cron/var/spool/cron: No such file
or directory
/var/spool/cron: mkdir: No such file or directory
  failed!
[...]

when you mount a new file system to replace /var you will need to pre-populate the contents across.

I usually mount a new file system on /mnt and then use rsync;

  mount -t ext3 /dev/XXXXX /mnt
  rsync -av /var/ /mnt/

the '/'s on the end of the paths are important!

then you can;

  umount /mnt
  mount -t ext3 /dev/XXXXX /var

regards,

Kim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]