You are not logged in.

#1 2017-08-08 01:00:56

yufeiluo
Member
Registered: 2017-08-08
Posts: 8

How to mount partition with mount command?

My arch was installed on sda3, debian was installed on sda2.

sudo blkid
/dev/sda1: UUID="7E91-CA50" TYPE="vfat" PARTUUID="e0c51e12-9954-4cb9-ae62-cebdec976e88"
/dev/sda3: UUID="a872403e-0f73-4c64-8530-0f286fe6a4ee" TYPE="ext4" PARTLABEL="arch" PARTUUID="4329e96c-6d71-4259-9f2a-534b130aae65"
/dev/sda4: UUID="eb4181c2-93ee-4f2d-8e27-5c40512b5293" TYPE="swap" PARTUUID="03d13d65-9504-4703-97e8-794171f3a9a7"
/dev/sda2: PARTLABEL="debian" PARTUUID="4bfda6e3-70fa-4316-a01e-475c53e0b51b"
/dev/sda5: PARTUUID="9a1fdb1d-a3c3-494a-a43f-24215320e2cc"

sudo fdisk -l
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F29018A3-5A1D-41A5-B30D-DEF536D2E361

Device         Start       End   Sectors  Size Type
/dev/sda1       2048 117186559 117184512 55.9G Microsoft basic data
/dev/sda2  117186560 195311615  78125056 37.3G BIOS boot
/dev/sda3  195311616 312500223 117188608 55.9G Linux filesystem
/dev/sda4  312500224 314454015   1953792  954M Linux filesystem
/dev/sda5  314454016 332031999  17577984  8.4G Linux filesystem

To enter into arch ,i want to mount /dev/sda2.

sudo mount -t boot   -o  rw  /dev/sda2  /tmp
sudo mount   -o  rw  /dev/sda2  /tmp

None of them can mount it.

Offline

#2 2017-08-08 01:32:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to mount partition with mount command?

How did you install Arch?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-08-08 01:47:14

yufeiluo
Member
Registered: 2017-08-08
Posts: 8

Re: How to mount partition with mount command?

I install arch this way.
1.To enter into debian,and download arch iso file.
2. dd  if=arch.iso  of=/dev/sdb
3.boot with usb
4.do as the manual in arch wiki.

Offline

#4 2017-08-08 01:54:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to mount partition with mount command?

...and yet you don't know how to mount a partition?

And what do you think mounting your /boot on /tmp will actually achieve? How will that "enter into arch"?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-08-08 07:38:17

Jeroen)Mathon
Member
From: Netherlands
Registered: 2013-08-29
Posts: 82

Re: How to mount partition with mount command?

Hey Yufeiluo,

Have you tried consulting the man page of mount?`man mount`
Also what type of filesystem are you attempting to mount and what command are you using for that?

Offline

#6 2017-08-08 07:46:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to mount partition with mount command?

You'll never be able to mount sda2 as it's a GRUB BIOS boot partition which doesn't contain a filesystem.
It's only used to store the grub payload which would usually live in the post-MBR gap on an ms-dos partitioned drive.

It's only meant to be 2MB in size, I've no idea why you made yours 37GB?

https://wiki.archlinux.org/index.php/GR … structions

Edit - I see sda2 has the label debian, if this was your debian partition that you've changed the partition type on then you've really messed up the installation somehow.

Last edited by Slithery (2017-08-08 07:49:02)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB