Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 04:33
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
booting from an sdcard
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Wed 27 Apr 2011, 13:03    Post subject:  booting from an sdcard
Subject description: fat32 ok. ext3 not ok if made with gparted in lupu525 or puppeee4.4rc2. ext3 made in puppy301 ok.
 

booting from an sdcard
fat32 ok. ext3 not ok.

grub is on sda1 of internal SSD
new sandisk 2G sdcard is the internal reader at sdb.
puppeerc2 and lupu525 are in seperate directories on sdb1 which has an ext3 file system.
puppeerc2 is also on sdb4 with fat32 file system.



fat32 partition will boot with no flag, and with boot flag.

ext3 partition will not boot, everything i have tried gives as the first message to appear "Error 2: Bad file or directory type" for both puppeeerc2 and lupu525.

what boot flag needs to be set in gparted to get ext3 partition to boot? or is it something else that i am failing to do or notice.
i want to have all ext3 partitions and erase the fat32 partition.

grub booting with

Code:
title lupu525 on sdb1
root (hd1,0)
kernel /lupu525b1/vmlinuz phome=lupu525b1 psubdir=lupu525b1 pfix=fsck
initrd /lupu525b1/initrd.gz

 title puppeeerc2 on sdb1
root (hd1,0)
kernel /puppeeerc2b1/vmlinuz phome=puppeeerc2b1 psubdir=puppeeerc2b1 pfix=fsck
initrd /puppeeerc2b1/initrd.gz

title puppeeerc2 on sdb4
root (hd1,3)
kernel /puppeeerc2b4/vmlinuz phome=puppeeerc2b4 psubdir=puppeeerc2b4 pfix=fsck
initrd /puppeeerc2b4/initrd.gz


attached is fat32 partition successfully booted.
I have copied the lupu525 files from the sdb1 ext3 partition back to sda2 which is an ext3 partition with boot flag on located on the SSD and they successfully boot from there so there is nothing wrong with the files on the sdb1 ext3 partition.
sdb1.jpg
 Description   
 Filesize   45.85 KB
 Viewed   1583 Time(s)

sdb1.jpg


_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>

Last edited by aarf on Thu 28 Apr 2011, 17:15; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Wed 27 Apr 2011, 14:53    Post subject:  

Hi aarf,

can't see any fault. It should work. It did all the time for me. On my basic sdhc card I use only ext3. And I used grub (and mbr on this card) for a long time. Now I have grub4dos and mbr on sda1 (removed xp complete and formatted with ext3).

If grub and mbr is on sda, boot flag on sdb doesn't matter (AFAIK).

Most time I also used the minimal grub commands, like

Code:
title lupu525 on sdb1
 root (hd1,0)
 kernel /lupu525b1/vmlinuz psubdir=lupu525b1
 initrd /lupu525b1/initrd.gz

Don't know 'phome'.

Would recommend to to delete sdb1 completely, build a new partition, format with ext3 and copy lupu 525 back and try again (if you didn't already).

HTH

Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Wed 27 Apr 2011, 15:33    Post subject:  

phome= was used in puppy 1.xx
Now it's pmedia

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Wed 27 Apr 2011, 16:23    Post subject:  

Deleted phome. no change. Will try rebuilding the partition later. SDcard is SD not SDHC. My internal cardreader eats SDHC.
_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 8554
Location: Stratford, Ontario

PostPosted: Wed 27 Apr 2011, 18:31    Post subject:  

GRUB Error 2 is the 128 byte inode issue. Read here. But I'm not sure if this applies to your situation.
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 4613
Location: Charleston S.C. USA

PostPosted: Wed 27 Apr 2011, 19:17    Post subject:  

I think your Grub entries are the problem.
The kernel entries look wrong.
I use Grub4dos to set up the boot loader.
Here is what mine look like.

# Frugal installed Puppy

title Lupu 525 (sda3/puppy525)
find --set-root --ignore-floppies --ignore-cd /puppy525/initrd.gz
kernel /puppy525/vmlinuz pmedia=atahd psubdir=puppy525 pfix=fsck
initrd /puppy525/initrd.gz

title Lupu 525 (sda3/puppy525) RAM mode\nBoot up Puppy without pupsave
find --set-root --ignore-floppies --ignore-cd /puppy525/initrd.gz
kernel /puppy525/vmlinuz pmedia=atahd psubdir=puppy525 pfix=ram,fsck
initrd /puppy525/initrd.gz

title Lupu 525 (sdb1)
uuid 2aa70712-17d0-4335-ba3c-0b3a5fa0b20d
kernel /vmlinuz pmedia=usbflash pfix=fsck
initrd /initrd.gz

# Full installed Linux

title Lucid Puppy 525 good(sda2/boot)
uuid afe7e00e-0410-458e-928c-8f0c7e6ec419
kernel /boot/vmlinuz root=/dev/sda2 ro

title Linux Mint 8 Helena - Main Edition (sda7)
uuid 2a7dc791-ef27-4a70-ae9e-f59d14bdfa18
kernel /vmlinuz root=/dev/sda7 ro
initrd /initrd.img

If it was me I would use Grub4dos bootloader config program in Lucid Puppy 5.25 to set up the menu.lst for grub.
It is very good at finding everything and making the proper entries.
Back to top
View user's profile Send private message 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Thu 28 Apr 2011, 03:55    Post subject:  

aarf,

it's possible, that I also used pmedia=usbflash in menu.lst. Embarassed

Can't remember exact, and my usbhd for backups crashed and bye bye ~750GB backups Evil or Very Mad

Rolf

Edit: Just tested on my Eee with grub4dos and mbr on sda1=internal memory chip, Puppeee on sdc2=SDHC:
I removed pmedia=usbflash and it boots also fine.
So in my case it doesn't seem to be necessary.

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 28 Apr 2011, 05:07    Post subject:  

rcrsn51 is correct diagnosis. 256 is the problem. fixed using puppy301 to create the ext3 partition. Details later. My grub is ordinary and old.
Thanks all.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 28 Apr 2011, 15:16    Post subject:  

notes as going through. read in conjunction to rcrsn51's link above
note that mkfs.ext3 -l 128 /dev/sdb1 doesnt work.

in puppeee4.4rc2

Code:
# mkfs.ext3 -l 128 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
83424 inodes, 333039 blocks
16651 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=343932928
11 block groups
32768 blocks per group, 32768 fragments per group
7584 inodes per group
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912

read_bad_blocks_file: No such file or directory while trying to open 128
# tune2fs -l /dev/sdb1
tune2fs 1.41.12 (17-May-2010)
tune2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.
#

file system is "unknown" in gparted. built new ext file system in gparted and it was 256.

switch to lupu525.
Code:
# mkfs.ext3 -l 128 /dev/sdb1
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
83424 inodes, 333039 blocks
16651 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=343932928
11 block groups
32768 blocks per group, 32768 fragments per group
7584 inodes per group
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912

read_bad_blocks_file: No such file or directory while trying to open 128
# tune2fs -l /dev/sdb1
tune2fs 1.41.14 (22-Dec-2010)
tune2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.
#

rebuild in gparted > Inode size:256

switch to puppy301

rebuild filesystem to ext3 without deleting the 256 ext3 partion > inode size : 128
try to mount partition >see image.
reinsert sdcard > same as image.
delete partition. rebuild ext3.
reinsert sdcard.
copy lupu525 and puppeee4,4rc2 to partition.
check and is 128.

lupu525 and puppeee4,4rc2 both boot ok with existing menu.lst code above..
301.jpg
 Description   
 Filesize   60.97 KB
 Viewed   1506 Time(s)

301.jpg


_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 28 Apr 2011, 15:30    Post subject:  

unknown contribution to the problem from SD not SDHC, and is ext3 on flash drive ok? also unknown contribution from my old grub.
need clarification from those who successfully boot grub4dos if their inode size is 256 or 128.
which puppy were the successful ext3 partitions built with.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 8554
Location: Stratford, Ontario

PostPosted: Thu 28 Apr 2011, 15:46    Post subject:  

Quote:
note that mkfs.ext3 -l 128 /dev/sdb1 doesnt work.

Code:
mkfs.ext3 -I 128 /dev/sda1  (with an upper case i)

If you use a lower case ell instead of an upper case eye, you get your error message.
Back to top
View user's profile Send private message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 28 Apr 2011, 17:06    Post subject:  

rcrsn51 wrote:
Quote:
note that mkfs.ext3 -l 128 /dev/sdb1 doesnt work.

Code:
mkfs.ext3 -I 128 /dev/sda1  (with an upper case i)

If you use a lower case ell instead of an upper case eye, you get your error message.

ok thanks for the clarification i assumed it would be the same ell as in
Code:
tune2fs -l /dev/sdb1
i had puppy301 handy so didnt mess with it.
_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
rhadon


Joined: 27 Mar 2008
Posts: 1291
Location: Germany

PostPosted: Thu 28 Apr 2011, 17:49    Post subject:  

On my SDHC card inode size is 128.
Can't remember which Puppy/Gparted I used.
Don't think there's a difference between SD and SDHC for this problem.

Rolf

_________________
Ich verwende "frugal", und das ist gut so. Wink
Raspberry Pi without Puppy? No, thanks.
Back to top
View user's profile Send private message 
cthisbear

Joined: 29 Jan 2006
Posts: 3251
Location: Sydney Australia

PostPosted: Fri 29 Apr 2011, 01:39    Post subject:  

" booting from an sdcard "

Maybe a weird Fat32 formatting issue.
I've seen this a few times.

"""""""""

http://murga-linux.com/puppy/viewtopic.php?t=59633

Why it just pays to run GParted in Puppy Linux
and reformat your USB.

As usual backup your data before doing the above.

""""""

Believe it or not many USBs come out with weird Fat32 formatting.

I don't know what the agenda is but some products
show up in GParted in Puppy Linux with a strange looking triangle.

""""""

An example was an 8 gig Medion usb.

I installed Puppy to it and I the ran >> Gparted
to right click on it to >> Manage Flags.

But the USB had a strange question mark on it....
even though it was formatted in Fat32.
I have seen this behavior on some other USB brands as well.

I was trying to get the Medion usb to boot Puppy 4.3.1
Gparted refused to let me tick >> Boot ...and ....LBA.....
which are essential.

I had to reformat it in NTFS because GParted refused
to allow Fat 32 formatting on it.

After the above I closed GParted and then reformatted the USB
back to Fat32 and enabled ...Boot and LBA.

Then Puppy 4.3.1 booted after re-installing to USB.

Camera Card issues.
I bought a 2 gig camera card...for an ALDI car radio.
Featured USB or SD card option to play music.

I tried to install 2 gigs of music to it.
It would not allow more than 1.7 gigs.
I tried it in Puppy...checked that it was >> Fat32.
Yes...but there again was that strange question mark.

I downloaded a Panasonic Card formatter 4 Windows.
Reformatted it...but the same problem.

Booted Puppy...ran GParted..formatted to >> Fat 32
checked LBA and boot....copied the full 2 gigs and >> drumroll...
the card now works in the radio. "

Chris.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0791s ][ Queries: 13 (0.0043s) ][ GZIP on ]