Inadvertent Booting Off External Drives
Inadvertent Booting Off External Drives
Greetings:
This an almost amusing problem. I booted up my flash to my third-hand laptop which has an external HD and it kept on booting up the wrong desktop with missing files. After a few bewildering boot-ups it dawned me that it might be accessing the HD on which I keep full Porteus backup folders. Will 3.0 be able to by default boot-off only the drive it's launched from unless otherwise instructed?
Thanks!
Jim in NYC
This an almost amusing problem. I booted up my flash to my third-hand laptop which has an external HD and it kept on booting up the wrong desktop with missing files. After a few bewildering boot-ups it dawned me that it might be accessing the HD on which I keep full Porteus backup folders. Will 3.0 be able to by default boot-off only the drive it's launched from unless otherwise instructed?
Thanks!
Jim in NYC
- Ed_P
- Contributor
- Posts: 8548
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Inadvertent Booting Off External Drives
A machine's boot sequence is determined by the machine's BIOS which is invoked well before an OS is.
Re: Inadvertent Booting Off External Drives
Okay, I wasn't precise enough; the flash's OS did boot but it then grabbed the changes folder from the external hard drive instead of the one on the same flash, and I was availing a virgin Porteus.cfg file.Ed_P wrote:A machine's boot sequence is determined by the machine's BIOS which is invoked well before an OS is.
Jim in NYC
-
- Full of knowledge
- Posts: 2083
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: Inadvertent Booting Off External Drives
@jimwg
Have a look at "Linuxrc" 8)
http://forum.porteus.org/viewtopic.php? ... 099#p21863Will 3.0 be able to by default boot-off only the drive it's launched from
Have a look at "Linuxrc" 8)
Re: Inadvertent Booting Off External Drives
Okay, I'm very pleased to see the rc update. Is it possible for me to bypass the .iso route and just replace the core and other modules with the updated versions in http://ftp3.ie.freebsd.org/pub/dl.porte ... ules-14.0/ ?donald wrote:@jimwghttp://forum.porteus.org/viewtopic.php? ... 099#p21863Will 3.0 be able to by default boot-off only the drive it's launched from
Have a look at "Linuxrc" 8)
Thanks!
Jim in NYC
Re: Inadvertent Booting Off External Drives
if you use syslinux or extlinux like boot loader you have to change the name of changes directory if you have two or more porteus system running on,because it run the first device with the changes directory on,take a look to the documentation or cheatcode use for this issue
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Inadvertent Booting Off External Drives
Those modules you link to above are not updated modules. They are from slackware-14.0 the latest rc2 is based on slackware-14.1
I recommend always using changes=UUID for a cheatcode to avoid problems booting incorrect changes.
I recommend always using changes=UUID for a cheatcode to avoid problems booting incorrect changes.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
Re: Inadvertent Booting Off External Drives
Okay, I can't find this UUID in any of Boot .cfg files. All I want to do is replace whatever UUID is with sdb1 to stay on the right path.brokenman wrote:Those modules you link to above are not updated modules. They are from slackware-14.0 the latest rc2 is based on slackware-14.1
I recommend always using changes=UUID for a cheatcode to avoid problems booting incorrect changes.
Thanks for any hints!
Jim in NYC
-
- Full of knowledge
- Posts: 2083
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: Inadvertent Booting Off External Drives
To find out the UUID of your Devices,open a root-terminal
and type blkid
or even
ls -Al /dev/disk/by-uuid
and type blkid
or even
ls -Al /dev/disk/by-uuid
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Inadvertent Booting Off External Drives
Sorry Jim i will explain more clearly.
The UUID is the unique identifier for your partition. It is a portable way to boot porteus because as you know on one machine a usb device may be detected as /dev/sdb1 and on another machine it may be something like /dev/sdd1. Therefore using the UUID cheatcode allows you to be sure you are always pointing to the exact location you intend, on any machine.
As donald said, open a root terminal and enter: blkid
Look for the UUID string on the same line as /dev/sdb1.
Here is the cheatcode from my porteus.cfg file.
from=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/v3.0
This is /dev/sda7 on my machine and porteus resides inside a folder called v3.0 on the root of this partition.
The UUID is the unique identifier for your partition. It is a portable way to boot porteus because as you know on one machine a usb device may be detected as /dev/sdb1 and on another machine it may be something like /dev/sdd1. Therefore using the UUID cheatcode allows you to be sure you are always pointing to the exact location you intend, on any machine.
As donald said, open a root terminal and enter: blkid
Look for the UUID string on the same line as /dev/sdb1.
Here is the cheatcode from my porteus.cfg file.
from=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/v3.0
This is /dev/sda7 on my machine and porteus resides inside a folder called v3.0 on the root of this partition.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
Re: Inadvertent Booting Off External Drives
donald's recommendation worked, thanks!brokenman wrote:Sorry Jim i will explain more clearly.
The UUID is the unique identifier for your partition. It is a portable way to boot porteus because as you know on one machine a usb device may be detected as /dev/sdb1 and on another machine it may be something like /dev/sdd1. Therefore using the UUID cheatcode allows you to be sure you are always pointing to the exact location you intend, on any machine.
As donald said, open a root terminal and enter: blkid
Look for the UUID string on the same line as /dev/sdb1.
Here is the cheatcode from my porteus.cfg file.
from=UUID:d2c78202-d77d-4fea-a793-e3758ed1b438/v3.0
This is /dev/sda7 on my machine and porteus resides inside a folder called v3.0 on the root of this partition.
Can a comments line be put in Porteus.cfg explaining how to get and set up UUID? It was easy enough once explained how!
Aside, is it possible for a boot-up script to first read its drive's UUID and apply it by default? Just wondering!
Jim in NYC
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Inadvertent Booting Off External Drives
Can a comments line be put in Porteus.cfg explaining how to get and set up UUID?
it cant cause we have separate file (cheatcodes.txt) explaining all the cheatcodes and putting them all to porteus.cfg makes no sense.
besides - we also have lilo.conf so it would have to go to two configs.
no go.
is it possible for a boot-up script to first read its drive's UUID and apply it by default?
i dont understand this question, please evaluate.
it cant cause we have separate file (cheatcodes.txt) explaining all the cheatcodes and putting them all to porteus.cfg makes no sense.
besides - we also have lilo.conf so it would have to go to two configs.
no go.
is it possible for a boot-up script to first read its drive's UUID and apply it by default?
i dont understand this question, please evaluate.
Please add [Solved] to your thread title if the solution was found.