[RESOLVED] mkdir from '/' strangeness

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[RESOLVED] mkdir from '/' strangeness

Postby jamez » Mon Jan 09, 2012 6:16 pm

I decided to create a /data directory to hold some nmon data and noticed something weird with mkdir. Running mkdir from root seemed to give me unpredictable results. mkdir would often complain 'Invalid argument' , and it seemed to work sometimes if I passed mkdir an option like '-v' or 'p', but that wasn't consistent.

# pwd
/

# mkdir data2
mkdir: cannot create directory `data2': Invalid argument

# mkdir -v data2
mkdir: created directory `data2'

# rm -rf data2

# mkdir -p data2
mkdir: cannot create directory `data2': Invalid argument

# mkdir -v data2
mkdir: cannot create directory `data2': Invalid argument
(worked a minute ago!)

I wonder what is going on here?

I'm doing this on my pink pogo with newly installed arch/arm linux.
jamez
 
Posts: 6
Joined: Mon Jan 02, 2012 4:39 pm

Re: mkdir from '/' strangeness

Postby jamez » Mon Jan 09, 2012 6:23 pm

Oops - meant to post this in the pogoplug/dockstar forum. Sorry about that.
jamez
 
Posts: 6
Joined: Mon Jan 02, 2012 4:39 pm

Re: mkdir from '/' strangeness

Postby xenoxaos » Tue Jan 10, 2012 12:14 am

Is your drive full? If it is, that would be a good reason for failure. If not, pull the drive out and run fsck on it from a linux box.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: mkdir from '/' strangeness

Postby jamez » Tue Jan 10, 2012 3:29 am

No, drive is not full. Good idea on fsck. I see now that I have some complaints in the system log when booting:

EXT2-fs (sda1): warning: mounting fs with errors, running e2fsck is recommended

I will try fsck from another box.

Thanks!
jamez
 
Posts: 6
Joined: Mon Jan 02, 2012 4:39 pm

Re: mkdir from '/' strangeness

Postby jamez » Wed Jan 11, 2012 5:18 am

That seemed to work. i no longer have bizarre directory creation errors.

I ran the fsck from a vmware instance of ARCH linux running on my windows pc and it found/fixed several errors. I got the device id of the usb stick by running blkid.

Good call - thanks!
jamez
 
Posts: 6
Joined: Mon Jan 02, 2012 4:39 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests