chroot: Can't see first few lines when using vi
by aikempshall from LinuxQuestions.org on (#4YDRT)
These are the scenarios -
When I start vi I can't see the top 8 lines or so of the file being edited. As a workaround once in vi I make sure I'm at the start of the file being edited with the command
1G
I then blindly insert lines until the first line of the file appears on my display
I can then do what needs to be done.
It would be nice if I didn't have to do this in vi.
I think, by writing this post, I'm starting to think of an idea of what I need to do.
Maybe I need to set up some environment variable to let the system know what type of monitor I'm using in chroot? Myabe chroot doesn't automatically kick off any of my profiles.
Any suggestions welcome.
Alex


- Might have forgotten to create a new grub.cfg or initrd
- Need to migrate an existing install to a bigger drive
- Boot from slackware install disk (14.2)
- At the prompt load correct keyboard
- logon as root
- Mount the existing install as /mnt
- chroot /mnt
- then do what needs to be done
When I start vi I can't see the top 8 lines or so of the file being edited. As a workaround once in vi I make sure I'm at the start of the file being edited with the command
1G
I then blindly insert lines until the first line of the file appears on my display
I can then do what needs to be done.
It would be nice if I didn't have to do this in vi.
I think, by writing this post, I'm starting to think of an idea of what I need to do.
Maybe I need to set up some environment variable to let the system know what type of monitor I'm using in chroot? Myabe chroot doesn't automatically kick off any of my profiles.
Any suggestions welcome.
Alex