How to stop the warning: Do not remove USB drive?
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
How to stop the warning: Do not remove USB drive?
Every Time I bootup with Puppy with a USB drive, I get the warning "Do not remove USB drive"
OK, I know it, and I want it to stop reminding me. Any edits I can do to stop it?
Thanks
OK, I know it, and I want it to stop reminding me. Any edits I can do to stop it?
Thanks
I've made some changes to the initrd.gz file and init script that will unmount the drive when copied to RAM (w/o pupsave file). A file within the puppy SFS must be modifed as well to get rid of the warning when the drive is unmounted. See this thread:
LiveHD & LiveUSB Boot
If all you want to do is get rid of that warning, and you have a pupsave, you would just need to edit the warning out of the delayedrun file.
LiveHD & LiveUSB Boot
If all you want to do is get rid of that warning, and you have a pupsave, you would just need to edit the warning out of the delayedrun file.
Ubuntu 10.10 Maverick
Core 2 Quad 2.4 GHz | 2 GB RAM
Core 2 Quad 2.4 GHz | 2 GB RAM
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
I looked, but I could not understand it. I have to know What I am modifying and where it its.
I tried umount, but it said it could not unmount, resource was busy.
Either I'll have to wait for an update, or live with it. (The fact my CD drive was running all the time was the reason I stuck Puppy 3.21 on the USB drive)
I tried umount, but it said it could not unmount, resource was busy.
Either I'll have to wait for an update, or live with it. (The fact my CD drive was running all the time was the reason I stuck Puppy 3.21 on the USB drive)
Last edited by markofkane on Sat 23 May 2009, 21:16, edited 1 time in total.
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Making changes in the initrd.gz is a hazardous business.
You can break your system if not well done.
I can't help with it.
You can break your system if not well done.
I can't help with it.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
markofkane
Looking over 4.00 routine, here is your culprit, (unwanted feature, (bell or whistle) ).
The commands will run only if condition test is true. Make it false as shown below with one simple edit. Optionally
you can remove the entire block of code. But the edit
might be easier for you. Your choice.
File is /usr/sbin/delayedrun
from
if [ "$PMEDIA" = "usbflash" ];then
to
if [ "$PMEDIA" = "xyz" ];then
Bruce
~
Looking over 4.00 routine, here is your culprit, (unwanted feature, (bell or whistle) ).
Code: Select all
#v2.16 popup a warning if booting from usb flash...
if [ "$PMEDIA" = "usbflash" ];then
yaf-splash -font "8x16" -outline 0 -margin 4 -bg yellow -text "WARNING! Do not unplug USB Flash drive!" &
X1PID=$!
X1RET=$?
sleep 3
[ $X1RET -eq 0 ] && kill $X1PID
fi
you can remove the entire block of code. But the edit
might be easier for you. Your choice.
File is /usr/sbin/delayedrun
from
if [ "$PMEDIA" = "usbflash" ];then
to
if [ "$PMEDIA" = "xyz" ];then
Bruce
~
Last edited by Bruce B on Sun 24 May 2009, 00:24, edited 1 time in total.
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
Worked like a charm!! thanks!!
Bruce B wrote:markofkane
Looking over 4.00 routine, here is your culprit, (unwanted feature, (bell or whistle) ).
The commands will run only if condition test is true. Make it false as shown below with one simple edit. OptionallyCode: Select all
#v2.16 popup a warning if booting from usb flash... if [ "$PMEDIA" = "usbflash" ];then yaf-splash -font "8x16" -outline 0 -margin 4 -bg yellow -text "WARNING! Do not unplug USB Flash drive!" & X1PID=$! X1RET=$? sleep 3 [ $X1RET -eq 0 ] && kill $X1PID fi
you can remove the entire block of code. But the edit
might be easier for you. Your choice.
File is /usr/sbin/delayedrun
from
if [ "$PMEDIA" = "usbflash" ];then
to
if [ "$PMEDIA" = "xyz" ];then
Bruce
~
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
Bruce B wrote:An intentional feature, which is working as intended, is notmarkofkane wrote: Well, like I said, I'll just have to live with it until there is an official update, if any. (or patch, or anything)
likely to get patched. But it's easy enough to 'fix' if you don't
like it.
I did not actually mean the popup, but the fact that Puppy 4.21 locks the drives. Where as 4.12 did not. (at least not on my computer) But no problem since I am using a flash-drive, instead of my CD Drive.
If puppy had no need to lock the drives, the popup would not be needed, I suppose.
Puppy doesn't need a pup_save file, if it stays mounted formarkofkane wrote:I did not actually mean the popup, but the fact that Puppy 4.21 locks the drives. Where as 4.12 did not. (at least not on my computer) But no problem since I am using a flash-drive, instead of my CD Drive.
If puppy had no need to lock the drives, the popup would not be needed, I suppose. :?:
the pup_save file, it's for your convenience, so you can
read from the save file and periodically write back to it.
Puppy needs the pup_xxx.sfs file. If it is not copied to
RAM, and it won't be unless you have sufficient RAM, it
needs the USB stick* mounted or Puppy won't work.
* unless it got mounted from another location
~
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
If you don't have a pupsave (pfix=RAM, or first boot), AND you see the purple message that the puppy SFS file is copied to RAM, then Puppy isn't really using the boot media. You can just type "umount /dev/xxx" in the console and it will unmount. Just pulling it out? Not sure what will happen, but if you issue the umount command first, you should be fine.
Ubuntu 10.10 Maverick
Core 2 Quad 2.4 GHz | 2 GB RAM
Core 2 Quad 2.4 GHz | 2 GB RAM
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA
I tried that. It saidfloborg wrote:If you don't have a pupsave (pfix=RAM, or first boot), AND you see the purple message that the puppy SFS file is copied to RAM, then Puppy isn't really using the boot media. You can just type "umount /dev/xxx" in the console and it will unmount. Just pulling it out? Not sure what will happen, but if you issue the umount command first, you should be fine.
"cannot umount /initrd/mnt/dev_ro2 Device or resource busy"
The command I used was:
"umount /dev/sdb1" which is my flash drive.
You have written that you have 2 GB of RAM, so the puppy SFS should get copied to RAM. This will let you unmount the boot device, ONLY if a pupsave has not been loaded. Are you using a pupsave?markofkane wrote:I tried that. It saidfloborg wrote:If you don't have a pupsave (pfix=RAM, or first boot), AND you see the purple message that the puppy SFS file is copied to RAM, then Puppy isn't really using the boot media. You can just type "umount /dev/xxx" in the console and it will unmount. Just pulling it out? Not sure what will happen, but if you issue the umount command first, you should be fine.
"cannot umount /initrd/mnt/dev_ro2 Device or resource busy"
The command I used was:
"umount /dev/sdb1" which is my flash drive.
Ubuntu 10.10 Maverick
Core 2 Quad 2.4 GHz | 2 GB RAM
Core 2 Quad 2.4 GHz | 2 GB RAM
- markofkane
- Posts: 310
- Joined: Thu 03 Jul 2008, 09:02
- Location: Kane, IL USA