Tiny Core Linux

General TC => Tiny Core on Virtual Machines => Topic started by: P4531 on October 22, 2012, 02:15:36 AM

Title: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 02:15:36 AM
I must be missing something obvious!  I specify (in filetool) the Device sda1/tce-b -- a tce-b directory is present at the root of the flash stick (fat32).  But the backup fails, because the /mnt/sda1 fs is read-only.   Like I said, it must be obvious.  Any hints appreciated.  Thanks.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: tinypoodle on October 22, 2012, 08:39:47 AM
Please post output of:
"ls -ld /mnt/sda1"
"mount|grep sda1"
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 04:41:30 PM
I'm having trouble with copy/past, but the output of

ls -ld /mnt/sda1

is

777 root root 32768 date /mnt/sda1

output of mount|grep sda1

is

/dev/sda1 on /mnt/sda1 type vfat (ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,icharset-iso8859-1,shortname=mixed,errors=remount-ro)

This is running in a virtualbox instance.

When the system starts, /mnt/sda1 is rw.  I can run tce-setdrive and set to sda1.  /mnt/sda1/tce dir appears and has initial entries.  Right about that point sda1 switches to ro.  When I try to create a /mnt/sda1/opt dir to put .filetool.lst in, it never appears.  Then it looks like the tce dir has vanished.  And I'm back to square 1.

Thanks.



Title: Re: Backup to read-only fs (mnt/sda1)
Post by: tinypoodle on October 22, 2012, 05:44:25 PM
Have you done a fsck yet? If not, please do so.

On a sidenote: You had not mentioned until now that this is about virtualization.
Better to open topic in according subforum next time and be clear from the beginning.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 07:40:35 PM
/mnt/sda1 is a fat32 fs, so presumably is unsuitable for fsck ...
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: tinypoodle on October 22, 2012, 07:50:20 PM
You need to install the dosfstools extension first ;)
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 08:11:11 PM
OK, will do.  Thanks.  I should note though that I've reinstalled from scratch a couple of times and ended up in the same situation each time (formatting the stick on each occasion).
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 09:02:13 PM
dosfsck found a minor bit of lost free space -- nothing else.  Rebooted and the same behavior.  Everything looks fine at boot.  Ran tce-setdrive and set to sda1.  tce dir with default files appears in /mnt/sda1.  Create opt directory.  Create .filetool.lst -- no errors.  Then when I look again a few seconds later both the tce and opt dirs have vanished.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: Rich on October 22, 2012, 09:08:06 PM
Hi P4531
Did you remember to use the  waitusb=10  boot code?
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 09:12:50 PM
Hi.  The boot versions with waitusb=5 (or with 10) boot to shell instead of the GUI.  I haven't looked at them past that point.  Thanks.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: Rich on October 22, 2012, 09:20:06 PM
Hi P4531
Quote
When the system starts, /mnt/sda1 is rw.  I can run tce-setdrive and set to sda1.  /mnt/sda1/tce dir appears and has initial entries.  Right about that point sda1 switches to ro.
After it switches to RO, does the command:
Code: [Select]
dmesg | tailshow any errors?
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 09:31:02 PM
I reinstalled after format, and I'm seeing a variety of I/O errors.  I'm going to run an integrity check on the flash drive (which is new) and check back.  Thanks.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: Rich on October 22, 2012, 09:38:49 PM
Hi P4531
I/O errors on the drive might explain it considering the mount parameter:
Code: [Select]
errors=remount-ro
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 22, 2012, 10:52:47 PM
I'm currently running another round of tests with an even more robust flash testing utility, but my first round with a good (but simpler) test program gave the drive a clean bill of health with no errors.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: Rich on October 23, 2012, 01:02:19 AM
Hi P4531
Maybe there's something you have to setup in virtualbox to make this work? I don't know anything about
virtualbox so I can't help you there.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 23, 2012, 02:42:33 AM
Just as confirmation, a more comprehensive check didn't find any problems on the flash stick itself.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: curaga on October 23, 2012, 03:03:58 AM
Then it could be Virtualbox's passthrough that's failing.
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: P4531 on October 23, 2012, 03:05:19 AM
I agree.  I'm looking into it.  Thanks!
Title: Re: Backup to read-only fs (mnt/sda1)
Post by: coreplayer2 on October 23, 2012, 03:25:42 AM
Am curious how a comprehensive check on nand memory is performed ??

The only way I know of restoring performance on flash storage that doesn't support secure erase is by writing FF's to the drive.