Page 1 of 1

What File system format?

Posted: 2015-03-09 16:54
by xendistar
I have a compact flash card that has a linux based OS installed on it (embedded thin client). If I connect the compact flash card to my Debian box (via USB card reader), nothing gets mounted, if I open gparted it can see the compact flash but does not recognise the partition format. If I connect it to my windows PC it just ask if I want to format it. Is there any way of finding out what the format is as I want to look at some of the software on the compact flash.

Re: What File system format?

Posted: 2015-03-09 17:32
by Ardouos
On your Debian box can you post the output of:

Code: Select all

 lsblk

Re: What File system format?

Posted: 2015-03-09 18:05
by xendistar
mit@lunar1 ~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 79G 0 part
├─sda3 8:3 0 5.6G 0 part [SWAP]
├─sda4 8:4 0 185.8G 0 part
├─sda5 8:5 0 58.6G 0 part /
└─sda6 8:6 0 136.7G 0 part /home
sdb 8:16 0 149.1G 0 disk
└─sdb1 8:17 0 149.1G 0 part /mnt/home-backup
sdd 8:48 1 973.6M 0 disk
└─sdd1 8:49 1 973.5M 0 part
sr0 11:0 1 1024M 0 rom


I assume that the compact flash is the sdd as it is a 1gb card

Re: What File system format?

Posted: 2015-03-09 19:39
by Head_on_a_Stick
If it is /dev/sdd use:

Code: Select all

# parted -l /dev/sdd
Or use the command without the "/dev/sdd" bit to list all the filesystems and partitions attached to your system.

Re: What File system format?

Posted: 2015-03-09 21:23
by xendistar
It does not tell me

Model: Generic USB CF Reader (scsi)
Disk /dev/sdd: 1021MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 32.3kB 1021MB 1021MB primary boot

Re: What File system format?

Posted: 2015-03-09 21:37
by Head_on_a_Stick
Post the output of:

Code: Select all

# blkid
Please use code tags for the terminal output -- quote this post to see how I have done it for the command above.

Re: What File system format?

Posted: 2015-03-09 22:04
by xendistar
Head_on_a_Stick wrote:Post the output of:

Code: Select all

# blkid
Please use code tags for the terminal output -- quote this post to see how I have done it for the command above.
Not even listed

Code: Select all

mit@lunar1 ~ $ sudo blkid
/dev/sdb1: LABEL="Home-backup" UUID="f22ea48d-db0a-42d0-8cb8-04c16630f2e5" TYPE="ext4" PARTUUID="1549f232-01"
/dev/sda1: LABEL="man-root" UUID="d6e752fe-31d3-4643-92a6-ed89377e92fd" TYPE="ext4" PARTUUID="0007bc31-01"
/dev/sda3: UUID="4314c717-9b66-40bf-a575-de1ce3bf97de" TYPE="swap" PARTUUID="0007bc31-03"
/dev/sda4: LABEL="man-home" UUID="f7618a8c-4199-4626-8c40-5253d77d193e" TYPE="ext4" PARTUUID="0007bc31-04"
/dev/sda5: UUID="ce4936ab-089e-47df-8a7f-2523f5ed82f4" TYPE="ext4" PARTUUID="0007bc31-05"
/dev/sda6: LABEL="Solydx-home" UUID="fd7a3213-d517-44ca-88bd-37bc31d3f1b7" TYPE="ext4" PARTUUID="0007bc31-06"

Re: What File system format?

Posted: 2015-03-09 22:21
by Head_on_a_Stick
Sorry...

Code: Select all

# blkid -p -u filesystem /dev/sdd1

Re: What File system format?

Posted: 2015-03-09 22:27
by xendistar
Head_on_a_Stick wrote:Sorry...

Code: Select all

# blkid -p -u filesystem /dev/sdd1
It does not return anything, running the command just return to a new line and no code output.

After some goolging I found some info about fsck and tried the following

Code: Select all

mit@lunar1 ~ $ sudo fsck -N /dev/sdd1
fsck from util-linux 2.25.2
[/sbin/fsck.ext2 (1) -- /dev/sdd1] fsck.ext2 /dev/sdd1 
Does that mean the file system is ext2?? If so why is it failing to be read?

Re: What File system format?

Posted: 2015-03-09 22:41
by Head_on_a_Stick
Looks to me like there is no filesystem on that device.

Re: What File system format?

Posted: 2015-03-09 22:58
by xendistar
Well there was on Thursday when I powered the terminal up, I decided to scrap it as it has dodgy USB ports and it is over 5 year old.

Thanks for your help, if I can find out what is on there I will post back here.