View previous topic :: View next topic |
Author |
Message |
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Wed Nov 20, 2013 3:37 am Post subject: [CLOSED] ext4 in write only mode |
|
|
OK, my comp says I have read write but when I do anything, (Like try to save a document.) it tells me it's write protected. I just got the system up so nothing is installed. Also it only dose this when I boot the system, but not with lives DCs/USBs.
Last edited by J.I.N.X. on Fri Nov 22, 2013 7:26 pm; edited 1 time in total |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Nov 20, 2013 10:01 am Post subject: |
|
|
Hmm, just a guess.
Check your /etc/fstab
Whats the output of #mount
Whats the output of #cat /etc/fstab
Are you root and try to write a file? If you are a user, you need to set special permissons to write on ext4 (more complicated). First you should be able to write as root. Than you can set permissons for user. |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Nov 20, 2013 6:43 pm Post subject: |
|
|
boot the cd, run: Code: | mount /dev/sda3 /mnt/gentoo
wgetpaste /mnt/gentoo/var/log/dmesg | post the url
boot the cd, run: Code: | fsck /dev/sda3
fsck /dev/sda1 | picture of the output of each command
boot the installed gentoo (hard drive), run Code: | mount -o remount,rw / | if there is output, post picture _________________ Defund the FCC. |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Thu Nov 21, 2013 1:55 am Post subject: |
|
|
Could this be the problem?
http://i.imgur.com/oqquKZuh.jpg
I met heard that's something I need for a 32bit kernel... But I don't want to touch it unless I find it the menu. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Nov 21, 2013 2:25 am Post subject: |
|
|
it won't hurt to enable it.
is under "enable the block layer" in menuconfig
you will need to boot cd, mount the gentoo partitions, and enter the chroot to reconfigure and recompile the kernel _________________ Defund the FCC. |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Thu Nov 21, 2013 2:30 am Post subject: |
|
|
I fond it about two minutes after making that post, it didn't do anything... All keep looking. |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Nov 21, 2013 10:33 am Post subject: |
|
|
there is a line in red about boot filesystem that if googled gets much discussion of lbdaf as you already pointed out
I think you said you did reconfigure to enable CONFIG_LBDAF and recompiled - but just in case, boot the installed gentoo on the hard drive, run Code: | grep -i CONFIG_LBDAF /usr/src/linux/.config
zgrep -i CONFIG_LBDAF /proc/config.gz | if the output of the first is CONFIG_LBDAF=y the configuration has it; if the output of thesecond is CONFIG_LBDAF=y the running kernel has it; as lbdaf is enabled in the pappy's kernel that was used for your kernel this should be an academic exercise; but if it is not enabled in the running kernel, you need it
run does "rootfs / rootfs rw" and "/dev/sda3 / ext4 rw,noatime" appear?
does drwxr-xr-x root root appear in the lines that end in . and .. and for the other directories? _________________ Defund the FCC. |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Thu Nov 21, 2013 5:42 pm Post subject: |
|
|
Oh darn... I tock that back out last night.
(╯°□°)╯︵ ┻━┻
I'll put it back when I get home. |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Thu Nov 21, 2013 9:53 pm Post subject: |
|
|
Silly me, I did live it in. But before I get out of the menu could this have anything to do with it?
http://i.imgur.com/bRsMA2Ih.jpg |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Fri Nov 22, 2013 12:16 am Post subject: |
|
|
OK... Nobody's responding... Adding:
Fermware blobs
CardBus IDE
Generic PCI IDE chip set
FireWire driver stack
I'll let you know of that helps.
I can do the commands after completion.
Update: Done. It didn't seem to make any difference.
Here's the output.
http://i.imgur.com/ePve1vFh.jpg
http://i.imgur.com/yB6OCpCh.jpg |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Fri Nov 22, 2013 12:53 am Post subject: |
|
|
rootfs / is rw
/dev/sda3 / is ro
Means
/etc/init.d/root || /etc/fstab
is messy?
PS: CONFIG_LBDAF is needed with Terrabyte harddisk ....
PS2: /usr/src/linux/.config != /proc/config.gz (Can you boot with the new kernel?)
Last edited by ulenrich on Fri Nov 22, 2013 1:00 am; edited 2 times in total |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Fri Nov 22, 2013 12:54 am Post subject: |
|
|
ulenrich wrote: | rootfs / is rw
/dev/sda3 / is ro
Means
/etc/init.d/root || /etc/fstab
is messy? |
What should I do? |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Fri Nov 22, 2013 12:57 am Post subject: |
|
|
... you are too fast, I have edited two PS ...
- Write down your /etc/fstab / - root entry
- Is it /dev/sda3 for sure?
- Can you use localversion, just to be sure to boot a new kernel?
Code: | # zcat /proc/config.gz | grep LOCALVERSION
CONFIG_LOCALVERSION="-1001.bfiosprdo"
CONFIG_LOCALVERSION_AUTO=y |
Last edited by ulenrich on Fri Nov 22, 2013 1:03 am; edited 1 time in total |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Fri Nov 22, 2013 1:01 am Post subject: |
|
|
ulenrich wrote: | ... you are too fast, I have edited two PS ...
Writie down your /etc/fstab
/ - root entry
Is it /dev/sda3 for sure? |
This?
http://i.imgur.com/ukLJi85h.jpg |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Fri Nov 22, 2013 1:09 am Post subject: |
|
|
... you are too fast: localversion - see above
Are you sure it is /dev/sda?
Is it an external drive?
Do you have more than one harddisk drive?
Are you sure, you have ext4 in kernel .config
Are you sure, you formated ext4 not ext2 ?
Are you using an initrd, dracut-or-genkernel?
I had a look at your above excerpts :
Code: |
EXT4-fs (sda3): couldn't mount as ext3 due to feature incompatibilities
[ 2.791316] EXT4-fs (sda3): couldn't mount as ext2 due to feature incompatibilities
[ 2.842039] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
|
Last edited by ulenrich on Fri Nov 22, 2013 1:13 am; edited 1 time in total |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Fri Nov 22, 2013 1:11 am Post subject: |
|
|
ulenrich wrote: | ... you are too fast: localversion - see above
Are you sure it is /dev/sda?
Is it an external drive?
Do you have more than one harddisk drive?
Are you sure, you have ext4 in kernel .config
Are you sure, you formated ext4 not ext2 ?
Are you using an initrd, dracut-or-genkernel? |
Let's see...
Thanks?
Yes.
No.
No.
Yes... It wouldn't boot without it silly.
Yes.
What? |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Fri Nov 22, 2013 1:17 am Post subject: |
|
|
... you are too fast ... see above:
You didn't format the drive ext4
Or you don't have ext4 in kernel .config.
Or you once booted forcely in ext3 mode and all was messed up?
I am not sure, but something like that.
Or wrotten hardware? Another harddisk...
Probably a very silly error, you must look at it yourself:
try excluding all possible errors systematicaly! |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Fri Nov 22, 2013 1:27 am Post subject: |
|
|
Now I see what you mean by to fast... Have you tried tabbed browsing?
Now... Let's go back and read.
http://i.imgur.com/ukLJi85h.jpg
As for the ext2 and 3 fails, I had the use ext4 for ext3 and ext2 drivers, but I tock them out.
I know the hard drive can work because I had it working befor.
Why do you keep clicking submit if you're just going to add more? |
|
Back to top |
|
|
keet Guru
Joined: 09 Sep 2008 Posts: 563
|
Posted: Fri Nov 22, 2013 2:32 am Post subject: |
|
|
Can you please post the relevant lines from grub.cfg, i.e., the ones for the boot option that you are choosing in GRUB? |
|
Back to top |
|
|
J.I.N.X. Tux's lil' helper
Joined: 12 Nov 2013 Posts: 94
|
Posted: Fri Nov 22, 2013 5:07 am Post subject: |
|
|
Code: | ### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f3f2a899-bf84-4bc8-a56b-f9a2b616c141' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5a5bfdbb-2cde-4d7b-b73a-c5d461d8ba17
else
search --no-floppy --fs-uuid --set=root 5a5bfdbb-2cde-4d7b-b73a-c5d461d8ba17
fi
echo 'Loading Linux 3.10.17-gentoo ...'
linux /vmlinuz-3.10.17-gentoo root=/dev/sda3 ro |
Hu... That can't be write... Maybe:
Code: | ### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f3f2a899-bf84-4bc8-a56b-f9a2b616c141' {
load_video
insmod gzio
insmod part_msdos
insmod ext4
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5a5bfdbb-2cde-4d7b-b73a-c5d461d8ba17
else
search --no-floppy --fs-uuid --set=root 5a5bfdbb-2cde-4d7b-b73a-c5d461d8ba17
fi
echo 'Loading Linux 3.10.17-gentoo ...'
linux /vmlinuz-3.10.17-gentoo root=/dev/sda3 rw |
Or is that dumb? |
|
Back to top |
|
|
keet Guru
Joined: 09 Sep 2008 Posts: 563
|
Posted: Fri Nov 22, 2013 1:09 pm Post subject: |
|
|
It looks like you're not using and initramfs, so that simplifies things a bit. I would just take out the 'ro' altogether, and see how that works. |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2280 Location: Adendorf, Germany
|
Posted: Fri Nov 22, 2013 2:35 pm Post subject: |
|
|
The "ro" is very important! With out that, the system can _NOT_ fsck the root device if anything went wrong!
The system will be remounted rw after boot stage.
J.I.N.X.: Please follow the guide at http://kernel-seeds.org/working.html that determines your hardware and which drivers to load. The whole story looks like a driver conflict to me. _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
|