WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [solved] Specifying permanent directories for /home and /opt  (Read 14301 times)

Offline gtr2

  • Newbie
  • *
  • Posts: 19
I did a search but nothing came up regarding piCore. I understand that I have to:

1. Set these 2 boot codes ( i.e  home=mmcblk0p2 and opt=mmcblk0p2 )
2. Remove home and opt from /opt/.filetool.lst
3. Run: filetool.sh -b

The trouble is, I don't know where I'm supposed to enter the boot codes mentioned in 1.
« Last Edit: May 27, 2013, 11:13:22 PM by gtr2 »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Specifying permanent directories for /home and /opt
« Reply #1 on: May 27, 2013, 04:14:12 AM »
Edit /mnt/mmcblk0p1/cmdline.txt
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gtr2

  • Newbie
  • *
  • Posts: 19
Re: Specifying permanent directories for /home and /opt
« Reply #2 on: May 27, 2013, 05:09:08 AM »
I did the following:
Code: [Select]
sudo nano /mnt/mmcblk0p1/cmdline.txtI entered
Code: [Select]
home=mmcblk0p2  opt=mmcblk0p2I removed home and opt from /opt/.filetool.lst and ran a backup:
Code: [Select]
filetool.sh -b
The problem is, when my RPi reboots:
1. There's a fresh .filetool.lst with only two entries: home and opt
2. The previously created cmdline.txt doesn't exist anymore.

Once again, I must have forgotten something I guess ...

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: Specifying permanent directories for /home and /opt
« Reply #3 on: May 27, 2013, 04:48:52 PM »
The problem is, when my RPi reboots:
1. There's a fresh .filetool.lst with only two entries: home and opt
2. The previously created cmdline.txt doesn't exist anymore.
"Previously created cmdline.txt"? That file ALREADY exists on my setup, you should be editing it, not creating it. Did you mount the partition before trying to edit the file?

Offline gtr2

  • Newbie
  • *
  • Posts: 19
Re: Specifying permanent directories for /home and /opt
« Reply #4 on: May 27, 2013, 10:04:10 PM »
"Previously created cmdline.txt"? That file ALREADY exists on my setup, you should be editing it, not creating it. Did you mount the partition before trying to edit the file?
There was no cmdline.txt there so I had to create one. Isn't mmcblk0p1 automatically mounted ? I mean, this is where the operating system is, am I wrong ?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Specifying permanent directories for /home and /opt
« Reply #5 on: May 27, 2013, 10:38:26 PM »
mmcblk0p1 is not mounted, it is not used when piCore is running.

Where is your /tce directory?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gtr2

  • Newbie
  • *
  • Posts: 19
Re: Specifying permanent directories for /home and /opt
« Reply #6 on: May 27, 2013, 11:05:08 PM »
Alright, sorted! The only thing I had to think of was mounting mmcblk0p1 first.

The steps:

Mount mmcblk0p1
Code: [Select]
mount /dev/mmcblk0p1Open cmdline.txt
Code: [Select]
sudo nano //dev/mmcblk0p1/cmdline.txtAdd the following
Code: [Select]
home=mmcblk0p2 opt=mmcblk0p2Open /opt/.filetool.lst
Code: [Select]
nano  /opt/.filetool.lst
Remove home and opt.
Save and exit.

Run a backup
Code: [Select]
filetool.sh -b
Reboot.

« Last Edit: May 27, 2013, 11:44:13 PM by gtr2 »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: [solved] Specifying permanent directories for /home and /opt
« Reply #7 on: May 27, 2013, 11:25:07 PM »
Do not add it to backup!

Code: [Select]
dev/mmcblk0p1/cmdline.txt
It is an ordinary file on a FAT persistent partition, used during boot before piCore started.
« Last Edit: May 27, 2013, 11:26:51 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gtr2

  • Newbie
  • *
  • Posts: 19
Re: [solved] Specifying permanent directories for /home and /opt
« Reply #8 on: May 27, 2013, 11:43:51 PM »
Do not add it to backup!
Code: [Select]
dev/mmcblk0p1/cmdline.txtIt is an ordinary file on a FAT persistent partition, used during boot before piCore started.
I could have sworn that I had tried to run the lot without that entry and it failed miserably. All the same, I've removed it again and everything looks mint, thanks.