tezza
Posts: 2
Joined: Mon Mar 16, 2015 1:33 am

where is SD card mounted?

Mon Mar 16, 2015 1:55 am

Hi, I have debian installed (mirrordirector.raspbian.org wheezy)

startup says there is a problem with the disk but I have no idea where the SD card is mounted. So I dunno how to fix it.

Code: Select all

root@raspberrypi:~# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  15.5G  0 disk
├─mmcblk0p1 179:1    0    56M  0 part /boot
└─mmcblk0p2 179:2    0   1.8G  0 part /
Also I am apparently running out of space

Code: Select all

root@raspberrypi:~# df
Filesystem     1K-blocks    Used Available Use% Mounted on
rootfs           1804128 1732016         0 100% /
/dev/root        1804128 1732016         0 100% /
tmpfs              18812     352     18460   2% /run
tmpfs               5120       0      5120   0% /run/lock
tmpfs              37624       0     37624   0% /tmp
tmpfs              10240       0     10240   0% /dev
tmpfs              37624       0     37624   0% /run/shm
/dev/mmcblk0p1     57288   36568     20720  64% /boot

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: where is SD card mounted?

Mon Mar 16, 2015 8:15 am

Did you use the "Expand filesystem" option in raspi-config that you were given when you booted for the first time? If not, try it "sudo raspi-config".

Another place that fills up quickly is the area where software updates are downloaded to by apt-get. If you've been running that command with the upgrade or dist-upgrade uption you may want to run "sudo apt-get clean" to remove old files.

The two partitions on the card are /dev/mmcblk0p1 which is mounted as /boot, and /dev/mmcblk0p2 which is mounted as /
(/ will also show as /dev/root, rootfs and possibly another entry)

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: where is SD card mounted?

Mon Mar 16, 2015 9:10 am

rpdom wrote:Did you use the "Expand filesystem" option in raspi-config that you were given when you booted for the first time? If not, try it "sudo raspi-config".
+1
The card shows as 16GB the filesystem shows as < 2GB.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: where is SD card mounted?

Mon Mar 16, 2015 9:12 am

it is mounted as /
which is the rootfs
+1 for above suggestions
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: where is SD card mounted?

Mon Mar 16, 2015 12:38 pm

Its underneath at the opposite end to the USB ports.....

;)
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: where is SD card mounted?

Mon Mar 16, 2015 4:08 pm

pluggy wrote:Its underneath at the opposite end to the USB ports.....

;)
+1 for answering the other interpretation of the question.

tezza
Posts: 2
Joined: Mon Mar 16, 2015 1:33 am

Re: where is SD card mounted?

Tue Mar 17, 2015 3:35 pm

Thanks guys. I installed this years ago and forgot about everything (my memory is not good).

Didn't even remember raspi-conf. Anyway, I ran it and selected the expand rootfs option and rebooted. After barfing on fsck failure, (to which I just Ctrl-D to continue booting), it has come up with "Performing online resize blah". It's taking a while (over 20mins) and I hope that the failed fsck thing doesn't indicate a fatal error for the resize thing. Oh well.

Yes, I had just fired the thing up again and first thing I ran was apt-get udate (which succeeded) and then I attempted apt-get dist-upgrade (without checking df). Thanks for the tip. It it does come back, I will run the "apt-get clean" command first thing.

I have a 16GB USB thumb drive which I will mount somewhere to alleviate the space issue.

I plan on using it as a webcam server and filtering proxy. back in the day, I used to use Internet Junk Buster. Does anyone know of a modern equivalent that is easy to set up?

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: where is SD card mounted?

Tue Mar 17, 2015 3:45 pm

tezza wrote: I plan on using it as a webcam server and filtering proxy. back in the day, I used to use Internet Junk Buster. Does anyone know of a modern equivalent that is easy to set up?
squid3 with an ad-blocking blacklist or privoxy do the same thing as Internet Junkbuster.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”